// Example for speak - play in a looppackagecom.plivo.api.xml.samples.speak;importcom.plivo.api.exceptions.PlivoXmlException;importcom.plivo.api.xml.Response;importcom.plivo.api.xml.Speak;classPlayInALoop{publicstaticvoidmain(String[]args)throwsPlivoXmlException{Responseresponse=newResponse().children(newSpeak("Wow.").loop(3));System.out.println(response.toXmlString());}}
usingSystem;usingSystem.Collections.Generic;usingPlivo.XML;namespacePlivo{classMainClass{publicstaticvoidMain(string[]args){Plivo.XML.Responseresp=newPlivo.XML.Response();resp.AddSpeak("Go green, go plivo.",newDictionary<string,string>(){{"loop","3"}});varoutput=resp.ToString();Console.WriteLine(output);}}}//<Response>// <Speak loop = "3" > Go green, go plivo.</Speak>//</Response>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Example for speak - play in looppackagemainimport"github.com/plivo/plivo-go/v7/xml"funcmain(){response:=xml.ResponseElement{Contents:[]interface{}{new(xml.SpeakElement).SetLoop(3).AddSpeak("Wow."),},}print(response.String())}
usingSystem;usingSystem.Collections.Generic;usingPlivo.XML;namespacePlivo{classMainClass{publicstaticvoidMain(string[]args){Plivo.XML.Responseresp=newPlivo.XML.Response();resp.AddSpeak("Go green, go plivo.",newDictionary<string,string>(){{"loop","3"}});varoutput=resp.ToString();Console.WriteLine(output);}}}//<Response>// <Speak loop = "3" > Go green, go plivo.</Speak>//</Response>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Example for speak - play in looppackagemainimport"github.com/plivo/plivo-go/v7/xml"funcmain(){response:=xml.ResponseElement{Contents:[]interface{}{new(xml.SpeakElement).SetLoop(3).AddSpeak("Wow."),},}print(response.String())}
Rate this page
🥳 Thank you! It means a lot to us!
×
Help Us Improve
Thank you so much for rating the page, we would like to get your input
for further improvements!