Skip to content

fix: accept in-memory audio arrays - #41

Open
Yu-0312 wants to merge 2 commits into
OpenMOSS:mainfrom
Yu-0312:fix/issue-35-audio-array
Open

fix: accept in-memory audio arrays#41
Yu-0312 wants to merge 2 commits into
OpenMOSS:mainfrom
Yu-0312:fix/issue-35-audio-array

Conversation

@Yu-0312

@Yu-0312 Yu-0312 commented Aug 23, 2026

Copy link
Copy Markdown

Summary

Fixes #35.

This change fixes NumPy array truth-value errors in audio message processing and allows build_transcription_messages to accept mono numpy.ndarray or torch.Tensor waveforms directly. It converts tensors to NumPy before calling the Transformers audio loader and adds regression tests and documentation.

Validation

  • python3 -m pytest -q
  • Result: 50 passed, 1 warning
  • git diff --check

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.

loading audio data from an array

1 participant