Skip to content

feat(workspaces): speak through the workspace's gateway in the user's own voice - #558

Merged
edenreich merged 2 commits into
mainfrom
feat/workspace-speech-through-gateway
Nov 12, 2026
Merged

edenreich merged 2 commits into
mainfrom
feat/workspace-speech-through-gateway

Conversation

@edenreich

@edenreich edenreich commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The workspace's Text to speech switch gave agents the TextToSpeech tool with a voice model the CLI ran on the computer itself. That engine is being removed from the CLI (cli PR 1818), and the user's voice samples never reached the computer.

The switch now:

  • sets INFER_TEXT_TO_SPEECH_MODEL=local/qwen3-tts, so speech goes through the workspace's gateway, which the CLI turns its Audio API on for (cli PR 1821, operator v0.37.0),
  • sets forward_voice_samples: true on the workspace, so each teleport carries the samples under Settings > Voice samples to the computer (cli PR 1820).

The local cluster installs operator v0.37.0, the first with spec.audio, and the feature-editor example picks its voice from the samples that came along.

Merge only after the CLI release with cli PRs 1818 to 1821, and after the desktop PR that moves the samples to ~/.infer/voice/samples. With an older CLI the tool still speaks, but through a gateway without its Audio API on a workspace, and no samples travel.

A workspace that has the switch on from before shows it off until it is switched on again or the local cluster is provisioned again, because the variables changed. Its two old lines, INFER_TEXT_TO_SPEECH_ENGINE and INFER_TEXT_TO_SPEECH_TIMEOUT, stay in Environment and are ignored.

Not checked in the app: the switch was not clicked, and no chat has spoken through a workspace's gateway from the app yet. Measured on its own on the local cluster: the gateway's speech engine cloned a sentence from a sample in 20 s on 2 CPUs and held 6 GiB doing it.

Changes

  • backend/src/workspace_capabilities.rs - the switch's variables, and forward_voice_samples on a capability.
  • backend/src/workspace_settings.rs - forward_voice_samples read from and written to daemon.yaml, on for the local workspace.
  • frontend/lib/workspace-form.ts, frontend/lib/tauri.ts - the switch sets and clears the flag, and is on only with it.
  • backend/src/local_cluster.rs - operator v0.37.0.
  • examples/feature-video - the voice is one of ~/.infer/voice/samples by bare name, the setup uses the switch, the README says where the voice model runs.
  • examples/filmcraft/README.md - the operator version the cluster runs.
  • Tests for the capability, the flag's round trip and the form.

…-through-gateway

# Conflicts:
#	examples/feature-video/README.md
#	examples/feature-video/agents/feature-editor.md
@edenreich
edenreich marked this pull request as ready for review November 12, 2026 19:34
@edenreich
edenreich merged commit cc6352d into main Nov 12, 2026
7 checks passed
@edenreich
edenreich deleted the feat/workspace-speech-through-gateway branch November 12, 2026 19:46
@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.70.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant