Awesome. When I input an audio stream into into the audio config and use the recognizer, will the recognizer be able to 'listen' to the audio instantaneously? Or does it send the audio data in real time?
[Speech to text] How do I configure the AudioConfig object to an AudioBuffer Object?
Muhsin Wahi-Anwar
1
Reputation point
Hello,
I'm trying to get some audio inputs working and want to use an mozilla/HTML AudioBuffer object as an input for some speech identification.
What kind of AudioConfig object should I use? Currently I'm going with
sdk.AudioConfig.fromWavFileInput(AudioBuffer);
Is this good?
2 answers
Sort by: Newest
-
-
YutongTie-MSFT 46,646 Reputation points
2021-03-29T15:54:05.32+00:00 Hello,
Thanks for reaching out to us. It depends on what kind of input you use, please refer to the methods for AudioConfig class:
And also two typical input code sample:
- compressed audio file https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-use-codec-compressed-audio-input-streams?tabs=debian&pivots=programming-language-csharp
- steam https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-use-audio-input-streams
Regards,
Yutong