feat(audio): support explicit PCM16 input without container probing - #3751
Merged
Merged
Conversation
Signed-off-by: LauraGPT <18321252+LauraGPT@users.noreply.github.com>
Signed-off-by: LauraGPT <18321252+LauraGPT@users.noreply.github.com>
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
Related to #3739; this does not claim to reproduce or diagnose the reported three-minute decoder stall.
input_format="pcm_s16le"for known mono signed little-endian PCM16 bytes. It normalizes samples directly, bypassing container detection/decoding, and rejects partial two-byte samples. The defaultautobyte-format behavior is unchanged.The format flag does not make other encodings valid PCM16. Do not use it for encoded WAV/MP3 bytes, floating-point PCM, other bit depths, big-endian audio or interleaved stereo. Streaming callers retain their cache/chunk/final-chunk handling.
Validation
git diff --checkpasses.Coverage includes probe/decoder bypass, signed sample boundaries, malformed input, default behavior, batch/multimodal routing, nonempty VAD segments, streaming options, per-call reset, export preparation, and bilingual executable examples. Export preparation uses a capture boundary, not an ONNX export acceptance test. No model weights, GPU, model-quality evaluation, original reporter-environment reproduction, package release or website deployment is claimed.
Integration Status
Merged as
bb303f85ea415e64d2188de6847ddcf2adc2593f; merge parents and tree were verified against the tested candidate2d6cb0ed216254b2f7d046fb78027a3933e3ddc2.