How to send a byte array to Azure Speech Service (Speech to Text)

Arvig, Kris 0 Reputation points
2023-04-26T18:58:13.2633333+00:00

We would like to use Azure Speech Service (Speech to Text) for our project.

I have tried all the examples on this page:

https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-recognize-speech?pivots=programming-language-csharp

I can get all the examples to work... except for the Stream example... and that's the one I need.

I need the Stream example to work, because on our site we will have users upload a WAV file, so it will be in a Stream format. A Byte Array would be even better than a Stream.

Here's my thread detailing everything I've tried:

https://stackoverflow.com/questions/76095737/how-to-send-a-byte-array-to-azure-speech-service-speech-to-text

Can someone please tell me how to get the Stream example to work?
And also can you give me an example of how to send a Byte Array?

It's not the file I'm testing with that is the problem, because I was able to get the other examples on that page to work.

Thanks

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,145 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
1,874 questions
{count} votes