ElevenLabs

Research lab exploring new frontiers of Voice AI. Deploying tools for prime long-form synthetic speech, voice cloning and automatic dubbing.

Integrate the ElevenLabs API with the Python API

Setup the ElevenLabs API trigger to run a workflow which integrates with the Python API. Pipedream's integration platform allows you to integrate ElevenLabs and Python remarkably fast. Free for developers.

Run Python Code with Python API on New History Item Created from ElevenLabs API
ElevenLabs + Python
 
Try it
New History Item Created from the ElevenLabs API

Emit new event when a new history item is created.

 
Try it
Add Voice with the ElevenLabs API

Add a voice from one or more audio files. See the documentation

 
Try it
Run Python Code with the Python API

Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.

 
Try it
Download History Items with the ElevenLabs API

Download one or more history items to your workflow's tmp directory. 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 packed into a .zip file. See the documentation

 
Try it
Get Audio From History Item with the ElevenLabs API

Returns the audio of an history item and converts it to a file. See the documentation

 
Try it
Get Models with the ElevenLabs API

Gets a list of available models. See the documentation

 
Try it

Overview of ElevenLabs

The ElevenLabs API offers text-to-speech capabilities with realistic voice synthesis. Integrating this API on Pipedream allows you to build automated workflows that convert text content into spoken audio files. You can trigger these conversions from various events, process the text data, send it to the ElevenLabs API, and handle the audio output—all within a serverless environment.

Connect ElevenLabs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    elevenlabs: {
      type: "app",
      app: "elevenlabs",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.elevenlabs.io/v1/user`,
      headers: {
        "Accept": `application/json`,
        "xi-api-key": `${this.elevenlabs.$auth.api_key}`,
      },
    })
  },
})

Overview of Python

Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow.

This includes installing PyPI packages, within your code without having to manage a requirements.txt file or running pip.

Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:

Connect Python

1
2
3
4
5
def handler(pd: "pipedream"):
  # Reference data from previous steps
  print(pd.steps["trigger"]["context"]["id"])
  # Return data for use in future steps
  return {"foo": {"test":True}}