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

Play() public method

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.
return GetSpeech
        public GetSpeech Play(string resource, long? loop)
        {
            Elements.Add(Element.Play.Create(resource, loop));
            return this;
        }