| foundry_translate_audio | R Documentation |
Translate audio through LLM Speech enhanced mode or the OpenAI-compatible v1 audio translations endpoint. LLM Speech supports multiple target languages; the OpenAI-compatible translations endpoint translates to English.
foundry_translate_audio(
file,
target_language = "en",
model = NULL,
service = c("speech", "openai"),
api = c("v1", "deployment"),
locales = NULL,
language = NULL,
prompt = NULL,
response_format = NULL,
temperature = NULL,
api_key = NULL,
token = NULL,
endpoint = NULL,
api_version = NULL
)
file |
Character. Local audio file path. |
target_language |
Character. Target language code for
|
model |
Character. Optional model or deployment name. For Speech
translation this is omitted by default because MAI-Transcribe models do not
translate. For |
service |
Character. |
api |
Character. Used when |
locales |
Character vector. Optional Speech locale hints such as
|
language |
Character. Optional OpenAI transcription language hint such as
|
prompt |
Character vector. Optional prompt instructions. |
response_format |
Character. Optional OpenAI response format. |
temperature |
Numeric. Optional OpenAI sampling temperature. |
api_key |
Character. Optional API key override. |
token |
Character. Optional bearer token override. |
endpoint |
Character. Optional endpoint override. |
api_version |
Character. Optional API version. Defaults to
|
A one-row tibble with translated text, phrase-level detail, and the raw response in list-columns.
## Not run:
# Requires a configured Azure Speech endpoint and credentials,
# and your own local audio input file.
foundry_translate_audio("interview-es.mp3", target_language = "en")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.