File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
snippets/voice/callouts_text_to_speech Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
package voice ;
2
2
3
- import com .sinch .sdk .domains .voice .*;
4
- import com .sinch .sdk .domains .voice .models .*;
5
- import com .sinch .sdk .domains .voice .models .requests .*;
3
+ import com .sinch .sdk .domains .voice .api .v1 .CalloutsService ;
4
+ import com .sinch .sdk .domains .voice .api .v1 .VoiceService ;
5
+ import com .sinch .sdk .domains .voice .models .v1 .callouts .request .CalloutRequestTTS ;
6
+ import com .sinch .sdk .domains .voice .models .v1 .destination .DestinationPstn ;
6
7
7
8
public class Snippet {
8
9
@@ -13,9 +14,9 @@ public static String execute(VoiceService voiceService) {
13
14
String phoneNumber = "YOUR_phone_number" ;
14
15
String message = "Hello, this is a call from Sinch. Congratulations! You made your first call." ;
15
16
16
- CalloutRequestParametersTTS parameters =
17
- CalloutRequestParametersTTS .builder ()
18
- .setDestination (DestinationNumber . valueOf (phoneNumber ))
17
+ CalloutRequestTTS parameters =
18
+ CalloutRequestTTS .builder ()
19
+ .setDestination (DestinationPstn . from (phoneNumber ))
19
20
.setText (message )
20
21
.build ();
21
22
You can’t perform that action at this time.
0 commit comments