Skip to content

[Platform] Add ElevenLabs as platform #292

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Guikingone
Copy link
Contributor

@Guikingone Guikingone commented Aug 8, 2025

Q A
Bug fix? Kind of
New feature? yes
Docs? yes
Issues #263
License MIT

Hi 👋🏻

As discussed in #263, ElevenLabs can be more than just a tool for agents, the idea of a platform was discussed so here it is.

PS: Both TTS and STT examples are working "as expected" (the TTS one generate a file as we can't run the file).

@carsonbot carsonbot added Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review labels Aug 8, 2025
@Guikingone Guikingone force-pushed the platform/eleven_labs branch from 4d17e07 to 2abb1b5 Compare August 8, 2025 14:43
@@ -45,6 +45,7 @@ public function normalize(mixed $data, ?string $format = null, array $context =
'type' => 'input_audio',
'input_audio' => [
'data' => $data->asBase64(),
'path' => $data->asPath(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does that have impact to other audio examples, e.g. examples/openai/audio-input.php? maybe we need to isolate that in an elevenlabs specific contract

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, open to debate on this one, the $path attribut is always defined (I agree on the fact that it can be null) thanks to File so IMHO, using the method is not a problem (when correctly typed), returning an array with a value "null" in certain cases is not a problem as long as the API is typed to do so.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It breaks the example openai/audio-input.php - please revert and bring in another Normalizer specifically for ElevenLabs

Copy link
Member

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was a bit in a hurry but left some comments - definitely looking forward to play around with it - thanks for working on it! 🙏

@Guikingone Guikingone force-pushed the platform/eleven_labs branch 2 times, most recently from af32ada to c1b3ae4 Compare August 12, 2025 07:59
@Guikingone Guikingone force-pushed the platform/eleven_labs branch from c1b3ae4 to ee43d7b Compare August 12, 2025 08:00
@Guikingone Guikingone requested a review from chr-hertel August 12, 2025 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants