Show / Hide Table of Contents

Interface ITextToSpeechCacheFactory

Used to generate an instance of ITextToSpeechCache. This provides a way of caching Text to speech as a wav file so that later use will not have to rerun the TTS process.

// example:
var ttsCache = ttsCacheFactory.Create(text, wavFileName);

You can then pass ttsCache to PlayFile or PlayTextToSpeech

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

Methods

| Edit this page View Source

Create(string, string)

Creates an instance of ITextToSpeechCache with text and a wav file name for use in PlayFile or PlayTextToSpeech

Declaration
ITextToSpeechCache Create(string text, string wavFileName = null)
Parameters
Type Name Description
string text

The text to be converted to a wav stream later on

string wavFileName

The name of the wav file to generate later on. If null, no wav file will be generated

Returns
Type Description
ITextToSpeechCache

Extension Methods

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