Skip to content

added rust latency measurement example#934

Open
xianshijing-lk wants to merge 1 commit intomainfrom
sxian/rust_latency_measurement_example
Open

added rust latency measurement example#934
xianshijing-lk wants to merge 1 commit intomainfrom
sxian/rust_latency_measurement_example

Conversation

@xianshijing-lk
Copy link
Contributor

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant