Skip to content

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

Merged
mudler merged 1 commit into
masterfrom
cron/fix-11564-liquid-audio-stream-20260817
Aug 18, 2026
Merged

fix(audio): reject incompatible transform streams#11565
mudler merged 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
@mudler
mudler merged commit a7bce6a into master Aug 18, 2026
72 of 74 checks passed
@mudler
mudler deleted the cron/fix-11564-liquid-audio-stream-20260817 branch August 18, 2026 07:03
@localai-bot localai-bot added the bug Something isn't working label Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

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)

3 participants