|
arduino-simple-tts
|
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 |
Audio output from text via the indicated audio sink. The text components need to be prerecorded and available as audio files.