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:
@@ -692,6 +692,8 @@ const fetchLayHTVoices = async(credential) => {
|
|||||||
const voices = await get('/api/v2/voices');
|
const voices = await get('/api/v2/voices');
|
||||||
let clone_voices = [];
|
let clone_voices = [];
|
||||||
try {
|
try {
|
||||||
|
// try if the account has permission to cloned voice
|
||||||
|
//otherwise ignore this.
|
||||||
clone_voices = await get('/api/v2/cloned-voices');
|
clone_voices = await get('/api/v2/cloned-voices');
|
||||||
} catch {}
|
} catch {}
|
||||||
return [clone_voices, voices];
|
return [clone_voices, voices];
|
||||||
|
|||||||
Reference in New Issue
Block a user