Skip to content

feat(workspaces): turn the workspace gateway's Audio API on - #1821

Merged
edenreich merged 1 commit into
mainfrom
feat/workspace-gateway-audio
Nov 12, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/workspace-gateway-audio

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

A session on a Kubernetes workspace calls the Gateway the CLI deploys for it, and that Gateway ran without its Audio API: /v1/audio/speech answered 404, so TextToSpeech, TextToMusic and TextToSFX failed from a workspace.

The Gateway now gets spec.audio.enabled when a workspace that calls it turns on one of those tools in its env (INFER_TEXT_TO_SPEECH_ENABLED, INFER_TEXT_TO_MUSIC_ENABLED, INFER_TEXT_TO_SFX_ENABLED). That is the rule the CLI already applies to the gateway it starts itself, so there is no new setting. Workspaces on one cluster share its Gateway, so the answer is derived once for all of them - otherwise each teleport would flip it and roll the pods.

With audio on, the Gateway also gets a 16Gi memory limit. Measured on a pod of the current gateway image with the operator's default 2 CPU limit: one sentence took 20 s, two at once took 60 s each and held 11.5 GiB. At a 4Gi limit the pod was OOM-killed on the first sentence.

Needs inference-gateway/operator with spec.audio (operator PR 343). Checked against a cluster on operator v0.36.0: the field is dropped with a warning and the rest of the spec applies, so an older operator keeps working with audio off. Not checked: a full teleport against an operator that has the field.

Changes

  • config/compute.go - ResolveCompute derives WorkspaceEntry.GatewayAudio from every workspace that shares the gateway.
  • config/daemon.go - the derived field, never written to daemon.yaml.
  • internal/agent/infrastructure/kubernetes/gateway.go - gatewaySpec writes audio and the memory limit.
  • Tests for the derivation and the spec.
  • docs/daemon.md - what turns it on, the operator it needs, and that the models are downloaded again after the Gateway had no pod.

@github-project-automation github-project-automation Bot moved this to Todo in 2026 Nov 12, 2026
@edenreich
edenreich marked this pull request as ready for review November 12, 2026 19:37
@edenreich
edenreich requested a review from a team as a code owner November 12, 2026 19:37
@edenreich
edenreich merged commit 06fad96 into main Nov 12, 2026
13 checks passed
@edenreich
edenreich deleted the feat/workspace-gateway-audio branch November 12, 2026 20:20
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.259.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 12, 2026
@edenreich edenreich moved this from Todo to Done in 2026 Nov 12, 2026
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

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant