Learn R Programming

Rtts (version 0.3.3)

tts_google: Convert Text into Speech

Description

Please note that this function is deprecated and requests will be fulfilled with function "tts_ITRI".

Usage

tts_google(content, destfile = tempfile("Rtts", fileext = ".mp3"))

Arguments

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.

Details

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.

Examples

Run this code
  # Used default value for destfile argument, 
  # so the generated voice file will be saved in the working directory.
  tts_google("Hello.")

Run the code above in your browser using DataLab