diff --git a/speech/snippets/src/test/java/com/example/speech/RecognizeIT.java b/speech/snippets/src/test/java/com/example/speech/RecognizeIT.java index 0aa8db5d2ca..2eef6f05807 100644 --- a/speech/snippets/src/test/java/com/example/speech/RecognizeIT.java +++ b/speech/snippets/src/test/java/com/example/speech/RecognizeIT.java @@ -113,22 +113,22 @@ public void testStreamRecognize() throws Exception { @Test public void testAutoPunctuation() throws Exception { Recognize.transcribeFileWithAutomaticPunctuation(audioFileName); - String got = bout.toString().toLowerCase(); - assertThat(got).contains("how old is the brooklyn bridge"); + String got = bout.toString(); + assertThat(got).contains("How old is the Brooklyn Bridge?"); } @Test public void testGcsAutoPunctuation() throws Exception { Recognize.transcribeGcsWithAutomaticPunctuation(gcsAudioPath); - String got = bout.toString().toLowerCase(); - assertThat(got).contains("how old is the brooklyn bridge"); + String got = bout.toString(); + assertThat(got).contains("How old is the Brooklyn Bridge?"); } @Test public void testStreamAutoPunctuation() throws Exception { Recognize.streamingTranscribeWithAutomaticPunctuation(audioFileName); - String got = bout.toString().toLowerCase(); - assertThat(got).contains("how old is the brooklyn bridge"); + String got = bout.toString(); + assertThat(got).contains("How old is the Brooklyn Bridge?"); } @Test