diff --git a/CHANGELOG.md b/CHANGELOG.md index 384b1a44..da7ae4bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 . diff --git a/README.md b/README.md index 1fdef7da..4184106a 100644 --- a/README.md +++ b/README.md @@ -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. @@ -19,13 +19,13 @@ If you are using Maven, use the following XML to include the Plivo SDK as a depe com.plivo plivo-java - 5.45.6 + 5.45.7 ``` 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 diff --git a/pom.properties b/pom.properties index feaca3f1..29a3978f 100644 --- a/pom.properties +++ b/pom.properties @@ -1,6 +1,6 @@ # Written manually. -version=5.45.6 +version=5.45.7 groupId=com.plivo artifactId=plivo-java diff --git a/pom.xml b/pom.xml index b934ee21..4c2645a5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.plivo plivo-java - 5.45.5 + 5.45.7 plivo-java A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML diff --git a/src/main/java/com/plivo/api/xml/Speak.java b/src/main/java/com/plivo/api/xml/Speak.java index 97ae72a0..90730dcb 100644 --- a/src/main/java/com/plivo/api/xml/Speak.java +++ b/src/main/java/com/plivo/api/xml/Speak.java @@ -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; @@ -57,6 +60,7 @@ public Speak(String content) { this.voice = "WOMAN"; this.language = "en-US"; this.loop = 1; + this.legs = "aleg"; } public String getVoice() { @@ -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; @@ -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")) { diff --git a/src/main/java/com/plivo/examples/SSML.java b/src/main/java/com/plivo/examples/SSML.java index 452b524d..276e426a 100644 --- a/src/main/java/com/plivo/examples/SSML.java +++ b/src/main/java/com/plivo/examples/SSML.java @@ -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") diff --git a/src/main/resources/com/plivo/api/version.txt b/src/main/resources/com/plivo/api/version.txt index 3c482d53..a350ec62 100644 --- a/src/main/resources/com/plivo/api/version.txt +++ b/src/main/resources/com/plivo/api/version.txt @@ -1 +1 @@ -5.45.6 +5.45.7