Skip to content

(feat) 11Labs STT : Add enable_logging#6273

Open
Ludobaka wants to merge 1 commit into
livekit:mainfrom
Ludobaka:11labs-stt-enable-logging
Open

(feat) 11Labs STT : Add enable_logging#6273
Ludobaka wants to merge 1 commit into
livekit:mainfrom
Ludobaka:11labs-stt-enable-logging

Conversation

@Ludobaka

Copy link
Copy Markdown
Contributor

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

@Ludobaka Ludobaka requested a review from a team as a code owner June 29, 2026 15:31

@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: No Issues Found

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

Open in Devin Review

@tinalenguyen tinalenguyen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks for the PR! i left a few comments

model_id: NotGivenOr[ElevenLabsSTTModels | str] = NOT_GIVEN,
keyterms: NotGivenOr[list[str]] = NOT_GIVEN,
no_verbatim: NotGivenOr[bool] = NOT_GIVEN,
enable_logging: bool = True,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
enable_logging: bool = True,
enable_logging: NotGivenOr[bool] = NOT_GIVEN,

could we widen the type here and only apply the parameter if it's given?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I would be happy to add those changes, just one question before this.

I used the enable_logging logic from the TTS plugin as a base for this PR, ensuring that I propose a consistent update according to current implementation.

Does that mean the TTS implementation should be updated also or not using NotGivenOr was the right way?

If update is required, this is probably out of scope for this PR but worth to mention

try:
async with self._ensure_session().post(
f"{self._opts.base_url}/speech-to-text",
f"{self._opts.base_url}/speech-to-text"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we can also have a helper method _synthesize_url to apply query parameters only if given

reference

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