tts: default language to auto, NULL lang selects auto, reject NULL text

This commit is contained in:
Pascal
2026-06-06 13:31:51 +02:00
parent f3cfa5cf47
commit ca0c779f49
7 changed files with 23 additions and 9 deletions
+8
View File
@@ -313,6 +313,14 @@ enum qt_status qt_synthesize(struct qt_context * q, const struct qt_tts_params *
return QT_STATUS_INVALID_PARAMS;
}
if (!params->text || !params->text[0]) {
qt_set_error("qt_synthesize: params->text is NULL or empty");
if (out) {
qt_audio_free(out);
}
return QT_STATUS_INVALID_PARAMS;
}
// Mode validation. Mirrors the upstream Python which raises
// ValueError when generate_voice_design is called on a non
// voice_design model and the same shape applies to