Translations
Turn audio into text or text into audio.
Create translation
audio.translations.create(TranslationCreateParams**kwargs) -> TranslationCreateResponse
POST/audio/translations
ModelsExpand Collapse
class TranslationVerbose: …
class TranslationVerbose: …
Segments of the translated text and their corresponding details.
Segments of the translated text and their corresponding details.
avg_logprob: float
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
formatfloat
compression_ratio: float
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
formatfloat
One of the following:
class TranslationVerbose: …
class TranslationVerbose: …
Segments of the translated text and their corresponding details.
Segments of the translated text and their corresponding details.
avg_logprob: float
Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.
formatfloat
compression_ratio: float
Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.
formatfloat