Skip to content

feat(javascript): text-to-speech v1 — websocket-clause-chunking#617

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
recipe/javascript/text-to-speech/v1/websocket-clause-chunking
Open

feat(javascript): text-to-speech v1 — websocket-clause-chunking#617
github-actions[bot] wants to merge 1 commit into
mainfrom
recipe/javascript/text-to-speech/v1/websocket-clause-chunking

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Adds the websocket-clause-chunking recipe for text-to-speech v1 (javascript).

What this recipe demonstrates

Splitting text at clause boundaries (commas, semicolons, colons, sentence ends) and flushing each clause to Deepgram's WebSocket TTS independently. This reduces time-to-first-audio (TTFA) compared to waiting for a full sentence before dispatching to TTS.

Files

  • example.js — Runnable example (46 lines) that splits a paragraph into clauses and sends each with Speak+Flush
  • example.test.js — Subprocess test asserting exit 0 + non-empty output
  • README.md — Explains the pattern, parameters, and expected output

Closes #615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

language:javascript JavaScript samples type:samples Pull request adds or updates code samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Suggestion] Streaming TTS with clause-boundary chunked dispatch for minimum time-to-first-audio (TypeScript)

0 participants