mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-07-04 19:21:53 +00:00
wip
This commit is contained in:
@@ -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];
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user