Skip to content

Commit

Permalink
samples: Revert Tests, product team rolled back changes, Auto Punctua…
Browse files Browse the repository at this point in the history
…tion behavior is back to the expected output (#1428)
  • Loading branch information
nnegrey authored and chingor13 committed Aug 15, 2020
1 parent dd52b3a commit ab222e0
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab222e0

Please sign in to comment.