Use Elevenlabs with OpenAI Python

Create natural AI voices instantly in any language - perfect for video creators, developers, and businesses.
๐Ÿ”— Connect and Use Elevenlabs
1. ๐Ÿ”‘ Connect your Elevenlabs accou
2. โœ… Select an action
3. ๐Ÿš€ Go live with the agent
What do you want to do?
Actions
speech-history
samples
text-to-speech
speech-to-speech
voice-generation
user
voices
projects
dubbing
workspace
models
audio-native
Pronunciation Dictionary

API actions for Elevenlabs for AI assitants/agents

Language
JS
PYTHON
Framework

Speech-history

Get Generated Items

Returns metadata about all your generated audio.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_GENERATED_ITEMS])

Get History Item By Id

Returns information about an history item by its ID.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_HISTORY_ITEM_BY_ID])

Delete History Item

Delete a history item by its ID
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_DELETE_HISTORY_ITEM])

Get Audio From History Item

Returns the audio of an history item.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_AUDIO_FROM_HISTORY_ITEM])

Download History Items

Download one or more history items. If one history item ID is provided, we will return a single audio file. If more than one history item IDs are provided, we will provide the history items pa
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_DOWNLOAD_HISTORY_ITEMS])

Samples

Delete Sample

Removes a sample by its ID.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_DELETE_SAMPLE])

Get Audio From Sample

Returns the audio corresponding to a sample attached to a voice.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_AUDIO_FROM_SAMPLE])

Text-to-speech

Text To Speech

Converts text into speech using a voice of your choice and returns audio.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_TEXT_TO_SPEECH])

Text To Speech Stream

Converts text into speech using a voice of your choice and returns audio as an audio stream.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_TEXT_TO_SPEECH_STREAM])

Speech-to-speech

Speech To Speech

Create speech by combining the content and emotion of the uploaded audio with a voice of your choice.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_SPEECH_TO_SPEECH])

Speech To Speech Streaming

Create speech by combining the content and emotion of the uploaded audio with a voice of your choice and returns an audio stream.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_SPEECH_TO_SPEECH_STREAMING])

Voice-generation

Voice Generation Parameters

Get possible parameters for the /v1/voice-generation/generate-voice endpoint.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_VOICE_GENERATION_PARAMETERS])

Generate A Random Voice

This method generates a random voice and provides a sample and an ID. Use the ID with /v1/voice-generation/create-voice to officially create the voice.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GENERATE_A_RANDOM_VOICE])

Create A Previously Generated Voice

Create a previously generated voice. This endpoint should be called after you fetched a generated_voice_id using /v1/voice-generation/generate-voice.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_CREATE_A_PREVIOUSLY_GENERATED_VOICE])

User

Get User Subscription Info

Gets extended information about the users subscription
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_USER_SUBSCRIPTION_INFO])

Get User Info

Gets information about the user
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_USER_INFO])

Get User Info V 1 User Get

Gets information about the user<<DEPRECATED use get_user_info>>
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_USER_INFO_V_1_USER_GET])

Voices

Get Voices

Gets a list of all available voices for a user.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_VOICES])

Get Voices V 1 Voices Get

Gets a list of all available voices for a user.<<DEPRECATED use get_voices>>
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_VOICES_V_1_VOICES_GET])

Get Default Voice Settings

Gets the default settings for voices. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_DEFAULT_VOICE_SETTINGS])

Get Voice Settings

Returns the settings for a specific voice. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_VOICE_SETTINGS])

Get Voice

Returns metadata about a specific voice.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_VOICE])

Delete Voice

Deletes a voice by its ID.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_DELETE_VOICE])

Edit Voice Settings

Edit your settings for a specific voice. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_EDIT_VOICE_SETTINGS])

Add Voice

Add a new voice to your collection of voices in VoiceLab.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_ADD_VOICE])

Edit Voice

Edit a voice created by you.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_EDIT_VOICE])

Add Sharing Voice

Add a sharing voice to your collection of voices in VoiceLab.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_ADD_SHARING_VOICE])

Projects

Get Projects

Returns a list of your projects together and its metadata.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_PROJECTS])

Add Project

Creates a new project, it can be either initialized as blank, from a document or from a URL.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_ADD_PROJECT])

