class MAGES::Experimental::EmbodimentJARIA::MicrosoftCongitiveServices::AzureTextHandler¶
Overview¶
Class that handles text to speech using Azure Cognitive Services. More…
class AzureTextHandler: public MAGES::Experimental::EmbodimentJARIA::ITextToSpeechHandler { public: // properties Agent TheAgent; SpeechConfig TextHandlerConfig; QueueSubtitles; Queue AudioClips; bool IsSynthesizing; bool IsCanceled; // methods async Task HandleTextAsync(string text); void Startup(); void ClearQueue(); async void StopVoice(); void SyncMessage(string message); };
Inherited Members¶
public: // properties Agent TheAgent; QueueSubtitles; Queue AudioClips; bool IsSynthesizing; bool IsCanceled; // methods Task HandleTextAsync(string text); void Startup(); void StopVoice(); void ClearQueue(); void SyncMessage(string message);
Detailed Documentation¶
Class that handles text to speech using Azure Cognitive Services.
Properties¶
Agent TheAgent
Gets or Sets the agent logic script.
SpeechConfig TextHandlerConfig
Gets the text handler config.
QueueSubtitles
Gets or sets the subtitles queue for the subtitles of the audio clips.
QueueAudioClips
Gets or sets the audio clips queue.
bool IsSynthesizing
Gets or sets a value indicating whether the synthesizer is synthesizing.
bool IsCanceled
Gets or sets a value indicating whether to cancel or not.
Methods¶
async Task HandleTextAsync(string text)
Handles the text to be spoken.
Parameters:
text |
Text to be spoken. |
Returns:
Task.
void Startup()
Starts up the text handler.
void ClearQueue()
Clears the queue.
async void StopVoice()
Stops the voice.
void SyncMessage(string message)
Sets the message to be synced.
Parameters:
message |
The message to be synced. |