Skip to content

fix(audio): reject incompatible transform streams - #11565

Open
localai-org-maint-bot wants to merge 1 commit into
masterfrom
cron/fix-11564-liquid-audio-stream-20260817
Open

fix(audio): reject incompatible transform streams#11565
localai-org-maint-bot wants to merge 1 commit into
masterfrom
cron/fix-11564-liquid-audio-stream-20260817

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Collaborator

Description

The audio-transform WebSocket accepted realtime_audio models and opened the frame-based AudioTransformStream RPC. liquid-audio implements the separate any-to-any AudioToAudioStream contract, so the request failed after the handshake with NotImplementedError.

This PR validates the model use case before loading the backend. It directs any-to-any callers to the OpenAI Realtime API and documents the two streaming contracts.

Closes #11564

Verification

  • go test -tags="debug auth" ./core/http/endpoints/localai -ginkgo.focus="audio transform stream model validation|audio transform sample_rate bounds"
  • go vet -tags="debug auth" ./core/http/endpoints/localai
  • git diff --check

The full unfiltered endpoint suite currently has 30 unrelated testcontainer setup failures at core/services/testutil/testdb.go:33; 228 specs pass.

Notes for Reviewers

The fix keeps the valid realtime_audio capability on liquid-audio. It does not attempt to adapt a turn-based any-to-any model to the frame-synchronous transform protocol.

Signed commits

  • Yes, I signed my commits.
  • Documentation updated (docs/content/) for user-facing changes, or not applicable

The transform WebSocket accepted any model and opened its frame-based RPC. Any-to-any models use a different stream contract, so liquid-audio failed with an unimplemented RPC after the handshake.

Reject incompatible model use cases before loading the backend. Direct realtime-audio callers to the OpenAI Realtime API.

Assisted-by: Codex:gpt-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

liquid-audio backend: AudioTransformStream RPC raises NotImplementedError (realtime streaming never works, on any hardware)

1 participant