S
Solara6mo ago
Lidio

How to access the user's microphone?

To be more specific, I want to use Solara as an interface for my program with Azure Speech
import azure.cognitiveservices.speech as speechsdk

device_instance_path = '{0.0.1.00000000}.{043890C0-0384-4002-A40F-040F0C257A95}'
...

speechsdk.audio.AudioConfig(device_name=device_instance_path)

...
import azure.cognitiveservices.speech as speechsdk

device_instance_path = '{0.0.1.00000000}.{043890C0-0384-4002-A40F-040F0C257A95}'
...

speechsdk.audio.AudioConfig(device_name=device_instance_path)

...
but this code would look for the device on the host instead of the client
4 Replies
MaartenBreddels
MaartenBreddels6mo ago
@alonsosilva did something with audio right?
Alonso Silva
Alonso Silva6mo ago
Yes, indeed. I have closed my shale account (for getting llama2 responses) and my elevenlabs account (to generate TTS) but this code should work: https://huggingface.co/spaces/alonsosilva/talk2ai/blob/main/app.py
Lidio
LidioOP6mo ago
Is there any way to capture audio without using Jupyter?
Want results from more Discord servers?
Add your server