fix: no-op for empty text to preserve existing behavior
This commit is contained in:
parent
07307a7973
commit
dfc5d6a876
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user