Skip to content

feat(elevenlabs): report STT audio duration via RECOGNITION_USAGE events#4953

Open
BkSouX wants to merge 1 commit intolivekit:mainfrom
BkSouX:main
Open

feat(elevenlabs): report STT audio duration via RECOGNITION_USAGE events#4953
BkSouX wants to merge 1 commit intolivekit:mainfrom
BkSouX:main

Conversation

@BkSouX
Copy link

@BkSouX BkSouX commented Feb 26, 2026

The ElevenLabs STT SpeechStream does not emit RECOGNITION_USAGE events, so UsageCollector.get_summary().stt_audio_duration is always 0.0.

This adds a PeriodicCollector to track pushed audio frame durations and periodically emit RECOGNITION_USAGE speech events, matching the existing pattern in the Deepgram and Gladia STT plugins.

@CLAassistant
Copy link

CLAassistant commented Feb 26, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

…n STT SpeechStream

Add PeriodicCollector to track pushed audio frame durations and
periodically emit RECOGNITION_USAGE speech events, matching the
pattern used by Deepgram and Gladia STT plugins.
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.

2 participants