@@ -297,10 +297,10 @@ def test_sync_recognize_with_gax(self):
297297
298298 alternatives = [{
299299 'transcript' : 'testing 1 2 3' ,
300- 'confidence' : 0.9224355 ,
300+ 'confidence' : 0.740234375 ,
301301 }, {
302302 'transcript' : 'testing 4 5 6' ,
303- 'confidence' : 0.0123456 ,
303+ 'confidence' : 0.6396484375 ,
304304 }]
305305 result = _make_result (alternatives )
306306
@@ -500,19 +500,19 @@ def test_stream_recognize_interim_results(self):
500500
501501 alternatives = [{
502502 'transcript' : 'testing streaming 1 2 3' ,
503- 'confidence' : 0.9224355 ,
503+ 'confidence' : 0.5888671875 ,
504504 }, {
505505 'transcript' : 'testing streaming 4 5 6' ,
506- 'confidence' : 0.0123456 ,
506+ 'confidence' : 0.28125 ,
507507 }]
508508 first_response = _make_streaming_response (
509- _make_streaming_result ([], is_final = False , stability = 0.122435 ))
509+ _make_streaming_result ([], is_final = False , stability = 0.314453125 ))
510510 second_response = _make_streaming_response (
511511 _make_streaming_result (alternatives , is_final = False ,
512- stability = 0.1432343 ))
512+ stability = 0.28125 ))
513513 last_response = _make_streaming_response (
514514 _make_streaming_result (alternatives , is_final = True ,
515- stability = 0.9834534 ))
515+ stability = 0.4375 ))
516516 responses = [first_response , second_response , last_response ]
517517
518518 channel_args = []
@@ -542,8 +542,8 @@ def speech_api(channel=None):
542542 self .assertIsInstance (results [0 ], StreamingSpeechResult )
543543 self .assertEqual (results [0 ].alternatives , [])
544544 self .assertFalse (results [0 ].is_final )
545- self .assertEqual (results [0 ].stability , 0.122435 )
546- self .assertEqual (results [1 ].stability , 0.1432343 )
545+ self .assertEqual (results [0 ].stability , 0.314453125 )
546+ self .assertEqual (results [1 ].stability , 0.28125 )
547547 self .assertFalse (results [1 ].is_final )
548548 self .assertEqual (results [1 ].transcript ,
549549 results [1 ].alternatives [0 ].transcript ,
@@ -556,7 +556,7 @@ def speech_api(channel=None):
556556 self .assertEqual (results [1 ].alternatives [1 ].confidence ,
557557 alternatives [1 ]['confidence' ])
558558 self .assertTrue (results [2 ].is_final )
559- self .assertEqual (results [2 ].stability , 0.9834534 )
559+ self .assertEqual (results [2 ].stability , 0.4375 )
560560 self .assertEqual (results [2 ].transcript ,
561561 results [2 ].alternatives [0 ].transcript ,
562562 alternatives [0 ]['transcript' ])
@@ -580,10 +580,10 @@ def test_stream_recognize(self):
580580
581581 alternatives = [{
582582 'transcript' : 'testing streaming 1 2 3' ,
583- 'confidence' : 0.9224355 ,
583+ 'confidence' : 0.4375 ,
584584 }, {
585585 'transcript' : 'testing streaming 4 5 6' ,
586- 'confidence' : 0.0123456 ,
586+ 'confidence' : 0.84375 ,
587587 }]
588588
589589 first_response = _make_streaming_response (
0 commit comments