Hi @D4N005H,
To select an audio input device for the Speech Recognition service in Unity, you can use the Speech SDK. The Speech SDK provides APIs for selecting audio input devices in C++, C#, Python, Objective-C, Java, and JavaScript. You can obtain the IDs of the audio devices connected to a system and use them in the Speech SDK to select the audio input.
Here's an example of how to configure the audio device through the AudioConfig
object in Python:
audio_config = AudioConfig(device_name="<device id>");
To obtain the IDs of the audio devices connected to a system, you can use the IMMDevice
object in Windows for desktop applications. Audio device endpoint ID strings can be retrieved from the IMMDevice
object.
Here's a link to the official Azure documentation that explains how to select audio input devices in the Speech SDK: how-to-select-audio-input-devices.
Also see: Quickstart: Recognize speech from a microphone in Unity using the Speech SDK for Unity.
I hope this information helps! Thank you.