Get Project By Id

Returns information about a specific project. This endpoint returns more detailed information about a project than GET api.elevenlabs.io/v1/projects.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_PROJECT_BY_ID])

Delete Project

Delete a project by its project_id.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_DELETE_PROJECT])

Convert Project

Starts conversion of a project and all of its chapters.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_CONVERT_PROJECT])

Get Project Snapshots

Gets the snapshots of a project.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_PROJECT_SNAPSHOTS])

Stream Project Audio

Stream the audio from a project snapshot.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_STREAM_PROJECT_AUDIO])

Streams Archive With Project Audio

Streams archive with project audio.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_STREAMS_ARCHIVE_WITH_PROJECT_AUDIO])

Get Chapters

Returns a list of your chapters for a project together and its metadata.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_CHAPTERS])

Get Chapter By Id

Returns information about a specific chapter.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_CHAPTER_BY_ID])

Delete Chapter

Delete a chapter by its chapter_id.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_DELETE_CHAPTER])

Convert Chapter

Starts conversion of a specific chapter.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_CONVERT_CHAPTER])

Get Chapter Snapshots

Gets information about all the snapshots of a chapter, each snapshot corresponds can be downloaded as audio. Whenever a chapter is converted a snapshot will be automatically created.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_CHAPTER_SNAPSHOTS])

Stream Chapter Audio

Stream the audio from a chapter snapshot. Use `GET /v1/projects/{project_id}/chapters/{chapter_id}/snapshots` to return the chapter snapshots of a chapter.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_STREAM_CHAPTER_AUDIO])

Update Pronunciation Dictionaries

Updates the set of pronunciation dictionaries acting on a project. This will automatically mark text within this project as requiring reconverting where the new dictionary would apply or the o
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_UPDATE_PRONUNCIATION_DICTIONARIES])

Dubbing

Dub A Video Or An Audio File

Dubs provided audio or video file into given language.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_DUB_A_VIDEO_OR_AN_AUDIO_FILE])

Dub A Video Or An Audiofile V 1 Dubbing Post

Dubs provided audio or video file into given language.<<DEPRECATED use dub_a_video_or_an_audio_file>>
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_DUB_A_VIDEO_OR_AN_AUDIOFILE_V_1_DUBBING_POST])

Get Dubbing Project Metadata

Returns metadata about a dubbing project, including whether it's still in progress or not
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_DUBBING_PROJECT_METADATA])

Delete Dubbing Project

Deletes a dubbing project.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_DELETE_DUBBING_PROJECT])

Get Dubbed File

Returns dubbed file as a streamed file. Videos will be returned in MP4 format and audio only dubs will be returned in MP3.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_DUBBED_FILE])

Get Transcript For Dub

Returns transcript for the dub as an SRT file.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_TRANSCRIPT_FOR_DUB])

Workspace

Get Sso Provider Admin

Fetch details of the SSO provider configuration for an admin within a specified workspace, including provider type, ID, and associated domains. Requires workspace ID as a query parameter. Retu
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_SSO_PROVIDER_ADMIN])

Models

Get Models

Gets a list of available models.
from composio_openai import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.ELEVENLABS_GET_MODELS])

Frequently asked questions

What is Composio.dev?

Composio.dev is a cutting-edge framework for building AI applications, designed to make the process of developing AI solutions super easy and fun! It's a collection of powerful tools and libraries that simplify the process of creating AI applications, allowing you to focus on the creative aspects of your project without getting bogged down by the technical details.

How does Composio.dev support Elevenlabs?

Composio.dev seamlessly integrates with Elevenlabs, making it a breeze to leverage its capabilities within the Composio.dev platform. You can use Elevenlabs to call functions on various platforms like Google, GitHub, and others, allowing you to incorporate different services into your AI applications with ease. It also supports user login via OAuth2 and can work with other popular frameworks such as LangChain and CrewAI, giving you the flexibility to build truly innovative AI solutions.

What models can I use with Elevenlabs and openAI_python?

