This commit is contained in:
Hoan HL
2026-01-12 18:26:47 +07:00
parent ded60cb7aa
commit 6b2b35acfb
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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, {