Skip to content

Commit

Permalink
Adding TalkAction test and updating change log
Browse files Browse the repository at this point in the history
  • Loading branch information
slorello89 committed Nov 19, 2020
1 parent dc55b75 commit e0f292f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [6.1.0]
- Adding Language and Style to the Voice Talk Action and the Talk Request
- Marking VoiceName as Deprecated

## [6.0.0]
## Added
- ASR (Automatic Speech Recognition)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package com.vonage.client.voice.ncco;

import com.vonage.client.voice.TextToSpeechLanguage;
import com.vonage.client.voice.VoiceName;
import org.junit.Test;

Expand All @@ -36,9 +37,11 @@ public void testAllFields() {
.loop(3)
.level(0.3333f)
.voiceName(VoiceName.KIMBERLY)
.language(TextToSpeechLanguage.AMERICAN_ENGLISH)
.style(2)
.build();

String expectedJson = "[{\"text\":\"New Text Message\",\"bargeIn\":true,\"loop\":3,\"level\":0.3333,\"voiceName\":\"Kimberly\",\"action\":\"talk\"}]";
String expectedJson = "[{\"text\":\"New Text Message\",\"bargeIn\":true,\"loop\":3,\"level\":0.3333,\"language\":\"en-US\",\"style\":2,\"voiceName\":\"Kimberly\",\"action\":\"talk\"}]";
assertEquals(expectedJson, new Ncco(talk).toJson());
}

Expand Down

0 comments on commit e0f292f

Please sign in to comment.