A simple function for demoing how spoken text will sound.
ari_talk( paragraphs, output = tempfile(fileext = ".wav"), voice = text2speech::tts_default_voice(service = service), service = "amazon" )
| paragraphs | A vector strings that will be spoken by Amazon Polly. |
|---|---|
| output | A path to the audio file which will be created. |
| voice | The voice you want to use. See
|
| service | speech synthesis service to use,
passed to |
A Wave output object, with the attribute outfile
of the output file name.