diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-09 14:39:40 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-09 14:39:40 +0300 |
| commit | 4b4b3665230faafbd994f09894cb07c8f9d4b359 (patch) | |
| tree | 4d2737404feb4494cf9ae66ae7539e43a2240f12 /internal/audio/gemini_provider_test.go | |
| parent | 2e72f367b17c27c93672ec62c9806affbe3c4a55 (diff) | |
Release v0.28.1: convert Gemini TTS mono audio to stereov0.28.1
Duplicate each 16-bit PCM sample into both L/R channels so all
audio output uses both speakers, and retroactively converted the
88 existing card MP3s to stereo via ffmpeg.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/audio/gemini_provider_test.go')
| -rw-r--r-- | internal/audio/gemini_provider_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/audio/gemini_provider_test.go b/internal/audio/gemini_provider_test.go index 64b43b1..21b8a37 100644 --- a/internal/audio/gemini_provider_test.go +++ b/internal/audio/gemini_provider_test.go @@ -212,7 +212,8 @@ func TestWriteGeminiAudioFileWritesWAV(t *testing.T) { t.Fatalf("output file does not look like WAV data: %q", fileData[:4]) } - if got, want := len(fileData), 44+len(pcmData); got != want { + // Mono PCM is duplicated to stereo (both channels), so the data section doubles. + if got, want := len(fileData), 44+len(pcmData)*2; got != want { t.Fatalf("len(output) = %d, want %d", got, want) } } |
