@@ -141,7 +141,6 @@ public void testGetModel() {
141141 assertNotNull (model .getRate ());
142142 assertNotNull (model .getUrl ());
143143 assertNotNull (model .getDescription ());
144- assertNotNull (model .getSessions ());
145144 assertNotNull (model .getSupportedFeatures ().isCustomLanguageModel ());
146145 assertNotNull (model .getSupportedFeatures ().isSpeakerLabels ());
147146 }
@@ -269,7 +268,6 @@ public void testRecognizeWebSocket() throws FileNotFoundException, InterruptedEx
269268 FileInputStream audio = new FileInputStream (SAMPLE_WAV );
270269 RecognizeOptions options = new RecognizeOptions .Builder ()
271270 .audio (audio )
272- .interimResults (true )
273271 .inactivityTimeout (40 )
274272 .timestamps (true )
275273 .maxAlternatives (2 )
@@ -332,7 +330,6 @@ public void testInactivityTimeoutWithWebSocket() throws FileNotFoundException, I
332330 FileInputStream audio = new FileInputStream (SAMPLE_WAV_WITH_PAUSE );
333331 RecognizeOptions options = new RecognizeOptions .Builder ()
334332 .audio (audio )
335- .interimResults (true )
336333 .inactivityTimeout (3 )
337334 .timestamps (true )
338335 .maxAlternatives (2 )
@@ -633,7 +630,6 @@ public void testCreateLanguageModel() throws InterruptedException, FileNotFoundE
633630 .customizationId (id )
634631 .corpusName ("corpus-1" )
635632 .corpusFile (new File (String .format (SPEECH_RESOURCE , "corpus1.txt" )))
636- .corpusFileContentType (HttpMediaType .TEXT_PLAIN )
637633 .allowOverwrite (false )
638634 .build ();
639635 service .addCorpus (addOptions ).execute ();
@@ -654,7 +650,6 @@ public void testCreateLanguageModel() throws InterruptedException, FileNotFoundE
654650 .customizationId (id )
655651 .corpusName ("corpus-1" )
656652 .corpusFile (new File (String .format (SPEECH_RESOURCE , "corpus1.txt" )))
657- .corpusFileContentType (HttpMediaType .TEXT_PLAIN )
658653 .allowOverwrite (true )
659654 .build ();
660655 service .addCorpus (addOptionsWithOverwrite ).execute ();
0 commit comments