Speech To Text Playground
cURL
curl -X POST "https://api.text-generator.io/api/v1/audio-extraction" \
-H "Content-Type: application/json" \
-H "secret: YOUR_API_KEY" \
-d '{
"audio_url": "AUDIO_URL",
"translate_to_english": false
}'
curl -X POST "https://api.text-generator.io/api/v1/audio-file-extraction" \
-H "secret: YOUR_API_KEY" \
-F "audio_file=@your_file.wav" \
-F "translate_to_english=false"
Python
import requests
headers = {"secret": "YOUR_API_KEY"}
data = {
"audio_url": "AUDIO_URL",
"translate_to_english": False
}
url = "https://api.text-generator.io/api/v1/audio-extraction"
print(requests.post(url, json=data, headers=headers).json())