Skip to content

feat(misc): voice-chat-widget-with-vercel-sdk + ITN "and" gotcha#55

Merged
abhishekmishragithub merged 1 commit into
mainfrom
misc/voice-chat-widget-sdk
May 29, 2026
Merged

feat(misc): voice-chat-widget-with-vercel-sdk + ITN "and" gotcha#55
abhishekmishragithub merged 1 commit into
mainfrom
misc/voice-chat-widget-sdk

Conversation

@abhishekmishragithub

Copy link
Copy Markdown
Collaborator

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 to misc/voice-chat-widget/, same UX but uses smallestai-vercel-provider + ai + @ai-sdk/openai-compatible. STT goes browser-direct via auth: 'query' (no STT proxy); LLM uses Vercel streamText; 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 the auth: 'query'signedUrl production 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 dev boots cleanly
  • Hold the mic, say "five hundred twenty five dollars" (no "and") → bubble shows $525
  • DevTools Network → WS request URL has itn_normalize=true, finalize_on_words=false, eou_timeout_ms=1000
  • SDK emits its own auth: 'query' security warning in proxy logs — by design (production handoff cue)

- 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.
@vercel

vercel Bot commented May 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
smallest-showcase Ready Ready Preview, Comment May 29, 2026 12:52pm

Request Review

@abhishekmishragithub abhishekmishragithub merged commit 322b4eb into main May 29, 2026
2 checks passed
@abhishekmishragithub abhishekmishragithub deleted the misc/voice-chat-widget-sdk branch May 29, 2026 12:52
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.

1 participant