Description Usage Arguments Details Note Author(s) Examples
Please note that this function is deprecated and requests will be fulfilled with function "tts_ITRI".
1 | tts_google(content, destfile = tempfile("Rtts", fileext = ".mp3"))
|
content |
The content to convert into speech. In string format. |
destfile |
where to save the voice file generated and the voice file name. Default path is the current working path. |
Convert text into speech (voice files in .mp3 format) using the API offered by Google Translate. No extra software or platform support is required to use this function.
[1] This function can only help convert restricted-length text (roughly nchar(text)<=100); [2] Try to use only comma and period for separation.
Xiaodong Deng
1 2 3 | # Used default value for destfile argument,
# so the generated voice file will be saved in the working directory.
tts_google("Hello.")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.