@@ -297,10 +297,10 @@ def test_sync_recognize_with_gax(self):
297
297
298
298
alternatives = [{
299
299
'transcript' : 'testing 1 2 3' ,
300
- 'confidence' : 0.9224355 ,
300
+ 'confidence' : 0.740234375 ,
301
301
}, {
302
302
'transcript' : 'testing 4 5 6' ,
303
- 'confidence' : 0.0123456 ,
303
+ 'confidence' : 0.6396484375 ,
304
304
}]
305
305
result = _make_result (alternatives )
306
306
@@ -500,19 +500,19 @@ def test_stream_recognize_interim_results(self):
500
500
501
501
alternatives = [{
502
502
'transcript' : 'testing streaming 1 2 3' ,
503
- 'confidence' : 0.9224355 ,
503
+ 'confidence' : 0.5888671875 ,
504
504
}, {
505
505
'transcript' : 'testing streaming 4 5 6' ,
506
- 'confidence' : 0.0123456 ,
506
+ 'confidence' : 0.28125 ,
507
507
}]
508
508
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 ))
510
510
second_response = _make_streaming_response (
511
511
_make_streaming_result (alternatives , is_final = False ,
512
- stability = 0.1432343 ))
512
+ stability = 0.28125 ))
513
513
last_response = _make_streaming_response (
514
514
_make_streaming_result (alternatives , is_final = True ,
515
- stability = 0.9834534 ))
515
+ stability = 0.4375 ))
516
516
responses = [first_response , second_response , last_response ]
517
517
518
518
channel_args = []
@@ -542,8 +542,8 @@ def speech_api(channel=None):
542
542
self .assertIsInstance (results [0 ], StreamingSpeechResult )
543
543
self .assertEqual (results [0 ].alternatives , [])
544
544
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 )
547
547
self .assertFalse (results [1 ].is_final )
548
548
self .assertEqual (results [1 ].transcript ,
549
549
results [1 ].alternatives [0 ].transcript ,
@@ -556,7 +556,7 @@ def speech_api(channel=None):
556
556
self .assertEqual (results [1 ].alternatives [1 ].confidence ,
557
557
alternatives [1 ]['confidence' ])
558
558
self .assertTrue (results [2 ].is_final )
559
- self .assertEqual (results [2 ].stability , 0.9834534 )
559
+ self .assertEqual (results [2 ].stability , 0.4375 )
560
560
self .assertEqual (results [2 ].transcript ,
561
561
results [2 ].alternatives [0 ].transcript ,
562
562
alternatives [0 ]['transcript' ])
@@ -580,10 +580,10 @@ def test_stream_recognize(self):
580
580
581
581
alternatives = [{
582
582
'transcript' : 'testing streaming 1 2 3' ,
583
- 'confidence' : 0.9224355 ,
583
+ 'confidence' : 0.4375 ,
584
584
}, {
585
585
'transcript' : 'testing streaming 4 5 6' ,
586
- 'confidence' : 0.0123456 ,
586
+ 'confidence' : 0.84375 ,
587
587
}]
588
588
589
589
first_response = _make_streaming_response (
0 commit comments