feat(bland): BTTS ws integration - #2310
Open
rosetta-livekit-bot[bot] wants to merge 1 commit into
Open
Conversation
🦋 Changeset detectedLatest commit: ed8a709 The changes in this PR will be included in the next version bump. This PR includes changesets to release 40 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Ports livekit/agents#6752 to the Bland TypeScript plugin.
Summary
/v2/tts/wsendpointstreaming: falsemodewsruntime dependency and a minor Bland changeset for the new public streaming APIValidation
pnpm test plugins/bland/src/tts.test.ts --silent(51 passed, 1 credential-dependent integration skipped)pnpm build --filter=@livekit/agents-plugin-bland...pnpm lint --filter=@livekit/agents-plugin-blandpnpm api:check --filter=@livekit/agents-plugin-blandpnpm exec prettier --check "plugins/bland/**/*.{ts,tsx,md,json}" ".changeset/fresh-rivers-stream.md"cue-clivoice-mode validation with the built Bland plugin and a local protocol-compatible server: reachedAS_SPEAKING, reported Bland TTS usage, committed the assistant message, and returned toAS_LISTENINGwithout an error eventSource diff coverage
Source diff coverage
livekit-plugins/livekit-plugins-bland/README.md: adapted toplugins/bland/README.md, preserving realtime WebSocket/input-streaming guidance, HTTP-onlysynthesize()behavior,streaming: falseguidance, and the Bland realtime TTS reference in the target README format.livekit-plugins/livekit-plugins-bland/livekit/plugins/bland/__init__.py: adapted throughplugins/bland/src/index.ts; its existing wildcard export exposes the new publicSynthesizeStream, so no redundant index edit was needed.livekit-plugins/livekit-plugins-bland/livekit/plugins/bland/tts.py: adapted toplugins/bland/src/tts.ts, including the complete WebSocket protocol, 50-second pooled sessions, 500 ms bounded cancellation drain, retry/error classification, option invalidation, prewarm/close lifecycle, disabled-streaming mode, River default, and preserved HTTP synthesis. Target-required support was added inplugins/bland/package.json,pnpm-lock.yaml,plugins/bland/etc/agents-plugin-bland.api.md, and.changeset/fresh-rivers-stream.md.tests/test_plugin_bland_tts.py: adapted toplugins/bland/src/tts.test.ts, porting the source-added and source-modified coverage with Vitest and local WebSocket servers while retaining existing target HTTP coverage.Ported from livekit/agents#6752
Original PR description
/v2/tts/wsendpoint