C# 클래스 TelAPI.InboundXML.Element.GetSpeech

상속: ELement
파일 보기 프로젝트 열기: TelAPI/telapi-dotnet 1 사용 예제들

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