ari_talk: Create spoken audio files

Description Usage Arguments Value

View source: R/ari_talk.R

Description

A simple function for demoing how spoken text will sound.

Usage

1
2
3
4
5
6
ari_talk(
  paragraphs,
  output = tempfile(fileext = ".wav"),
  voice = text2speech::tts_default_voice(service = service),
  service = "amazon"
)

Arguments

paragraphs

A vector strings that will be spoken by Amazon Polly.

output

A path to the audio file which will be created.

voice

The voice you want to use. See tts_voices for more information about what voices are available.

service

speech synthesis service to use, passed to tts Either "amazon" or "google".

Value

A Wave output object, with the attribute outfile of the output file name.


ari documentation built on Feb. 9, 2020, 1:07 a.m.