| foundry_set_speech_endpoint | R Documentation |
Set the endpoint for Speech in Foundry Tools. This endpoint is used by
foundry_transcribe() and foundry_translate_audio() when
service = "speech".
foundry_set_speech_endpoint(endpoint)
endpoint |
Character. Speech endpoint URL. |
Invisibly returns the endpoint that was set.
local({
old <- Sys.getenv("AZURE_FOUNDRY_SPEECH_ENDPOINT", unset = NA_character_)
on.exit({
if (is.na(old)) {
Sys.unsetenv("AZURE_FOUNDRY_SPEECH_ENDPOINT")
} else {
Sys.setenv(AZURE_FOUNDRY_SPEECH_ENDPOINT = old)
}
})
foundry_set_speech_endpoint("https://example.cognitiveservices.azure.com")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.