C# Class TelAPI.InboundXML.Element.GetSpeech

Inheritance: ELement
Afficher le fichier Open project: TelAPI/telapi-dotnet Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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.

Method Details

Create() public static méthode

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.
Résultat GetSpeech

Create() public static méthode

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.
Résultat GetSpeech

GetSpeech() public méthode

public GetSpeech ( ) : System
Résultat System

Pause() public méthode

The Pause element will pause the call
public Pause ( ) : GetSpeech
Résultat GetSpeech

Pause() public méthode

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.
Résultat GetSpeech

Play() public méthode

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.
Résultat GetSpeech

Say() public méthode

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.
Résultat GetSpeech