livekit / python-sdks

LiveKit real-time and server SDKs for Python
https://docs.livekit.io
Apache License 2.0
157 stars 43 forks source link

Enable Microphone & Play Content on Client Side #278

Open hrushiz opened 1 month ago

hrushiz commented 1 month ago

Hi All,

I've my minimal_assistant.py running as an agent for livekit. I am using python SDK to interact with it. I'm able to connect to agent & publish audio track. I need help on below items:

  1. How to enable microphone at client side so that it recognizes whatever I say just like typical alexa device & sends the audio stream to agent
  2. Agent processes it & responds back in speech so that I can hear what was the response

Is there any sample for this? As I was exploring examples, I could only find basic_room one. Please let me know.

Regards, Hrushikesh