Skip to content

feat: add OrcaRouter streaming text-to-speech example for MOSS-TTS-Realtime - #206

Open
clementguarino06510-glitch wants to merge 1 commit into
OpenMOSS:mainfrom
clementguarino06510-glitch:feat/orcarouter-streaming-example
Open

feat: add OrcaRouter streaming text-to-speech example for MOSS-TTS-Realtime#206
clementguarino06510-glitch wants to merge 1 commit into
OpenMOSS:mainfrom
clementguarino06510-glitch:feat/orcarouter-streaming-example

Conversation

@clementguarino06510-glitch

Copy link
Copy Markdown

What

Adds moss_tts_realtime/example_orcarouter_stream_to_tts.py, mirroring example_llm_stream_to_tts.py but sourcing the streaming text deltas from OrcaRouter — an OpenAI-compatible AI gateway for models and agents — instead of a simulated generator. OrcaRouter exposes a provider/model namespace (e.g. deepseek/deepseek-chat, orcarouter/auto for adaptive routing) behind a single base URL, so MOSS-TTS-Realtime users get a real LLM text stream into the same streaming TTS pipeline. It also runs gateway-level, zero-trust security for AI agents on the same endpoint — screening every prompt/response and governing every tool call on a default-deny basis, with no application code changes.

Documented in the MOSS-TTS-Realtime model card (docs/moss_tts_realtime_model_card.md) next to the existing single-turn streaming usage.

Validation

  • python3 -m py_compile passes on the new example.
  • Live-tested orcarouter_text_stream() against OrcaRouter's /v1/chat/completions (HTTP 200, streamed text deltas).

I'm an engineer on the OrcaRouter team.
Discord: discord.gg/YEubt8enRA · X: https://x.com/OrcaRouter

…altime

Add example_orcarouter_stream_to_tts.py, mirroring
example_llm_stream_to_tts.py but sourcing streaming text deltas from
OrcaRouter's OpenAI-compatible chat completions endpoint, and document
it in the MOSS-TTS-Realtime model card.
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