Show / Hide Table of Contents

Interface ITextToSpeech

Represents the TTS engine.

Namespace: ivrToolkit.Core.Interfaces
Assembly: ivrToolkit.Core.dll
Syntax
public interface ITextToSpeech

Methods

| Edit this page View Source

TextToSpeech(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.

| Edit this page View Source

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.

Extension Methods

ValidationExtensions.ThrowIfNull<T>(T, string)
  • View Source
In this article
Back to top Generated by DocFX