mirror of
https://github.com/jambonz/speech-utils.git
synced 2026-01-25 02:08:26 +00:00
wip
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user