Open
Conversation
change the room name to add on a random string - without this the agent won't automatically get dispatched if the room is still around from previous run don't enforce 48khz since Airpods microphone seem to only support 24khz (1 channel i guess?) - make the buffer size dynamic based on above
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Setup (Note, replace with your own endpoint and token from "lk token create" cmd)
export LIVEKIT_URL=wss://xianstaging-hixkk74p.staging.livekit.cloud # Note, change to your own endpoint
export LIVEKIT_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzYzMjcyMDQsImlkZW50aXR5Ijoic3hpYW4iLCJpc3MiOiJBUElHejJLUXU0UGJ6YkEiLCJuYW1lIjoic3hpYW4iLCJuYmYiOjE3NzAzMjcyMDQsInN1YiI6InN4aWFuIiwidmlkZW8iOnsicm9vbSI6ImNwcCIsInJvb21Kb2luIjp0cnVlfX0.oI0DCLyCMK-y6yxyQ3cFPArGJa03XHeeUrC_t2LUCgU
Rust the test with benchmark and logging:
RUST_LOG=info cargo run -p agent_audio_latency --
--url "$LIVEKIT_URL"
--token "$LIVEKIT_TOKEN"
--benchmark
--user-speech-threshold-dbfs=-50
--speaker-speech-threshold-dbfs=-55
--speaker-confirm-ms=120
Run the pure tests without speech latency detection (this will reduce the unnecessary test processing overhead):
RUST_LOG=info cargo run -p agent_audio_latency --
--url "$LIVEKIT_URL"
--token "$LIVEKIT_TOKEN"