Accept a prompt query parameter on the live transcription route - #618
Open
scriptease wants to merge 1 commit into
Open
scriptease wants to merge 1 commit into
scriptease wants to merge 1 commit into
Conversation
The multipart transcription route takes a prompt field for recognition context, but the live PCM route had no way to pass hotwords. Read a URL-encoded prompt from the query and forward it as text_input alongside the language, matching the CLI's --text behaviour. Also URL-decode the language parameter so multi-word values survive. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The multipart transcription route takes a
promptfield for recognition context, but the live PCM route had no way to pass hotwords. This reads a URL-encodedpromptfrom the query string and forwards it astext_inputalongside the language, matching the CLI's--textbehaviour. Thelanguageparameter is now URL-decoded as well so multi-word values survive.Changes:
app/server/runtime.cpp: read and decodepromptandlanguagequery params on the live route, passpromptastext_inputapp/server/README.md: document thepromptquery parameterdocs/community_models/r2t2.md: note hotword support viapromptfor R2T2 live transcriptionTested against a local Confucius4-R2T2 server on Apple Silicon (Metal) with domain vocabulary passed via
?prompt=; terms were recognized that were previously misheard without it.🤖 Generated with Claude Code