Skip to content

Commit 539d724

Browse files
authored
Merge branch 'master' into compare-and-comply
2 parents 2fa5023 + e6d6537 commit 539d724

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=6.9.2
1+
version=6.9.4
22
group = com.ibm.watson.developer_cloud

speech-to-text/src/main/java/com/ibm/watson/developer_cloud/speech_to_text/v1/websocket/SpeechToTextWebSocketListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public final class SpeechToTextWebSocketListener extends WebSocketListener {
5555
private static final String RESULTS = "results";
5656
private static final String SPEAKER_LABELS = "speaker_labels";
5757
private static final String CUSTOMIZATION_ID = "customization_id";
58-
private static final String LANGUAGE_CUSTOMIZATION_ID = "customization_id";
58+
private static final String LANGUAGE_CUSTOMIZATION_ID = "language_customization_id";
5959
private static final String ACOUSTIC_CUSTOMIZATION_ID = "acoustic_customization_id";
6060
private static final String CUSTOMIZATION_WEIGHT = "customization_weight";
6161
private static final String VERSION = "base_model_version";

speech-to-text/src/test/java/com/ibm/watson/developer_cloud/speech_to_text/v1/SpeechToTextIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,7 @@ public void onError(Exception e) {
305305

306306
@Override
307307
public void onTranscription(SpeechRecognitionResults speechResults) {
308-
Long resultIndex = speechResults.getResultIndex();
309-
if (speechResults != null && speechResults.getResults().get(resultIndex.intValue()).isFinalResults()) {
308+
if (speechResults != null && speechResults.getResults().get(0).isFinalResults()) {
310309
asyncResults = speechResults;
311310
}
312311
}

0 commit comments

Comments
 (0)