TelAPI.InboundXML.Element.GetSpeech.Create C# (CSharp) Method

Create() public static method

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.
return GetSpeech
        public static GetSpeech Create(string grammar, string action)
        {
            var speech = new GetSpeech();
            speech.Grammar = grammar;
            speech.Action = action;

            return speech;
        }

Same methods

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