fix: no-op for empty text to preserve existing behavior

This commit is contained in:
Hiago Silva 2026-03-15 12:58:44 -03:00 committed by GitHub
parent 07307a7973
commit dfc5d6a876
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -705,7 +705,7 @@ export async function edgeTTS(params: {
const { text, outputPath, config, timeoutMs } = params;
if (!text || text.trim().length === 0) {
throw new Error("Edge TTS requires non-empty text");
return;
}
const tts = new EdgeTTS({