| foundry_set_speech_key | R Documentation |
Set Microsoft Foundry Speech API key
foundry_set_speech_key(key)
key |
Character. Speech resource API key. |
Invisibly returns TRUE if the key was set successfully.
local({
old <- Sys.getenv("AZURE_FOUNDRY_SPEECH_KEY", unset = NA_character_)
on.exit({
if (is.na(old)) {
Sys.unsetenv("AZURE_FOUNDRY_SPEECH_KEY")
} else {
Sys.setenv(AZURE_FOUNDRY_SPEECH_KEY = old)
}
})
foundry_set_speech_key("example-speech-key-not-a-secret")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.