File tree 2 files changed +19
-17
lines changed
beta/src/test/java/com/example/speech
cloud-client/src/test/java/com/example/speech 2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -60,22 +60,6 @@ public void tearDown() {
60
60
System .setOut (null );
61
61
}
62
62
63
- @ Test
64
- public void testModelSelection () throws Exception {
65
- Recognize .transcribeModelSelection (videoFileName );
66
- String got = bout .toString ();
67
- assertThat (got ).contains ("OK Google" );
68
- assertThat (got ).contains ("the weather outside is sunny" );
69
- }
70
-
71
- @ Test
72
- public void testGcsModelSelection () throws Exception {
73
- Recognize .transcribeModelSelectionGcs (gcsVideoPath );
74
- String got = bout .toString ();
75
- assertThat (got ).contains ("OK Google" );
76
- assertThat (got ).contains ("the weather outside is sunny" );
77
- }
78
-
79
63
@ Test
80
64
public void testMetadata () throws Exception {
81
65
Recognize .transcribeFileWithMetadata (recognitionAudioFile );
Original file line number Diff line number Diff line change @@ -38,9 +38,12 @@ public class RecognizeIT {
38
38
// The path to the audio file to transcribe
39
39
private String audioFileName = "./resources/audio.raw" ;
40
40
private String gcsAudioPath = "gs://" + BUCKET + "/speech/brooklyn.flac" ;
41
-
42
41
private String recognitionAudioFile = "./resources/commercial_mono.wav" ;
43
42
43
+ // The path to the video file to transcribe
44
+ private String videoFileName = "./resources/Google_Gnome.wav" ;
45
+ private String gcsVideoPath = "gs://" + BUCKET + "/speech/Google_Gnome.wav" ;
46
+
44
47
@ Before
45
48
public void setUp () {
46
49
bout = new ByteArrayOutputStream ();
@@ -132,4 +135,19 @@ public void testEnhancedModel() throws Exception {
132
135
assertThat (got ).contains ("Chrome" );
133
136
}
134
137
138
+ @ Test
139
+ public void testModelSelection () throws Exception {
140
+ Recognize .transcribeModelSelection (videoFileName );
141
+ String got = bout .toString ();
142
+ assertThat (got ).contains ("OK Google" );
143
+ assertThat (got ).contains ("the weather outside is sunny" );
144
+ }
145
+
146
+ @ Test
147
+ public void testGcsModelSelection () throws Exception {
148
+ Recognize .transcribeModelSelectionGcs (gcsVideoPath );
149
+ String got = bout .toString ();
150
+ assertThat (got ).contains ("OK Google" );
151
+ assertThat (got ).contains ("the weather outside is sunny" );
152
+ }
135
153
}
You can’t perform that action at this time.
0 commit comments