error in method 'PushAudioInputStream_write', argument 2 of type '(TYPEMAP, SIZE)' while preparing stream for speech to text
Meka,Krishnacharan
6
Reputation points
0
I am trying to send stream to azure speech to text using the below logic
def get_speechstream_text_async(self,stream):
try:
print('push shart')
stream_format= speechsdk.audio.AudioStreamFormat()
custom_stream= speechsdk.audio.PushAudioInputStream(stream_format)
print('again end')
custom_stream.write(stream)
print('push end')
audio_config = speechsdk.audio.AudioConfig(stream=custom_stream)
speech_recognizer = speechsdk.SpeechRecognizer(speech_config=self.speech_config, audio_config=audio_config)
when i am trying the feed the stream i am getting this error
"error in method 'PushAudioInputStream_write', argument 2 of type '(TYPEMAP, SIZE)'"
Can someone please help on what is the issue here and how to pass to stream to get the speech to text
Sign in to answer