add synthesize verbio

This commit is contained in:
Quan HL
2024-05-20 18:11:01 +07:00
parent 5d2d921f31
commit 2212be341b
3 changed files with 87 additions and 5 deletions
+1 -3
View File
@@ -28,9 +28,7 @@ test('Verbio - get Access key and voices', async(t) => {
client_secret: process.env.VERBIO_CLIENT_SECRET
};
let obj = await getVerbioAccessToken(credentials);
t.ok(obj.access_token && !obj.servedFromCache, 'successfully received access token not from cache');
obj = await getVerbioAccessToken(credentials);
t.ok(obj.access_token && obj.servedFromCache, 'successfully received access token from cache');
t.ok(obj.access_token , 'successfully received access token not from cache');
const voices = await getTtsVoices({vendor: 'verbio', credentials});
t.ok(voices && voices.length != 0, 'successfully received verbio voices');
} catch (err) {