Skip to content

Commit 1767cde

Browse files
committed
[ACTION] Get Voices with Descriptions from ElevenLabs
1 parent 65e79d1 commit 1767cde

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import elevenlabs from "../../elevenlabs.app.mjs";
2+
3+
export default {
4+
key: "get-voices-with-descriptions",
5+
name: "Get Voices with Descriptions",
6+
version: "0.0.1",
7+
description: "Fetches all available voices from ElevenLabs, including metadata like name, gender, accent, and category. [API Docs](https://docs.elevenlabs.io/api-reference/voices/list)",
8+
type: "action",
9+
props: {
10+
elevenlabs,
11+
},
12+
async run({ $ }) {
13+
const { voices } = await this.elevenlabs.listVoices({ $ });
14+
15+
$.export("$summary", `Fetched ${voices.length} voices`);
16+
17+
return voices;
18+
},
19+
};

0 commit comments

Comments
 (0)