tts_google: Convert Text into Speech (voice files in .mp3 format)

Description Usage Arguments Details Author(s) References Examples

View source: R/tts_google.R

Description

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).

Usage

1
tts_google(content = "hello world", destfile = location)

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 other softwares are required to use this function.

Author(s)

DENG Xiaodong

References

https://translate.google.com

Examples

1
  tts_google("Hello world.")

RttsDevelop documentation built on May 2, 2019, 4:46 p.m.