-
Notifications
You must be signed in to change notification settings - Fork 5.5k
[ACTION] Get Voices with Descriptions from ElevenLabs #16404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ACTION] Get Voices with Descriptions from ElevenLabs #16404
Conversation
|
@SokolovskyiK is attempting to deploy a commit to the Pipedreamers Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
|
""" WalkthroughA new action module named "Get Voices with Descriptions" has been added. This module integrates with the ElevenLabs API to retrieve a comprehensive list of available voices, including metadata such as name, gender, accent, and category. The action is defined with relevant metadata and uses the ElevenLabs app module for API communication. The core logic is encapsulated in an asynchronous function that fetches the voices and returns them along with a summary of the number retrieved. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ActionModule as Get Voices with Descriptions
participant ElevenLabsAPI
User->>ActionModule: Trigger action
ActionModule->>ElevenLabsAPI: listVoices(context)
ElevenLabsAPI-->>ActionModule: Return list of voices with metadata
ActionModule-->>User: Return summary and full voice list
Assessment against linked issues
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
components/elevenlabs/actions/get-voices-with-descriptions/get-voices-with-descriptions.mjsOops! Something went wrong! :( ESLint: 8.57.1 Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Thank you so much for submitting this! We've added it to our backlog to review, and our team has been notified. |
|
Thanks for submitting this PR! When we review PRs, we follow the Pipedream component guidelines. If you're not familiar, here's a quick checklist:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
components/elevenlabs/actions/get-voices-with-descriptions/get-voices-with-descriptions.mjs (1)
12-18: Consider validating the response data.It would be good to ensure the response structure is as expected before accessing properties.
async run({ $ }) { const { voices } = await this.elevenlabs.listVoices({ $ }); + + if (!Array.isArray(voices)) { + $.export("$summary", "Retrieved voices data in unexpected format"); + return []; + } $.export("$summary", `Fetched ${voices.length} voices`); return voices; },
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
components/elevenlabs/actions/get-voices-with-descriptions/get-voices-with-descriptions.mjs(1 hunks)
🔇 Additional comments (3)
components/elevenlabs/actions/get-voices-with-descriptions/get-voices-with-descriptions.mjs (3)
1-2: Good import structure.Clean import of the ElevenLabs app module that will be used for API interaction.
3-8: Action metadata looks good with helpful documentation link.The action is well-defined with appropriate key, name, version, and a detailed description that clearly explains what it does. The inclusion of the API documentation link is excellent for reference.
9-11: Props defined correctly.The ElevenLabs app module is properly included as a prop, making it available to the action.
components/elevenlabs/actions/get-voices-with-descriptions/get-voices-with-descriptions.mjs
Show resolved
Hide resolved
luancazarine
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @SokolovskyiK, thanks for your contribution! LGTM! Moving to QA.
|
@luancazarine Hi. Thank you =) |
fix action key
Fixes #16371
This action returns a list of all available voices with metadata.
I initially considered adding filters (e.g., by gender or accent), but realized most developers would prefer to handle that logic on their side — so I kept the action simple.
If needed, I can easily add filtering support later.
Summary by CodeRabbit
Summary by CodeRabbit