Description Usage Arguments Value See Also
View source: R/text_cognizers.R
Synthesizes an audio record from text.
1 2 | text_audio(text, userpwd, keep_data = "true", directory,
voice = "en-US_AllisonVoice", accept = "audio/ogg;codecs=opus")
|
text |
Character vector containing strings to be processed. |
userpwd |
Character scalar that contains 'username:password' string. |
keep_data |
Character scalar specifying whether to share your data with Watson services for the purpose of training their models. |
directory |
Character scalar specifying directory for storing audio files. |
voice |
Character scalar setting language and voice model for the synthesized voice. Many models are available: de-DE_BirgitVoice, de-DE_DieterVoice, en-GB_KateVoice, en-US_LisaVoice, en-US_MichaelVoice, es-ES_EnriqueVoice, es-ES_LauraVoice, es-US_SofiaVoice, fr-FR_ReneeVoice, it-IT_FrancescaVoice, ja-JP_EmiVoice, pt-BR_IsabelaVoice. |
accept |
Characte scalar specifying format for the audio. Alternatives are audio/wav ,audio/flac, audio/l16, audio/basic. |
Audio file with selected format is saved into selected directory. The name is based on integer representation of UTF time and a number of characters of the processed text.
Logical scalar is returned invisibly.
Check http://www.ibm.com/watson/developercloud/text-to-speech.html for further documentation, and https://text-to-speech-demo.mybluemix.net/ for a web demo.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.