arduino-simple-tts

Loading...
Searching...
No Matches
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
simple_tts::TextToSpeech Class Reference

Audio output from text via the indicated audio sink. The text components need to be prerecorded and available as audio files. More...

`#include <TextToSpeech.h>`

## Public Member Functions
| TextToSpeech (SimpleTTSBase &tts, AudioStream &sink, AudioDecoder &decoder, AudioDictionaryBase &dict)
| TextToSpeech which support a SimpleTTSBase.
| TextToSpeech (SimpleTTSBase &tts, AudioOutput &sink, AudioDecoder &decoder, AudioDictionaryBase &dict)
| TextToSpeech (AudioStream &sink, AudioDecoder &decoder, AudioDictionaryBase &dict)
| Default Constructor.
void | say (const char *word)
| a simple API to say one of the supported words
void | begin ()
void | end ()
void | say (audio_tools::Vector< const char * > words)
| a simple API to say multiple of the supported words
void | delay (uint32_t delay_ms)
| writes silence for the indicated ms

## Static Protected Member Functions
static void | callback (audio_tools::Vector< const char * > words, void *ref)
| callback which says the words

## Protected Attributes
bool | active = false
NumberToText | ntt
audio_tools::AudioDecoder * | p_decoder = nullptr
audio_tools::EncodedAudioStream * | decodedStream = nullptr
SimpleTTSBase * | p_tts = nullptr
AudioDictionaryBase * | p_dictionary = nullptr
audio_tools::StreamCopy | copier
Print * | p_sink =nullptr

## Detailed Description

Audio output from text via the indicated audio sink. The text components need to be prerecorded and available as audio files.

Author
  Phil Schatzmann

Copyright
  GPLv3

The documentation for this class was generated from the following file:

- src/TextToSpeech.h