The HeyGen Hub
+00:00 GMT
Voices
October 22, 2024 · Last updated on October 31, 2024

How to customize your video narration with HeyGen’s API for Voices

How to customize your video narration with HeyGen’s API for Voices
# Voices
# API

-

How to customize your video narration with HeyGen’s API for Voices

Looking to take full control of your video narration? With HeyGen’s API, you can preview voice audio and explore our library of voices to be used in HeyGen videos.

some-file-aa1b66c5-255a-4952-a70c-f3b3c41df9e5


What’s covered in this guide

  1. Use HeyGen's API for voices
  2. Access HeyGen’s API documentation and API key
  3. Prepare your voiceover script
  4. Customize your voice settings via the API
  5. Generate your customized voice
  6. Import your voice into HeyGen
  7. Make final adjustments and export


How to use HeyGen's API for voices

HeyGen’s API for Voices gives developers and content creators access to an extensive library of AI-generated voices, allowing you to insert HeyGen voices into your videos. Let’s explore how you can use it to fully customize your narration.

some-file-3889dba2-480e-48ab-a334-46e896682589


Access HeyGen’s API documentation and sign up for an API key

First, access HeyGen’s API documentation through the developer portal.

Sign up for an API key to unlock the full potential of HeyGen’s customizable voices for your project.

some-file-100d5e79-7cdd-4d05-a0a9-ea65e31dad5c


Prepare your voiceover script

Prepare your voiceover script and craft an API call using your chosen programming language.

HeyGen's API allows you to input your text and define parameters like voice type, tone, and speed—all within a few lines of code.

some-file-a29dabe2-b89b-405d-ada0-56a1060e2770


Customize voice settings via the API

Customization is where HeyGen’s API shines.

Modify the voice’s tone, pitch, speaking speed, and emotional intensity to create a truly unique narration that matches the style and feel of your video.

some-file-37836398-b6d7-45de-acb0-0a53e427e8cf


Generate your customized voice

Once you’ve configured your settings, send the API request.

You can then integrate your selected voices via a 3rd party voice provider such as ElevenLabs, Open AI, and more. You can also create your custom voice by uploading an audio asset to a voice clone.

some-file-dacf3f41-b37d-4ddb-aae4-7e11fe22b91e


Import your voice into HeyGen

Now, import the customized voiceover into HeyGen’s video editor.

Simply drag and drop the audio file, then sync it with your video timeline for a professional, cohesive result.

some-file-0fe508e4-ef67-4c76-b914-a5c1b020e815


Final adjustments and exporting

Before wrapping up, preview your video to ensure everything looks and sounds perfect.

When you’re happy with the final product, export your video in high quality for sharing.

some-file-07cb29eb-d545-4267-9ff0-0da6206b4f54

And that’s it! You've now created a fully customized narration using HeyGen’s API, tailored to fit your video’s exact needs.


Recap

In this guide, you learned:

  1. How to use HeyGen's API for voices
  2. How to access HeyGen’s API documentation and API key
  3. How to prepare your voiceover script
  4. How to customize your voice settings via the API
  5. How to generate your customized voice
  6. How to import your voice into HeyGen
  7. How to make final adjustments and export

We’re looking forward to seeing what you’ll create with HeyGen! If you’re posting your videos on social media, make sure to tag any videos you create with @HeyGen_Official so we can celebrate them with you.

Table Of Contents
Dive in
Related
Guide
How to use HeyGen AI Voice for high-quality video narration
Oct 4th, 2024 Views 609