Skip to content

feat(gateway): add spec.audio to turn the Audio API on - #343

Merged
edenreich merged 2 commits into
mainfrom
feat/gateway-audio
Nov 12, 2026
Merged

edenreich merged 2 commits into
mainfrom
feat/gateway-audio

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

A Gateway could not serve the gateway's Audio API (/v1/audio/speech, /sfx, /music): it is off unless AUDIO_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.enabled turns it on, and kubectl get gateways shows it:

NAME            URL   PORT   PROVIDERS   MCPS   A2A   AUDIO   AGE
with-audio            8080                            true    0s
without-audio         8080                            false   0s

spec.audio defaults 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-tts engine 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 raise spec.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 main without it.

Changes

  • api/v1alpha1/gateway_types.go - AudioSpec, GatewaySpec.Audio and the Audio print column.
  • internal/controller/gateway_controller.go - AUDIO_ENABLED=true when spec.audio.enabled.
  • internal/controller/gateway_controller_test.go - unset, disabled and enabled.
  • Generated: the deepcopy, the CRD and manifests/.
  • README.md - the Audio extension and its column.

@edenreich
edenreich marked this pull request as ready for review November 12, 2026 19:21
@edenreich
edenreich requested a review from a team as a code owner November 12, 2026 19:21
@edenreich
edenreich merged commit 0be48e4 into main Nov 12, 2026
1 check passed
@edenreich
edenreich deleted the feat/gateway-audio branch November 12, 2026 19:22
inference-gateway-releaser Bot added a commit that referenced this pull request Nov 12, 2026
## [0.37.0](v0.36.0...v0.37.0) (2026-11-12)

### ✨ Features

* **gateway:** add spec.audio to turn the Audio API on ([#343](#343)) ([0be48e4](0be48e4))

### 🔧 Miscellaneous

* **providers:** sync the provider list with the schema ([#342](#342)) ([1232e29](1232e29))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.37.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