API
TypeScript
const client = new Dedalus(); const result = await client.audio.translations.create({ ...params });
{ "language": "<string>", "duration": 123, "text": "<string>", "segments": [ { "id": 123, "seek": 123, "start": 123, "end": 123, "text": "<string>", "tokens": [ 123 ], "temperature": 123, "avg_logprob": 123, "compression_ratio": 123, "no_speech_prob": 123 } ] }
curl -X POST https://api.dedaluslabs.ai/v1/audio/translations \ -H "Authorization: Bearer YOUR_API_KEY" \ -F file="@audio.mp3" \ -F model="openai/whisper-1"
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response
Fields: # noqa: D415.
The language of the output translation (always english).
english
The duration of the input audio.
The translated text.
Segments of the translated text and their corresponding details.
Show child attributes
Was this page helpful?
Suggestions
Contact support