Back to Blog
February 20, 2025
4 min read

Exploring Audio Generation Examples

Featured image for blog post: Exploring Audio Generation Examples

Exploring Audio Generation Examples

In this post, we'll explore three different examples of audio generation using the AutoContent API. Each example demonstrates a unique capability of our API, from basic podcast generation to voice cloning and custom script modifications.

1. Basic Podcast Generation

Our first example demonstrates the basic podcast generation capability. This is the foundation of our API, where we take your content and transform it into a natural-sounding podcast with a default voice profile.

Basic Podcast Generation
Default voice profile
00:00 / 00:00
This is our basic podcast generation example using the default voice profile.

2. Voice Cloning Example

In this example, we showcase our voice cloning technology. The same content is presented using different voice profiles, demonstrating how you can customize the voice of your podcast to match your brand or preferences. This feature is particularly useful for maintaining consistency across your content or creating a unique voice identity for your brand.

Voice Clone Example
Custom voice profiles
00:00 / 00:00
The same content presented with different voice profiles to demonstrate voice cloning capabilities.

3. Custom Script Modification

The final example demonstrates how you can modify the script on the fly using custom instructions. In this case, we've added a personalized welcome message for Miguel Pieras, the creator of AutoContent API, celebrating his birthday. This showcases the flexibility of our API in handling custom instructions and real-time content modifications.

Custom Script Example
Modified script with custom instructions
00:00 / 00:00
Custom instruction: 'Start the podcast by welcoming Miguel Pieras, the creator of AutoContent API. It's his birthday!'

How to Use These Features

To implement these features in your own projects, you can use our official API endpoints:

  • Basic Podcast Generation: Use the https://api.autocontentapi.com/content/create endpoint with your content resources and set outputType to "audio". You can also specify duration ("short", "default", or "long")
  • Topic-Based Generation: Create podcasts from just a topic using the topic parameter instead of providing specific resources
  • Voice Cloning: First use the https://api.autocontentapi.com/content/CloneVoice endpoint with an audio sample URL to create a custom voice, then use the voice ID in your podcast generation
  • Podcast Modification: Use the https://api.autocontentapi.com/content/ModifyPodcast endpoint with your existing podcast audio URL and custom instructions

Example API Calls

1. Create Content (Podcast Generation)

curl -X 'POST'
  'https://api.autocontentapi.com/Content/Create'
  -H 'accept: text/plain'
  -H 'Authorization: Bearer YOUR_TOKEN_HERE'
  -H 'Content-Type: application/json'
  -d '{
  "resources": [
        {
          "content": "https://autocontentapi.com",
          "type": "website"
        },
        {
          "content": "74% of businesses expect AI to increase productivity",
          "type": "text"
        }
  ],
  "text": "Explain why automating with AutoContent API is a game changer for any business",
  "outputType": "audio",
  "duration": "default"
}'

Alternative: Create Podcast from Topic Only

curl -X 'POST'
  'https://api.autocontentapi.com/Content/Create'
  -H 'accept: text/plain'
  -H 'Authorization: Bearer YOUR_TOKEN_HERE'
  -H 'Content-Type: application/json'
  -d '{
  "topic": "The future of artificial intelligence in business automation",
  "outputType": "audio",
  "duration": "long"
}'

2. Clone Voice

curl -X 'POST'
  'https://api.autocontentapi.com/Content/CloneVoice'
  -H 'accept: text/plain'
  -H 'Authorization: Bearer YOUR_TOKEN_HERE'
  -H 'Content-Type: application/json'
  -d '{
  "audioUrl": "https://LinkToYourRecording.mp3",
  "name": "Your Custom Voice Name"
}'

3. Modify Podcast

curl -X 'POST'
  'https://api.autocontentapi.com/Content/ModifyPodcast'
  -H 'accept: text/plain'
  -H 'Authorization: Bearer YOUR_TOKEN_HERE'
  -H 'Content-Type: application/json'
  -d '{
  "audioUrl": "https://LinkToYourPodcast.mp3",
  "voice1": 144,
  "voice2": 142,
  "instructions": "Start the podcast mentioning how awesome AutoContent API is",
  "backgroundMusicUrl": "https://cdn.pixabay.com/download/audio/2025/03/04/audio_7461f7fce8.mp3?filename=marketing-corporate-business-background-music-309080.mp3"
}'

For detailed implementation guidelines and complete API documentation, visit our API Documentation.

Conclusion

These examples demonstrate just a few of the possibilities available with the AutoContent API. Whether you need basic podcast generation, custom voices, or script modifications, our API provides the flexibility and features to meet your content creation needs.