When using Elevenlabs and openAI_python, you have access to a wide range of state-of-the-art language models, including GPT-4o (OpenAI), GPT-3.5 (OpenAI), GPT-4 (OpenAI), Claude (Anthropic), PaLM (Google), LLaMA and LLaMA 2 (Meta), Gemini, and many others. This flexibility allows you to choose the model that best suits your specific use case, whether you're building a chatbot, a content creation tool, or any other AI-powered application. You can experiment with different models and find the one that delivers the best performance for your project.

How can I integrate Elevenlabs with openAI_python?

Integrating Elevenlabs with openAI_python is super easy with Composio.dev! You can use the Composio.dev API to call functions from both Elevenlabs and openAI_python, allowing you to tap into their capabilities with just a few lines of code. The SDK is available in Python, JavaScript, and TypeScript, so you can work with the language you're most comfortable with and integrate these powerful tools into your projects seamlessly.

What is the pricing for Elevenlabs and openAI_python?

Both Elevenlabs and openAI_python are completely free to use, with a generous free tier that allows up to 1000 requests per month. This makes them accessible for developers and organizations of all sizes, whether you're a student working on a personal project or a startup building the next big thing. You can get started with these powerful tools without worrying about breaking the bank.

What kind of authentication is supported for Elevenlabs and openAI_python?

Elevenlabs and openAI_python support OAuth2 authentication, ensuring secure and authorized access to their functionalities. You can use the Composio.dev API to handle authentication and call functions from both Elevenlabs and openAI_python seamlessly. The SDK is available in Python, JavaScript, and TypeScript for your convenience, making it easy to integrate authentication into your projects and keep your users' data safe and secure.

Can I add Elevenlabs to my project?

Absolutely! You can easily incorporate Elevenlabs into your project by utilizing the Composio.dev API. This API allows you to call functions from both Elevenlabs and openAI_python, enabling you to leverage their capabilities within your application. The SDK is available in Python, JavaScript, and TypeScript to facilitate integration, so you can work with the language you're most comfortable with and add these powerful tools to your project with ease.

What is the accuracy of Elevenlabs and openAI_python?

Elevenlabs and openAI_python are designed to provide highly accurate and reliable results, ensuring that your AI applications perform at their best. The integration with Composio.dev ensures precise function calls, enabling you to build robust and powerful AI applications with confidence. The comprehensive framework and the ability to leverage state-of-the-art models ensure reliable and accurate outcomes for your AI development needs, whether you're working on a chatbot, a content creation tool, or any other AI-powered project.

What are some common use cases for Elevenlabs and openAI_python?

Elevenlabs and openAI_python can be used for a wide range of AI applications, making them versatile tools for developers and creators alike. Some common use cases include natural language processing, text generation, question answering, sentiment analysis, and more. They're particularly useful for building chatbots, virtual assistants, content creation tools, and other AI-powered applications that can help you automate tasks, engage with users, and create compelling content. Whether you're working on a personal project or building a product for your startup, these tools can help you bring your ideas to life.

How does Elevenlabs handle data privacy and security?

Data privacy and security are crucial considerations when working with AI systems, and Elevenlabs takes these issues seriously. It follows industry best practices and adheres to strict data protection regulations, ensuring that your data is kept safe and secure. Elevenlabs provides robust security measures, such as encryption and access controls, to ensure the confidentiality and integrity of your data. You can rest assured that your sensitive information is protected when using Elevenlabs for your AI development needs.

Can I customize Elevenlabs and openAI_python for my specific needs?

Absolutely! Elevenlabs and openAI_python are highly customizable and extensible, allowing you to tailor their functionality, models, and configurations to meet your specific requirements. Whether you're building a chatbot, a content creation tool, or any other AI-powered application, you can customize these tools to fit your unique needs. Additionally, Composio.dev provides a flexible platform for integrating and orchestrating various AI tools and services, enabling you to create custom AI solutions that are tailored to your project.

What kind of support and documentation is available for Elevenlabs and openAI_python?

Elevenlabs and openAI_python have comprehensive documentation and a supportive community, making it easy for you to get started and find answers to your questions. Composio.dev also provides extensive resources, including tutorials, guides, and a dedicated support team to assist you throughout your AI development journey. Whether you're a beginner or an experienced developer, you'll have access to the resources you need to make the most of these powerful tools.
+ Integrate seamlessly with your agentic frameworks
Composio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and Sizes
Building for AI across continents๐Ÿงช