text_audio: IBM Text-to-speech API.

Description Usage Arguments Value See Also

View source: R/text_cognizers.R

Description

Synthesizes an audio record from text.

Usage

1
2
text_audio(text, userpwd, keep_data = "true", directory,
  voice = "en-US_AllisonVoice", accept = "audio/ogg;codecs=opus")

Arguments

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.

Value

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.

See Also

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.


ColumbusCollaboratory/cognizer documentation built on May 6, 2019, 12:49 p.m.