-
Notifications
You must be signed in to change notification settings - Fork 45.3k
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
feat(platform): WIP Elevenlabs Integration #9623
base: swiftyos/example-block
Are you sure you want to change the base?
Conversation
PR cannot be approved because it has major deficiencies:
|
Here's the code health analysis summary for commits Analysis Summary
|
@@ -40,4 +40,5 @@ class ProviderName(str, Enum): | |||
TODOIST = "todoist" | |||
UNREAL_SPEECH = "unreal_speech" | |||
ZEROBOUNCE = "zerobounce" | |||
ELEVENLABS = "elevenlabs" |
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.
Alphabetize
title="Use Credits for ElevenLabs", | ||
expires_at=None, | ||
) | ||
|
||
DEFAULT_CREDENTIALS = [ |
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.
Missed it here
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.
Also at line like 245 same file
@@ -0,0 +1,495 @@ | |||
""" | |||
ElevenLabs integration for text-to-speech capabilities. | |||
|
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.
nit: i’d just call the file audio
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.
I had intended this to be called `elevenlabs.py`
super().__init__( | ||
id="d923f6a8-beb2-4a57-90e2-b9c2f7e30f91", | ||
description="Convert text to speech using ElevenLabs' high-quality voices.", | ||
categories={BlockCategory.AI, BlockCategory.MULTIMEDIA}, |
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.
May want a new category for audio if you plan to do a bunch of these
default=0.85, | ||
advanced=True, | ||
) | ||
stream: bool = SchemaField( |
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.
Param doesn’t make sense in the design of our system afaik
from backend.util.request import Requests | ||
|
||
|
||
class ElevenLabsException(Exception): |
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.
Test to make sure this comes out of the execution correctly.
Make a fake block to raise it
if it doesn’t, search EXCEPTION_MAPPING and add it to the list there
@@ -149,6 +149,7 @@ export const PROVIDER_NAMES = { | |||
TODOIST: "todoist", | |||
ZEROBOUNCE: "zerobounce", | |||
EXAMPLE: "example", | |||
ELEVENLABS: "elevenlabs", |
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.
Alphabetize
@@ -53,6 +53,7 @@ const providerDisplayNames: Record<CredentialsProviderName, string> = { | |||
unreal_speech: "Unreal Speech", | |||
zerobounce: "ZeroBounce", | |||
example: "Example", | |||
elevenlabs: "ElevenLabs", |
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.
Alphabetize
@@ -91,6 +91,7 @@ export const providerIcons: Record< | |||
todoist: fallbackIcon, | |||
zerobounce: fallbackIcon, | |||
example: fallbackIcon, | |||
elevenlabs: fallbackIcon, |
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.
Aside: I do not envy whoever will be charged with tracking all of these down
This is a WIP example not to be merged