Repository navigation
feat(gateway): add spec.audio to turn the Audio API on - #343
Merged
Merged
Conversation
edenreich
marked this pull request as ready for review
November 12, 2026 19:21
Contributor
|
🎉 This PR is included in version 0.37.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
A
Gatewaycould not serve the gateway's Audio API (/v1/audio/speech,/sfx,/music): it is off unlessAUDIO_ENABLED=true, and the resource had no field for it. Agents on a workspace's computer therefore had no text to speech through their gateway.spec.audio.enabledturns it on, andkubectl get gatewaysshows it:spec.audiodefaults to{enabled: false}, so the column always has a value.Checked on a cluster with a copy of the generated CRD under another group: both rows above, and the default applied to a
spec: {}. The env var is covered by the controller test. Not checked: a full operator build running against a cluster.The built-in
local/qwen3-ttsengine runs inside the gateway pod. Measured in a pod of the current gateway image: about 1.4 GB downloaded at start, about 6 GiB of memory for one sentence, and the pod is OOM-killed at a 4Gi limit. The README says to raisespec.resources.limits.memory. This PR does not change the 1Gi default.This branch also carries the provider list sync from the PR before it, because the tests fail on
mainwithout it.Changes
api/v1alpha1/gateway_types.go-AudioSpec,GatewaySpec.Audioand theAudioprint column.internal/controller/gateway_controller.go-AUDIO_ENABLED=truewhenspec.audio.enabled.internal/controller/gateway_controller_test.go- unset, disabled and enabled.manifests/.README.md- the Audio extension and its column.