Translation
Converts the given audio file into English.
Create Translation
Translates the audio file into English.
Azure OpenAI
Request
POST https://api.core42.ai/openai/deployments/whisper/audio/translations
OpenAI
Request
POST https://api.core42.ai/v1/audio/translations
Request Parameters
Name | Required | Type | Description |
---|---|---|---|
file | true | file | Audio file object to translate. Supported formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm. |
model / deployment-id | true | string | Model ID to use for the request. Only whisper-1 is available. |
prompt | false | string | Optional text to guide the model's style or continue a previous audio segment. Ensure the prompt matches the audio language. |
response_format | false | string | Format of the transcript output. Supported output formats: json, text, srt, verbose_json, and vtt. |
temperature | false | number | The temperature controls randomness. The range is from 0 to 2. Lowering results in less random completion. As the temperature approaches zero, the model will become deterministic and repetitive. If the value approaches 0, the model tends to produce more predictable and deterministic responses. This means the generated text is more likely to adhere closely to the input prompt and follow a coherent narrative. If the value approaches to 2, it produces more randomness, resulting in responses that are less predictable and more diverse. This may lead to more creative outputs, reducing the coherence and relevance of the input. |