Skip to content

Fix speech-to-text test: generate valid WAV file - #1

Open
bergetbjork wants to merge 2 commits into
mainfrom
fix/speech-to-text-audio-blob
Open

Fix speech-to-text test: generate valid WAV file#1
bergetbjork wants to merge 2 commits into
mainfrom
fix/speech-to-text-audio-blob

Conversation

@bergetbjork

Copy link
Copy Markdown
Contributor

Summary

  • The speech-to-text test was sending [object AudioBuffer] (20 bytes) instead of actual audio data
  • AudioBuffer objects cannot be directly passed to new Blob() - they serialize as a toString() string
  • Replaced with proper WAV file generation (RIFF headers + 1s silence at 16kHz) for a valid smoke test

@irony irony left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Borde vi inte bara skicka upp en testfil?

@bergetbjork
bergetbjork requested a review from irony March 16, 2026 12:38
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.

2 participants