Closed ftnext closed 11 months ago
API response changed.
See response_text
in debugger
https://github.com/Uberi/speech_recognition/blob/3.10.0/speech_recognition/__init__.py#L713
(Pdb) response_text
'{"result":[]}\n{"result":[{"alternative":[{"transcript":"砸自己的","confidence":0.90974784}],"final":true}],"result_index":0}\n'
in response_text
{"result":[{"alternative":[{"transcript":"1 2","confidence":0.49585345},{"transcript":"one two three","confidence":0.42899391}
"1 2"
is max confidence, so recognize_google
returns it
IMO: Currently, It is a test for Google's API. I want to change it to a test of the parsing logic of the return value by mocking the communication with Google's API.
https://github.com/Uberi/speech_recognition/actions/runs/6996242087/job/19031904081