Skip to content

Commit 3b88011

Browse files
committed
some adjusts
1 parent e77efdb commit 3b88011

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

components/hamsa/actions/synthesize-voice/synthesize-voice.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default {
6060
data,
6161
});
6262

63-
$.export("$summary", `Text to speech job successfully created with ID ${response.id}`);
63+
$.export("$summary", `Text to speech job successfully created with ID ${response.data.id}`);
6464
return response;
6565
},
6666
};

components/hamsa/hamsa.app.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ export default {
3636
if (page) {
3737
params.skip = page * LIMIT;
3838
}
39-
const { data: { voiceAgents } } = await this.listVoiceAgents({
39+
const { data } = await this.listVoices({
4040
params,
4141
});
4242

43-
return voiceAgents.map(({
44-
id: value, agentName: label,
43+
return data.map(({
44+
id: value, name, tags,
4545
}) => ({
46-
label,
46+
label: `${name} (${tags.join(" - ")})`,
4747
value,
4848
}));
4949
},
@@ -90,9 +90,9 @@ export default {
9090
...opts,
9191
});
9292
},
93-
listVoiceAgents(opts = {}) {
93+
listVoices(opts = {}) {
9494
return this._makeRequest({
95-
path: "/voice-agents",
95+
path: "/tts/voices",
9696
...opts,
9797
});
9898
},

0 commit comments

Comments
 (0)