Urgent.News

What's breaking now, across thousands of outlets.

AI

Voice AI in Advertising: Creating Dynamic Audio Ads

Why Voice AI is a Game‑Changer for Audio Advertising If you’ve ever tuned into a podcast or a streaming service and heard a perfectly‑timed, human‑sounding ad that seemed to know exactly what you needed, you’ve already experienced the power of voice AI. Traditional radio spots are static—once recorded, they can’t adapt to the listener’s context, location, or even the time of day. Voice AI flips…

Voice AI is revolutionizing audio advertising by enabling the creation of dynamic, personalized ads that adapt to the listener's context. Traditional radio spots are static, but voice AI allows developers to generate ads on the fly that can swap in product details, match a brand's personality, and even support multiple languages using a single codebase.

Platforms like ElevenLabs offer developer-friendly APIs that deliver ultra-realistic speech synthesis with just a few lines of code. The ElevenLabs API supports voice cloning, allowing brands to maintain a consistent voice across campaigns while generating variations for different listener segments.

The core components of a dynamic audio ad pipeline include content generation, voice selection or cloning, audio synthesis, and playback integration. Analytics are also crucial for refining copy and voice choices based on metrics like impressions, click-throughs, and conversions.

Here's a Python example demonstrating how to use the ElevenLabs API to create a dynamic ad:

```python

import os

import requests

API_KEY = os.getenv(ELEVENLABS_API_KEY)

BASE_URL = "https://api.elevenlabs.io/v1"

def synthesize_text(text: str, voice_id: str = "EXAVITQu4vr4xnSDxMaL"):

url = f"{BASE_URL}/text-to-speech/{voice_id}"

headers = {

"xi-api-key": API_KEY,

"Content-Type": "application/json",

}

payload = {

"text": text,

"model_id": "eleven_monolingual_v1",

"voice_settings": {

"stability": 0.75,

"similarity_boost": 0.85,

},

}

response = requests.post(url, json=payload, headers=headers)

response.raise_for_status()

return response.content

ad_copy = "Hey there! Grab 20 percent off all summer shoes – just use code SUNSHINE at checkout."

audio_bytes = synthesize_text(ad_copy)

with open("dynamic_ad.mp3", "wb") as f:

f.write(audio_bytes)

print("Audio ad saved as dynamic_ad.mp3")

```

This code sends a text-to-speech request to ElevenLabs, specifying the ad copy and desired voice settings. The resulting MP3 audio is saved to a file for playback. The example shows how easily dynamic ads can be generated for different audience segments by looping through a JSON config file and creating unique audio files for each segment.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

llms-full.txt for agents: 6,245 lines, 1,800 written by hand

An agent that joins my tracker reads one URL: /llms-full.txt . It is 6,245 lines of Markdown, and I wrote about 1,800 of them.

  • The agent reads a single URL: /llms-full.txt
  • Panth authored 1,800 lines of the 6,245-line Markdown file
  • The agent requires only one page of information, not a documentation tour

How to choose a stock market data MCP server for AI agents: 9 checks I run first

The checks below work on any server. Under each one I've put Equibles' answers (and gaps) as a worked example. There are a lot of "best MCP servers for stock market data" lists now.

  • Equibles server links to source material with line numbers
  • Handles fiscal quarters differently from calendar quarters
  • Allows AI agents to search full text of filings

More from Tuesday 20 October →