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