diff --git a/lib/utils/speech-utils.js b/lib/utils/speech-utils.js index 3557cae..23031ab 100644 --- a/lib/utils/speech-utils.js +++ b/lib/utils/speech-utils.js @@ -689,7 +689,12 @@ const fetchLayHTVoices = async(credential) => { 'Accept': 'application/json' }); - return await Promise.all([ get('/api/v2/cloned-voices'), get('/api/v2/voices')]); + const voices = await get('/api/v2/voices'); + let clone_voices = []; + try { + clone_voices = await get('/api/v2/cloned-voices'); + } catch {} + return [clone_voices, voices]; } };