Skip to content

Commit dad02dd

Browse files
committed
chore(stt): update example to use new method
1 parent 895a8ee commit dad02dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/speech_to_text_v1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ def on_data(self, data):
5656
mycallback = MyRecognizeCallback()
5757
with open(join(dirname(__file__), '../resources/speech.wav'),
5858
'rb') as audio_file:
59-
speech_to_text.recognize_with_websocket(
60-
audio=audio_file, recognize_callback=mycallback)
59+
speech_to_text.recognize_using_websocket(audio=audio_file, content_type="audio/l16; rate=44100",
60+
recognize_callback=mycallback)

0 commit comments

Comments
 (0)