question

MekaKrishnacharan-2683 avatar image
1 Vote"
MekaKrishnacharan-2683 asked ·

error in method 'PushAudioInputStream_write', argument 2 of type '(TYPEMAP, SIZE)' while preparing stream for speech to text

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

azure-speech
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for posting the question!

Azure Cognitive Service (Speech Service) is not yet been migrated to Microsoft Q&A. For a specialized assistance on this issue, please repost your question on either of the following forums:

http://stackoverflow.com/questions/tagged/microsoft-cognitive

https://social.msdn.microsoft.com/Forums/en-US/home?forum=AzureCognitiveService

We are actively working to onboard remaining Azure services on Microsoft Q&A.
We will make a public announcement once complete.

Want to learn more about new platform and the services which are currently onboarded, kindly checkout this FAQ- Microsoft Q&A Getting Started:
https://docs.microsoft.com/answers/articles/388/microsoft-qa-frequently-asked-questions.html

Apologies for any inconvenience. Thanks for understanding!


0 Votes 0 ·

Azure Speech Services will be supported on Microsoft Q&A in near future

0 Votes 0 ·

0 Answers