We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 895a8ee commit dad02ddCopy full SHA for dad02dd
1 file changed
examples/speech_to_text_v1.py
@@ -56,5 +56,5 @@ def on_data(self, data):
56
mycallback = MyRecognizeCallback()
57
with open(join(dirname(__file__), '../resources/speech.wav'),
58
'rb') as audio_file:
59
- speech_to_text.recognize_with_websocket(
60
- audio=audio_file, recognize_callback=mycallback)
+ speech_to_text.recognize_using_websocket(audio=audio_file, content_type="audio/l16; rate=44100",
+ recognize_callback=mycallback)
0 commit comments