python-sdks icon indicating copy to clipboard operation
python-sdks copied to clipboard

LiveKit real-time SDK and server API for Python

Results 67 python-sdks issues
Sort by recently updated
recently updated
newest added

**Issue Description Problem Description** I've discovered a significant performance bottleneck when publishing audio files to LiveKit rooms using the Python SDK. While the SDK works well with a small number...

Hi, I'm trying to to use a specific TURN server while using the real-time SDK for Python but I couldn't find a precise example .. Does this look ok? ```python...

I'm using a Text to Speech service that only returns full sentences worth of audio. Because of this, the audio is sometimes 5+ seconds long. If I start a capture_frame(frame)...

example Code from here: https://github.com/livekit-examples/outbound-caller-python/blob/main/agent.py livekit==0.22.0 livekit-agents==0.12.17 livekit-api==0.8.2 ``` while perf_counter() - start_time < 30: call_status = participant.attributes.get("sip.callStatus") if call_status == "active": logger.info("user has picked up") return elif call_status ==...

Rust-side: https://github.com/livekit/rust-sdks/pull/599

Based on the examples, it's normal to have a greeting at the end of the entrypoint. Something like: ``` await agent.say("Welcome, I'm a friendly assistant...", allow_interruptions=True) ``` This message is...

Here is example handler. My code shows error like "handle_text_stream is not awaited." ``` async def handle_text_stream(reader, participant_identity): info = reader.info print( f'Text stream received from {participant_identity}\n' f' Topic: {info.topic}\n'...

Fix for RuntimeWarning: coroutine 'RoomManager.handle_text_stream' was never awaited This occurs when a message is received from a text (or byte) stream. As shown in the documentation here, https://docs.livekit.io/home/client/data/text-streams/ a stream...

This should be backwards compatible with the previous way we handled chat messages. Adds the `ignoreLegacy` flag to outgoing legacy messages and ignores incoming dp with the `ignoreLegacy` flag so...

Since our framework is async by default, we should give the option for users to pass in async functions in the callbacks. This will avoid awkward use of asyncio.create_task() inside...