Skip to content

Add Yoob plugin (STT and TTS) - #2705

Open
ofirkris wants to merge 1 commit into
GetStream:mainfrom
Yoob-com:add-yoob-plugin
Open

ofirkris wants to merge 1 commit into
GetStream:mainfrom
Yoob-com:add-yoob-plugin

Conversation

@ofirkris

Copy link
Copy Markdown

Why

Adds Yoob as an STT and TTS provider, following the layout of the existing plugins (sarvam, speechify).

Changes

  • plugins/yoob: vision-agents-plugins-yoob.
    • yoob.STT: realtime WebSocket streaming (16 kHz mono) with replacement partials and finals. Models: yoob-asr-turbo-v1 (default) and yoob-asr-pro-v1. A final closes each utterance, so it works without an extra turn detector. A heartbeat keeps the socket open between turns, and it reopens on the next audio after the API's idle close.
    • yoob.TTS: streamed 48 kHz PCM from /v1/audio/speech. Inline tags such as [laughing] or [whisper] ... [/whisper] are performed, not read out. stop_audio() closes the request in flight.
  • Workspace entries in the root pyproject.toml, the yoob extra in sdks/python/pyproject.toml, and uv.lock (+32 lines, plugin only).
  • README and an example agent.

Both read YOOB_API_KEY.

Validation

  • pytest plugins/yoob/tests -m "not integration": 10 passed. They run against an in-process fake of the Yoob API, and cover:
    • 48 kHz input is sent as 16 kHz mono;
    • partials arrive before finals;
    • query params and the auth header;
    • stop on close;
    • the TTS request body and odd-byte chunk splits;
    • HTTP errors;
    • missing keys and bad options.
  • ruff check and ruff format --check (v0.14.5, as in pre-commit) are clean, and mypy plugins/yoob/vision_agents reports no issues.
  • uv lock --check passes with uv 0.13.6 (the CI version).
  • The integration test (TTS, then STT round trip) needs YOOB_API_KEY. We can provide a key for your CI.

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant