hundreds-engine-16186
07/22/2024, 11:12 AMimportant-gold-43019
07/22/2024, 2:11 PMnarrow-cartoon-72806
07/22/2024, 2:56 PMlively-musician-7572
07/22/2024, 3:52 PMrough-activity-89413
07/22/2024, 3:58 PMsilero_vad
component. This error is consistently displayed, as shown in the attached image. I have taken the necessary steps to address the issue by installing Livekit Plugins Silero version 0.5.3, as mentioned in this git issue and this previous thread. However, the problem persists. I kindly request your assistance in resolving this matterflaky-city-98337
07/22/2024, 4:31 PMbland-church-25024
07/22/2024, 4:54 PMnarrow-egg-50997
07/22/2024, 5:38 PMfrom livekit.agents import JobContext, JobRequest, WorkerOptions, cli
from livekit.agents.voice_assistant import VoiceAssistant
from langfuse import Langfuse
langfuse = Langfuse()
async def entrypoint(ctx: JobContext):
assistant = VoiceAssistant(...)
@assistant.on("agent_speech_committed")
def _handle_agent_speech_committed(chat_ctx, msg):
trace = langfuse.trace(...)
trace.generation(...)
@assistant.on("user_speech_committed")
def _handle_user_speech_committed(chat_ctx, msg):
<http://logging.info|logging.info>("USER SPEECH COMMITTED %s", msg)
assistant.start(ctx.room)
if __name__ == "__main__":
cli.run_app(WorkerOptions(request_fnc))
This code works perfectly when i develop on macOS, with logging and Langfuse tracing functioning as expected. However on a Linux environment (Digital Ocean droplet), neither logging nor tracing seem to work. Any ideas why this might be? Cheers!bumpy-account-18745
07/22/2024, 7:53 PMbored-motorcycle-22550
07/23/2024, 12:17 AMlivekit_client
calling _room.setAudioOutputDevice(mediaDevice)
on iOS does not change the audio output device even though Hardware.instance.enumerateDevices()
does correctly list all media devices. How can I set the iOS audio output?sparse-architect-94921
07/23/2024, 12:31 AMswift-garden-97786
07/23/2024, 7:03 AMmodern-london-11230
07/23/2024, 11:03 AMfierce-winter-46182
07/23/2024, 1:03 PMenough-boots-69343
07/23/2024, 2:59 PMwitty-rocket-21239
07/23/2024, 3:41 PMambitious-petabyte-85570
07/23/2024, 4:59 PMVoipLiveKit$listenEvents$$inlined$collect$1.emit
java.lang.IllegalStateException - The specified child already has a parent. You must call removeView() on the child's parent first.
echoing-plumber-95406
07/24/2024, 5:44 AMcertificates:
automate:
- dev.livekit.room8.link
- dev.turn.livekit.room8.link
But when I started the instance, I found the certificate is expired and can not be renewed. This did not happen a few days ago.
Here is the log from docker-compose
msg":"renewing certificate","identifier":"dev.turn.livekit.room8.link","remaining":-796035.763133431
{"level":"error","ts":1721799079.5076382,"logger":"tls.renew","msg":"could not get certificate from issuer","identifier":"dev.livekit.room8.link","issuer":"acme-v02.api.letsencrypt.org-directory","error":"HTTP 404 urn:ietf:params:acme:error:malformed - No such authorization"}
Could you please help me solve this issue?brash-bird-49903
07/24/2024, 9:16 PMsalmon-flag-32441
07/24/2024, 9:43 PMshy-island-45158
07/25/2024, 2:42 AMbrash-bird-49903
07/25/2024, 3:01 AMhallowed-mouse-36162
07/25/2024, 4:27 AMhallowed-mouse-36162
07/25/2024, 4:28 AMhallowed-mouse-36162
07/25/2024, 4:29 AMwide-optician-47467
07/25/2024, 10:58 PMcolossal-electrician-36427
07/26/2024, 1:12 AMroom.localParticipant.isScreenShareEnabled()
still returns true. Is there any plan to fix this issue or workaround?silly-boots-13504
07/26/2024, 3:55 AMsilly-boots-13504
07/26/2024, 10:51 AMable-ice-55575
07/26/2024, 2:32 PM- livekit - ERROR - livekit_ffi::server::room:200:livekit_ffi::server::room - error while connecting to a room: engine: connection error: wait_pc_connection timed out
or I get this
2024-07-26 14:33:54,840 - livekit - INFO - livekit_api::signal_client::signal_stream:88:livekit_api::signal_client::signal_stream - connecting to <wss://jupiter7-rdxxacqa.livekit.cloud/rtc?sdk=rust&protocol=9&auto_subscribe=1&adaptive_stream=0&access_token=>...
Connected to room: foo
Participants: {}
2024-07-26 14:33:55,443 - root - INFO - connected to room foo
2024-07-26 14:33:55,443 - root - INFO - participants: {}
Error: gst-stream-error-quark: GStreamer encountered a general stream error. (1), net/webrtc/src/webrtcsrc/imp.rs(924): gstrswebrtc::webrtcsrc::imp::BaseWebRTCSrc::connect_signaller::{{closure}}::{{closure}} (): /GstPipeline:pipeline0/GstLiveKitWebRTCSrc:src:
Signalling error: Error: Server disconnected
# Function to generate JWT token using the LiveKit library's API
def generate_token(api_key, api_secret, room_name, identity):
token = api.AccessToken(api_key, api_secret) \
.with_identity(identity) \
.with_grants(api.VideoGrants(
room_join=True,
room=room_name,
can_publish=True,
can_subscribe=True,
can_publish_data=True
))
return token.to_jwt()
# Async function to connect to the LiveKit room
async def connect_to_room():
token = generate_token(api_key, api_secret, room_name, system_user_name)
room = rtc.Room()
try:
await room.connect(livekit_url, token)
print(f"Connected to room: {room_name}")
print(f"Participants: {room.participants}")
return room
except Exception as e:
print(f"Failed to connect to room: {e}")
return None