Skip to content

Add phrase_list_weight option to Azure STT plugin - #6605

Open
MatiKarski-SintiaLab wants to merge 1 commit into
livekit:mainfrom
MatiKarski-SintiaLab:azure-stt-phrase-list-weight
Open

Add phrase_list_weight option to Azure STT plugin#6605
MatiKarski-SintiaLab wants to merge 1 commit into
livekit:mainfrom
MatiKarski-SintiaLab:azure-stt-phrase-list-weight

Conversation

@MatiKarski-SintiaLab

Copy link
Copy Markdown

The Azure STT PhraseListGrammar class also exposes setWeight(weight: float) to bias recognition toward the phrase list (between 0.0 and 2.0, default 1.0), but the plugin never calls it, so there's no way to modify the default bias.

This adds a phrase_list_weight parameter to STT/STTOptions, analogous to the existing phrase_list parameter, that calls setWeight() when given.

PhraseListGrammar exposes setWeight() to bias recognition toward the
phrase list (range 0.0-2.0, default 1.0), but the plugin never called
it, so there was no way to raise the bias above Azure's default.
@MatiKarski-SintiaLab
MatiKarski-SintiaLab requested a review from a team as a code owner July 29, 2026 16:34
@CLAassistant

CLAassistant commented Jul 29, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@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

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