diff --git a/lib/synth-audio.js b/lib/synth-audio.js index 5cf8a19..17bf6c0 100644 --- a/lib/synth-audio.js +++ b/lib/synth-audio.js @@ -467,7 +467,7 @@ const synthGoogle = async(logger, { let audioConfig; let extension; let sampleRate; - if (isGemini || isVoiceCloning) { + if (isVoiceCloning) { audioConfig = { audioEncoding: 'LINEAR16', sampleRateHertz: 24000 }; extension = 'wav'; sampleRate = 24000; diff --git a/test/synth.js b/test/synth.js index b62acc4..250ab09 100644 --- a/test/synth.js +++ b/test/synth.js @@ -195,7 +195,7 @@ test('Google Gemini TTS synth tests', async(t) => { instructions: 'Speak clearly and naturally.', }); t.ok(!result.servedFromCache, `successfully synthesized Google Gemini TTS audio to ${result.filePath}`); - t.ok(result.filePath.endsWith('.wav'), 'Gemini TTS audio file has correct extension'); + t.ok(result.filePath.endsWith('.mp3'), 'Gemini TTS audio file has correct extension'); // Test Gemini TTS with different voice and instructions result = await synthAudio(stats, {