tts_ITRI:
Convert Text into Speech Using ITRI TTS service via SOAP
Description
Using the API offered by ITRI TTS (http://tts.itri.org.tw/), this function helps convert text into speech. After sending the text, corresponding voice file will be downloaded and saved.
English and Chinese (both tradition and simplified) are supported. And users can specify the speaker accent, speed, and volume (default setting is given).
The text user would like to convert into speech. The content can be English and Chinese (both traditional and simplified).
speed
The speed of the speaker in the voice file generated. The range is -10 to 10, in numerical type. Default value is 0.
volume
The volume of the speaker in the voice file generated. The range is 0 to 100, in numerical type. Default value is 100.
speaker
Select the speaker. The applicable options include:
[1] English & Chinese: "Bruce", "Theresa", "Angela", "MCHEN_Bruce", "MCHEN_Joddess";
[2] Only English: "ENG_Bob", "ENG_Alice", "ENG_Tracy".
Default value is "Bruce".
destfile
Where to save the generated voice file. It should contain both the path and the full file name. If leave blank, the file will be saved in the working directory by default.
Details
This function sends the text to the ITRI TTS (http://tts.itri.org.tw/) server via SOAP, and download the voice file from it.
text <- "Hello."# Using default setting: speed=0, volume=100, speaker="Bruce".# Using default value for destfile argument, # i.e. save the voice file in the working directory.tts_ITRI(text)