Audio
Transcribe speech to text
Changed onTranscribe speech to text. This endpoint is consistent with the OpenAI Transcription API and may be used with the OpenAI JS or Python SDK.
post/ai/audio/transcriptions
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/ai/audio/transcriptions
- Auth: HTTP bearer
Request body multipart/form-data
Example request
{
"file_url": "https://example.com/file.mp3",
"model": "distil-whisper/distil-large-v2",
"response_format": "json",
"timestamp_granularities[]": "segment",
"language": "en-US",
"model_config": {
"smart_format": true,
"punctuate": true
}
}Response
Successful Response
Changes
- info
added the new
reson8/prerecordedenum value to the request property
- info
- info
added the optional property
//to the response with the status
- info