Description Usage Arguments Details Author(s) References Examples
Convert text into speech (voice files in .mp3 format) using the trial API offered by Google Translate (https://translate.google.com). Note that this function can only help convert restricted-length text (roughly nchar(text)<=100).
1 | tts_google(content = "hello world", destfile = location)
|
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 other softwares are required to use this function.
DENG Xiaodong
https://translate.google.com
1 | tts_google("Hello world.")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.