Commit fcf71cc
Fix audio: send raw PCM to LiteRT-LM instead of WAV
Content.AudioBytes expects raw PCM (16kHz mono 16-bit), not WAV with
44-byte RIFF header. The header bytes were being parsed as audio samples
causing "Failed to read pcm frames, error code: -2".
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 352c339 commit fcf71cc
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
| 358 | + | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
0 commit comments