fix: avoid breaking behavior for empty text

This commit is contained in:
Hiago Silva 2026-03-15 08:52:05 -03:00 committed by GitHub
parent bb506c4db1
commit d251551998
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("TTS text cannot be empty");
throw new Error("Edge TTS requires non-empty text");
}
const tts = new EdgeTTS({