Repository navigation
feat(workspaces): speak through the workspace's gateway in the user's own voice - #558
Merged
Merged
Conversation
…-through-gateway # Conflicts: # examples/feature-video/README.md # examples/feature-video/agents/feature-editor.md
Contributor
|
🎉 This PR is included in version 0.70.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
5 tasks
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.
Summary
The workspace's Text to speech switch gave agents the
TextToSpeechtool 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:
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),forward_voice_samples: trueon 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 thefeature-editorexample 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_ENGINEandINFER_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, andforward_voice_sampleson a capability.backend/src/workspace_settings.rs-forward_voice_samplesread from and written todaemon.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/samplesby 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.