mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-19 04:17:44 +00:00
wip
This commit is contained in:
@@ -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}`)) :
|
||||
|
||||
Reference in New Issue
Block a user