![]() |
BogaNet 1.4.0
|
Provider for TTS in Avalonia (browser). More...
Public Member Functions | |
BrowserVoiceProvider () | |
virtual List< Voice > | GetVoices () |
Get all available voices from the current TTS-provider as a list. | |
virtual Task< List< Voice > > | GetVoicesAsync () |
Get all available voices from the current TTS-provider as a list asynchronously. | |
virtual void | Silence () |
Silence all active TTS speeches. | |
virtual bool | Speak (string text, Voice? voice=null, float rate=1, float pitch=1, float volume=1, bool forceSSML=true, bool useThreads=false) |
The current provider speaks a text with a given voice. | |
virtual Task< bool > | SpeakAsync (string text, Voice? voice=null, float rate=1, float pitch=1, float volume=1, bool forceSSML=true) |
The current provider speaks a text with a given voice asynchronously. | |
![]() | |
delegate void | VoicesLoaded (List< Voice > voices) |
Delegate for the load status of the voices. | |
delegate void | SpeakStarted (string text) |
Delegate for the speak status. | |
delegate void | SpeakCompleted (string text) |
Delegate for the speak status. | |
Properties | |
virtual List< Voice > | Voices [get] |
Get all available voices from the current TTS-provider and fills it into a given list. | |
virtual int | MaxTextLength [get] |
Maximal length of the speech text (in characters). | |
virtual bool | IsPlatformSupported [get] |
Indicates if this provider is supporting the current platform. | |
virtual bool | IsSSMLSupported [get] |
Indicates if this provider is supporting SSML. | |
virtual List< string > | Cultures [get] |
Get all available cultures from the current provider (ISO 639-1). | |
virtual bool | IsReady [get] |
Is the provider ready to use? | |
virtual bool | IsSpeaking [get] |
Is the provider currently speaking? | |
![]() |
Events | |
IVoiceProvider.? VoicesLoaded | OnVoicesLoaded |
IVoiceProvider.? SpeakStarted | OnSpeakStarted |
IVoiceProvider.? SpeakCompleted | OnSpeakCompleted |
![]() | |
VoicesLoaded | OnVoicesLoaded |
Event triggered whenever the voices are loaded. | |
SpeakStarted | OnSpeakStarted |
Event triggered whenever a speech is started. | |
SpeakCompleted | OnSpeakCompleted |
Event triggered whenever a speech is completed. | |
Provider for TTS in Avalonia (browser).
BogaNet.TTS.Provider.BrowserVoiceProvider.BrowserVoiceProvider | ( | ) |
|
virtual |
Get all available voices from the current TTS-provider as a list.
Implements BogaNet.TTS.Provider.IVoiceProvider.
|
virtual |
Get all available voices from the current TTS-provider as a list asynchronously.
Implements BogaNet.TTS.Provider.IVoiceProvider.
|
virtual |
Silence all active TTS speeches.
Implements BogaNet.TTS.Provider.IVoiceProvider.
|
virtual |
The current provider speaks a text with a given voice.
text | Text to speak. |
voice | Voice to speak (optional). |
rate | Speech rate of the speaker in percent (1 = 100%, values: 0.01-3, default: 1, optional). |
pitch | Pitch of the speech in percent (1 = 100%, values: 0-2, default: 1, optional). |
volume | Volume of the speaker in percent (1 = 100%, values: 0.01-1, default: 1, optional). |
forceSSML | Force SSML on supported platforms (default: true, optional). |
useThreads | Allows to run every Speak-call on a separate thread (default: false, optional). |
Implements BogaNet.TTS.Provider.IVoiceProvider.
|
virtual |
The current provider speaks a text with a given voice asynchronously.
text | Text to speak. |
voice | Voice to speak (optional). |
rate | Speech rate of the speaker in percent (1 = 100%, values: 0.01-3, default: 1, optional). |
pitch | Pitch of the speech in percent (1 = 100%, values: 0-2, default: 1, optional). |
volume | Volume of the speaker in percent (1 = 100%, values: 0.01-1, default: 1, optional). |
forceSSML | Force SSML on supported platforms (default: true, optional). |
Implements BogaNet.TTS.Provider.IVoiceProvider.
|
get |
Get all available cultures from the current provider (ISO 639-1).
Implements BogaNet.TTS.Provider.IVoiceProvider.
|
get |
Indicates if this provider is supporting the current platform.
Implements BogaNet.TTS.Provider.IVoiceProvider.
|
get |
Is the provider ready to use?
Implements BogaNet.TTS.Provider.IVoiceProvider.
|
get |
Is the provider currently speaking?
Implements BogaNet.TTS.Provider.IVoiceProvider.
|
get |
Indicates if this provider is supporting SSML.
Implements BogaNet.TTS.Provider.IVoiceProvider.
|
get |
Maximal length of the speech text (in characters).
Implements BogaNet.TTS.Provider.IVoiceProvider.
|
get |
Get all available voices from the current TTS-provider and fills it into a given list.
Implements BogaNet.TTS.Provider.IVoiceProvider.
IVoiceProvider.? SpeakCompleted BogaNet.TTS.Provider.BrowserVoiceProvider.OnSpeakCompleted |
IVoiceProvider.? SpeakStarted BogaNet.TTS.Provider.BrowserVoiceProvider.OnSpeakStarted |
IVoiceProvider.? VoicesLoaded BogaNet.TTS.Provider.BrowserVoiceProvider.OnVoicesLoaded |