Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Change Log

## [5.45.7](https://github.com/plivo/plivo-java/tree/v5.45.7) (2025-04-16)
**Feature - Added the legs param in speak class .**
- supporting paramter legs in speak element .


## [5.45.6](https://github.com/plivo/plivo-java/tree/v5.45.6) (2025-03-03)
**Fix - Upgraded version for okhttp3 package.**
- Upgraded version of the okhttp3 package .
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The Plivo Java SDK makes it simpler to integrate communications into your Java a

### To Install Stable release

You can use this SDK by adding it as a dependency in your dependency management tool. Alternatively, you can use the [JAR file](https://search.maven.org/remotecontent?filepath=com/plivo/plivo-java/5.45.6/plivo-java-5.45.6.jar).
You can use this SDK by adding it as a dependency in your dependency management tool. Alternatively, you can use the [JAR file](https://search.maven.org/remotecontent?filepath=com/plivo/plivo-java/5.45.6/plivo-java-5.45.7.jar).


If you are using Maven, use the following XML to include the Plivo SDK as a dependency.
Expand All @@ -19,13 +19,13 @@ If you are using Maven, use the following XML to include the Plivo SDK as a depe
<dependency>
<groupId>com.plivo</groupId>
<artifactId>plivo-java</artifactId>
<version>5.45.6</version>
<version>5.45.7</version>
</dependency>
```

If you are using Gradle, use the following line in your dependencies.
```
compile 'com.plivo:plivo-java:5.45.6'
compile 'com.plivo:plivo-java:5.45.7'
```

### To Install Beta release
Expand Down
2 changes: 1 addition & 1 deletion pom.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Written manually.

version=5.45.6
version=5.45.7
groupId=com.plivo
artifactId=plivo-java

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.plivo</groupId>
<artifactId>plivo-java</artifactId>
<version>5.45.5</version>
<version>5.45.7</version>
<name>plivo-java</name>
<description>A Java SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML</description>
<licenses>
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/com/plivo/api/xml/Speak.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public class Speak extends PlivoXml implements ResponseNestable, PreAnswerNestab
@XmlAttribute
private Integer loop;

@XmlAttribute
private String legs;

private static boolean isLang = false;

private static boolean isVoice = false;
Expand All @@ -57,6 +60,7 @@ public Speak(String content) {
this.voice = "WOMAN";
this.language = "en-US";
this.loop = 1;
this.legs = "aleg";
}

public String getVoice() {
Expand All @@ -71,6 +75,10 @@ public Integer getLoop() {
return loop;
}

public String getLegs(){
return legs;
}

public Speak voice (final String voice) throws PlivoXmlException {
this.voice = voice;
isVoice = true;
Expand Down Expand Up @@ -106,6 +114,11 @@ public Speak loop ( final Integer loop){
return this;
}

public Speak legs (final String legs) {
this.legs = legs;
return this;
}

private void checkIsSSMLSupported() throws PlivoXmlException {
if (this.voice == null || this.voice.trim().isEmpty() ||
this.voice.equalsIgnoreCase("MAN") || this.voice.equalsIgnoreCase("WOMAN")) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/plivo/examples/SSML.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static void validateSSMLInvalidLanguage() {
new Speak("validate speak")
.voice("Polly.Salli")
.language("en-US")
.loop(0)
.loop(0).legs("aleg")
.addBreak("maximum", "250ms")
.continueSpeak("Continue speak test 1.")
.addEmphasis("sdfghjjhd", "maximum")
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/com/plivo/api/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.45.6
5.45.7
Loading