Skip to content

Commit

Permalink
speakApiParam
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-plivo committed Jan 8, 2024
1 parent fa2348b commit 4bd45ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/com/plivo/api/models/call/Call.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ public static CallPlayDeleter playStopper(String callUuid) {
return new CallPlayDeleter(callUuid);
}

public static CallSpeakCreator speaker(String callUuid, String text) {
return new CallSpeakCreator(callUuid, text);
}

public static CallSpeakCreator speaker(String callUuid, String text, String type) {
return new CallSpeakCreator(callUuid, text, type);
}
Expand Down Expand Up @@ -212,8 +216,8 @@ public CallPlayDeleter playStopper() {
return new CallPlayDeleter(callUuid);
}

public CallSpeakCreator speaker(String text, String type) {
return new CallSpeakCreator(callUuid, text, type);
public CallSpeakCreator speaker(String text) {
return new CallSpeakCreator(callUuid, text);
}

public RequestDeleter canceller() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ public class CallSpeakCreator extends VoiceCreator<CallSpeakCreateResponse> {
private Boolean loop;
private Boolean mix;

public CallSpeakCreator(String id, String text) {
this.id = id;
this.text = text;
this.type = "text";
}

public CallSpeakCreator(String id, String text, String type) {
this.id = id;
this.text = text;
Expand Down

0 comments on commit 4bd45ff

Please sign in to comment.