Back

create-translation (clj)

(source)

function

(create-translation params) (create-translation params options)
Translates audio into English. Example: ``` (create-translation {:file (clojure.java.io/file "path/to/file/german.m4a") :model "whisper-1"}) ``` For Azure OpenAI pass `{:impl :azure}` for the `options` argument Also see the [OpenAI](https://platform.openai.com/docs/api-reference/audio/create) / [Azure OpenAI](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#translations) documentation

Examples