Description Usage Arguments Details Note Author(s) References Examples
Convert text into speech (voice files in .mp3 format) using the API offered by Google Translate (https://translate.google.com). Only English is supported currently.
1 | tts_google(content = "hello world", destfile = paste(getwd(),"r.mp3",sep="/"))
|
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
https://translate.google.com
1 | tts_google("Hello.")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.