Свойство | Тип | Описание |
---|
Метод | Описание | |
---|---|---|
Create ( string grammar, string action ) : |
The GetSpeech element is used to translate a callers voice into text.
|
|
Create ( string grammar, string action, HttpMethod method, long timeout, bool playBeep ) : |
The GetSpeech element is used to translate a callers voice into text.
|
|
GetSpeech ( ) : System | ||
Pause ( ) : |
The Pause element will pause the call
|
|
Pause ( long length ) : |
The Pause element will pause the call, holding for the number of seconds set by the length attribute.
|
|
Play ( string resource, long loop ) : |
The Play element plays an mp3 file for the caller
|
|
Say ( string text, Voice voice, long loop ) : |
The Say element reads text to the caller using a text-to-speech engine.
|
public static Create ( string grammar, string action ) : |
||
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. |
Результат |
public static Create ( string grammar, string action, HttpMethod method, long timeout, bool playBeep ) : |
||
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. |
Результат |
public Pause ( long length ) : |
||
length | long | The length in seconds the pause should be. |
Результат |
public Play ( string resource, long loop ) : |
||
resource | string | Url of the mp3 audio |
loop | long | The amount of times the Play should be repeated. 0 indicates an infinite loop. |
Результат |
public Say ( string text, Voice voice, long loop ) : |
||
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. |
Результат |