This commit is contained in:
Quan HL
2024-12-12 14:42:39 +07:00
parent d26b2383d8
commit 438b876685

View File

@@ -207,7 +207,7 @@ class TaskSay extends TtsTask {
if (this._playResolve) {
//if tts vendor return bad response code or there is variable_tts_error,
// say task should reject the promise.
(response_code < 200 && response_code > 299 || evt.variable_tts_error) ?
((response_code < 200 && response_code > 299) || evt.variable_tts_error) ?
this._playReject(
new Error(evt.variable_tts_error ||
`Synthesizing error, received ${evt.variable_tts_whisper_response_code} from vendor ${vendor}`)) :