Interface ISpeechHandler
Interface for a class that can be used as a speech synthesis backend for the TextToSpeech accessibility API.
Namespace: Ritchie.Toolbox.Accessibility
Assembly: Ritchie.Toolbox.dll
Syntax
public interface ISpeechHandler
Methods
SpeakAsync(string, CancellationToken)
Speak the specified text aloud.
Declaration
Task SpeakAsync(string textToSpeak, CancellationToken interruptToken)
Parameters
Type | Name | Description |
---|---|---|
string | textToSpeak | The text to speak. |
CancellationToken | interruptToken | A CancellationToken that will be cancelled if speech is interrupted. |
Returns
Type | Description |
---|---|
Task |