Interface ITextToSpeech
Represents the TTS engine.
Namespace: ivrToolkit.Core.Interfaces
Assembly: ivrToolkit.Core.dll
Syntax
public interface ITextToSpeech
Methods
| Edit this page View SourceTextToSpeech(string)
Converts the text to Speech and returns a wav audio stream including the wav header.
Declaration
WavStream TextToSpeech(string text)
Parameters
Type | Name | Description |
---|---|---|
string | text | The text to convert to a wav stream |
Returns
Type | Description |
---|---|
WavStream | A wav stream representing the text. Includes the wav header too. |
TextToSpeechAsync(string, CancellationToken)
Converts the text to Speech and returns a wav audio stream including the wav header.
Declaration
Task<WavStream> TextToSpeechAsync(string text, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | text | The text to convert to a wav stream |
CancellationToken | cancellationToken | A token to monitor for cancellation requests. |
Returns
Type | Description |
---|---|
Task<WavStream> | A wav stream representing the text. Includes the wav header too. |