This commit is contained in:
Quan HL
2024-04-10 18:15:15 +07:00
parent 678fd086ea
commit 446ae5ae70
+6 -1
View File
@@ -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];
}
};