2 #ifndef _YI_SPEECH_SYNTHESIZER_H_ 3 #define _YI_SPEECH_SYNTHESIZER_H_ 67 static std::atomic<ssize_t> s_nLastUsedId;
82 void Speak(
const std::shared_ptr<Utterance> &pUtterance,
bool bSpeakImmediately =
false);
116 void SpeakNextInQueue(
bool bClearCurrentUtterance =
false);
118 std::unique_ptr<Platform> m_pSpeechPlatform;
120 std::shared_ptr<Utterance> m_CurrentUtterance;
121 std::queue<std::shared_ptr<Utterance>> m_UtteranceQueue;
void Speak(const std::shared_ptr< Utterance > &pUtterance, bool bSpeakImmediately=false)
Provides text-to-speech functionality using the underlying platform's technology. ...
Definition: YiSpeechSynthesizer.h:23
Provides specific information about an error encountered when sending an CYISpeechSynthesizer::Uttera...
Definition: YiSpeechSynthesizer.h:33
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:35
Definition: YiRecursiveMutex.h:15
CYISignal< const std::shared_ptr< Utterance > &, ErrorInfo > ErrorSpeaking
Definition: YiSpeechSynthesizer.h:111
virtual ~CYISpeechSynthesizer()
CYIString m_errorText
Definition: YiSpeechSynthesizer.h:38
Provides information about a specific phrase of text that can be used to send speech to the audio dev...
Definition: YiSpeechSynthesizer.h:46
CYISignal< const std::shared_ptr< Utterance > & > StartedSpeaking
Definition: YiSpeechSynthesizer.h:98
int ssize_t
Definition: YiPredefWin32.h:133
Signals and slots are a thread-safe and flexible communication framework that will allow various obje...
Definition: YiSignal.h:164
ErrorInfo(CYIString text)
Definition: YiSpeechSynthesizer.h:35
CYISignal< const std::shared_ptr< Utterance > &, bool > FinishedSpeaking
Definition: YiSpeechSynthesizer.h:104