feat(misc): voice-chat-widget-with-vercel-sdk + ITN "and" gotcha#55
Merged
Conversation
- New folder misc/voice-chat-widget-with-vercel-sdk/ — same UX as the raw-WS sibling shipped in #53, rebuilt on smallestai-vercel-provider + ai + @ai-sdk/openai-compatible. STT goes browser-direct via auth: 'query', LLM via streamText, streaming TTS still raw-WS (SDK doesn't wrap it yet). - Raw-WS README: appended ITN gotcha #8 — spoken 'and' inside dollar amounts ('five hundred and twenty five dollars') breaks the cardinal entity and produces '500 and 25 dollars', not '$525'. Workaround: drop the 'and'. - Both .gitignore files: exclude *.tsbuildinfo.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Follow-up to #53. Adds the Vercel-SDK twin folder + an ITN gotcha to the raw-WS README. Branched directly off main (no conflict with the squash-merged content).
misc/voice-chat-widget-with-vercel-sdk/(new, 14 files) — sibling tomisc/voice-chat-widget/, same UX but usessmallestai-vercel-provider+ai+@ai-sdk/openai-compatible. STT goes browser-direct viaauth: 'query'(no STT proxy); LLM uses VercelstreamText; streaming TTS still raw-WS since the SDK doesn't yet wrap/waves/v1/tts/live. README has the snake_case → camelCase param mapping table and theauth: 'query'→signedUrlproduction handoff note.misc/voice-chat-widget/README.md— appended ITN trap Add blog code sample #8: spoken "and" inside dollar amounts breaks the currency entity ("five hundred and twenty five dollars" → "500 and 25 dollars", not "$525"). Documents the WFST-boundary cause, two workaround phrasings, and a regex fallback.misc/voice-chat-widget*/.gitignore— both folders now ignore*.tsbuildinfo(TS incremental cache).Test plan
cd misc/voice-chat-widget-with-vercel-sdk && cp .env.example .env.local && npm install && npm run devboots cleanlyitn_normalize=true,finalize_on_words=false,eou_timeout_ms=1000auth: 'query'security warning in proxy logs — by design (production handoff cue)