Skip to content

feat(elevenlabs): add STT enableLogging option#1975

Open
rosetta-livekit-bot[bot] wants to merge 1 commit into
mainfrom
woofing-then-tidal
Open

feat(elevenlabs): add STT enableLogging option#1975
rosetta-livekit-bot[bot] wants to merge 1 commit into
mainfrom
woofing-then-tidal

Conversation

@rosetta-livekit-bot

@rosetta-livekit-bot rosetta-livekit-bot Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add enableLogging to ElevenLabs STT options with a default of true
  • pass enable_logging through batch recognition and realtime WebSocket requests
  • update the existing STT URL expectation for the new default query parameter

Testing

  • pnpm exec prettier --check "plugins/elevenlabs/src/stt.ts" "plugins/elevenlabs/src/stt.test.ts"
  • pnpm test plugins/elevenlabs/src/stt.test.ts
  • pnpm --filter @livekit/agents-plugin-elevenlabs build
  • pnpm build
  • cue-cli text-mode smoke: observed assistant greeting and function_tools_executed(.function_calls[0].name="getWeather")

Port of livekit/agents#6273.


Ported from livekit/agents#6273

Original PR description

Add enable_logging to 11labs STT, on par with already existing TTS implementation

@rosetta-livekit-bot rosetta-livekit-bot Bot requested a review from a team as a code owner July 6, 2026 22:50
@changeset-bot

changeset-bot Bot commented Jul 6, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 9534a62

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Open in Devin Review

Comment on lines +361 to +362
const response = await fetchFn(
`${this.#opts.baseURL}/speech-to-text?enable_logging=${String(this.#opts.enableLogging).toLowerCase()}`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 Batch URL now always includes enable_logging query parameter — behavioral change for existing callers

Previously, the batch recognition URL was simply ${baseURL}/speech-to-text with no query parameters. Now it always appends ?enable_logging=true (or false). While true is almost certainly the ElevenLabs API's default when the parameter is omitted, this is a subtle behavioral change for all existing users — every batch request will now carry this query parameter. If the API treats the explicit presence of enable_logging=true identically to omitting it, this is harmless. Worth confirming with ElevenLabs API docs that the default is indeed true when unspecified.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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.

0 participants