wide-shoe-67933
08/06/2024, 8:27 AMlivekit_client: 2.2.3
and flutter_webrtc: ^0.11.6
it is not possible to switch audio device on Android using room.setAudioOutputDevice(device)
. It seems like its the OS who decide what audio device to use since I can't switch from either speakerphone (if no bluetooth headset is connected) or bluetooth headset.clever-eye-6338
08/06/2024, 10:40 AM(venv) yash@Yashs-MacBook-Air livekit % python3 main.py start
{"message": "starting worker", "version": "0.8.3", "timestamp": "2024-08-06T10:38:13.227942+00:00"}
{"message": "failed to connect to livekit, retrying in 0s: Cannot connect to host esa-irceuaug.livekit.cloud:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')]", "timestamp": "2024-08-06T10:38:13.410985+00:00"}
{"message": "failed to connect to livekit, retrying in 2s: Cannot connect to host esa-irceuaug.livekit.cloud:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')]", "timestamp": "2024-08-06T10:38:13.459755+00:00"}
{"message": "failed to connect to livekit, retrying in 4s: Cannot connect to host esa-irceuaug.livekit.cloud:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')]", "timestamp": "2024-08-06T10:38:15.520275+00:00"}
After properly providing the enviroment variables its still asking for ssl certificates
Can anyone help here ??colossal-memory-2724
08/06/2024, 1:15 PMcolossal-memory-2724
08/06/2024, 1:18 PMmagnificent-fall-63786
08/06/2024, 1:54 PM<Chat/>
component within <LiveKitRoom/>
after wrapping it in`<LayoutContextProvider/>`(throws LayoutContext error otherwise), as well as through useChat():
const { chatMessages: messages, send } = useChat();
console.log(messages)
However, in both cases I can't get any messages returned although the voice assistant answers everything nicely on audio. Can you help point me in the right direction?wide-shoe-67933
08/06/2024, 1:59 PMclient.deleteRoom(videoRoomUUID).execute();
from our backend and mobile participants are currently connected to the room. Webhooks room_finished
AND THEN room_started
are trigger leaving us with a new and empty room every single time. When running web to web, we have no issue at all. We are using Flutter and livekit-server 1.7.0
server-sdk-kotlin 0.5.9
prehistoric-megabyte-78405
08/06/2024, 2:00 PMnice-helicopter-67627
08/06/2024, 3:24 PMsteep-plumber-1076
08/06/2024, 3:56 PMstraight-lighter-73455
08/07/2024, 3:37 AMlively-scientist-17790
08/07/2024, 10:03 AMmodern-london-11230
08/07/2024, 11:36 AMnice-helicopter-67627
08/07/2024, 1:42 PMlate-cricket-40276
08/07/2024, 3:27 PMrich-monitor-70665
08/07/2024, 3:42 PMtemplate_base: // here use cloud template
brave-raincoat-58318
08/07/2024, 5:17 PMloud-xylophone-55270
08/07/2024, 5:39 PMquaint-car-35828
08/07/2024, 6:33 PMstraight-lighter-73455
08/07/2024, 6:33 PMflaky-sundown-18688
08/07/2024, 6:35 PMeager-country-92608
08/08/2024, 12:01 PMsteep-balloon-41261
08/09/2024, 4:10 AMgreen-toddler-51288
08/09/2024, 9:44 AMmammoth-actor-31484
08/09/2024, 4:53 PMdry-elephant-14928
08/09/2024, 8:49 PMThis channel is being sunset, please ask any questions in the relevant channels rather than asking them here.
steep-plumber-1076
08/13/2024, 4:10 PMfrom livekit import rtc, agents
from livekit.plugins import deepgram, openai, silero
assistant = VoiceAssistant(
whisper_stt = openai.STT(),
vad = silero.VAD.load(
min_speech_duration=0.1,
min_silence_duration=0.5,
),
vad_stream = silero.VAD.load(
min_speech_duration=0.1,
min_silence_duration=0.5,
).stream(),
stt = agents.stt.StreamAdapter(openai.STT(), silero.VAD.load(
min_speech_duration=0.1,
min_silence_duration=0.5,
).stream()),
stt_stream = stt.stream(),
llm=openai.LLM(model="gpt-4o"),
tts=openai.TTS(),
chat_ctx=initial_ctx,
fnc_ctx=fnc_ctx,
)
I have tried many different methods and all, still unable to get it done.
Please help, the error i am getting is:
Traceback (most recent call last):
File "C:\Users\KrishnaKotabhattara\Desktop\RESEARCH\livekit-assistant\Help\dialogue-voice\Audio-Scripts\assistant.py", line 158, in entrypoint
stt = agents.stt.StreamAdapter(openai.STT(), silero.VAD.load(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: StreamAdapter.__init__() takes 1 positional argument but 3 were given
2024-08-13 21:37:45,715 - ERROR - An error occurred: StreamAdapter.__init__() takes 1 positional argument but 3 were given
Traceback (most recent call last):
File "C:\Users\KrishnaKotabhattara\Desktop\RESEARCH\livekit-assistant\Help\dialogue-voice\Audio-Scripts\assistant.py", line 158, in entrypoint
stt = agents.stt.StreamAdapter(openai.STT(), silero.VAD.load(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: StreamAdapter.__init__() takes 1 positional argument but 3 were given
brainy-author-30449
08/14/2024, 5:25 AMif d.kind == webrtc.RTPCodecTypeAudio && muted {
d.writeBlankFrameRTP(RTPBlankFramesMuteSeconds, d.blankFramesGeneration.Load())
}
This works perfectly for audio, ensuring that when the audio stream resumes, there is no undesirable noise.
The Problem:
I have extended this functionality to the video stream by attempting to implement a similar approach. My expectation was that the video stream would resume normally after unmuting, just as the audio stream does. However, in practice, the video stream gets stuck and does not resume as intended.limited-arm-86913
08/15/2024, 10:38 PMimportant-megabyte-62876
08/16/2024, 8:37 PMdry-elephant-14928
08/17/2024, 7:52 AM