C# Класс TelAPI.InboundXML.Element.GetSpeech

Наследование: ELement
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
Create ( string grammar, string action ) : GetSpeech

The GetSpeech element is used to translate a callers voice into text.

Create ( string grammar, string action, HttpMethod method, long timeout, bool playBeep ) : GetSpeech

The GetSpeech element is used to translate a callers voice into text.

GetSpeech ( ) : System
Pause ( ) : GetSpeech

The Pause element will pause the call

Pause ( long length ) : GetSpeech

The Pause element will pause the call, holding for the number of seconds set by the length attribute.

Play ( string resource, long loop ) : GetSpeech

The Play element plays an mp3 file for the caller

Say ( string text, Voice voice, long loop ) : GetSpeech

The Say element reads text to the caller using a text-to-speech engine.

Описание методов

Create() публичный статический Метод

The GetSpeech element is used to translate a callers voice into text.
public static Create ( string grammar, string action ) : GetSpeech
grammar string An XML file defining acceptable words and phrases that a user might say during the call.
action string A URL where the converted voice text will be forwarded.
Результат GetSpeech

Create() публичный статический Метод

The GetSpeech element is used to translate a callers voice into text.
public static Create ( string grammar, string action, HttpMethod method, long timeout, bool playBeep ) : GetSpeech
grammar string An XML file defining acceptable words and phrases that a user might say during the call.
action string A URL where the converted voice text will be forwarded.
method HttpMethod Method used to request the action URL.
timeout long Amount of seconds GetSpeech should wait in silence before requesting the action URL.
playBeep bool Specifies if a beep should playback to the caller when GetSpeech begins.
Результат GetSpeech

GetSpeech() публичный Метод

public GetSpeech ( ) : System
Результат System

Pause() публичный Метод

The Pause element will pause the call
public Pause ( ) : GetSpeech
Результат GetSpeech

Pause() публичный Метод

The Pause element will pause the call, holding for the number of seconds set by the length attribute.
public Pause ( long length ) : GetSpeech
length long The length in seconds the pause should be.
Результат GetSpeech

Play() публичный Метод

The Play element plays an mp3 file for the caller
public Play ( string resource, long loop ) : GetSpeech
resource string Url of the mp3 audio
loop long The amount of times the Play should be repeated. 0 indicates an infinite loop.
Результат GetSpeech

Say() публичный Метод

The Say element reads text to the caller using a text-to-speech engine.
public Say ( string text, Voice voice, long loop ) : GetSpeech
text string Text to say
voice Voice The type of voice that will read the text to caller.
loop long The amount of times the spoken text should be repeated. 0 indicates an infinite loop.
Результат GetSpeech