Skip to content

Voice Changer

Apply real-time voice effects and transformations to any audio.

Overview

The Voice Changer API lets you transform audio with a library of built-in effects and fine-grained controls for pitch, intensity, and format. Process recordings or pipe in live audio for real-time transformations.

7 effect presets (deep, high, robotic, whisper, echo, chipmunk, radio)
Intensity control
Pitch shifting
Real-time processing
Multiple formats
Custom effects

Quickstart

Apply an effect to an audio file in just a few lines of code.

1from nur import NurClient
2
3client = NurClient()
4
5# Apply a robotic effect to an audio file
6result = client.voice_changer.transform(
7 file="recording.mp3",
8 effect="robotic",
9 intensity=0.8,
10 pitch_shift=0.0,
11 output_format="mp3"
12)
13
14print(f"Transformed audio: {result.audio_url}")
15print(f"Duration: {result.duration}s")
16print(f"Effect: {result.effect_applied}")

Transform Audio

POST/v1/voice-changer/transform

Apply a voice effect to an uploaded audio file. You can control the effect intensity, apply pitch shifting, and choose the output format. Supports WAV, MP3, FLAC, and OGG inputs.

ParameterTypeDescription
fileREQUIREDfileAudio file to transform (WAV, MP3, FLAC, OGG)
effectREQUIREDstringEffect preset: deep, high, robotic, whisper, echo, chipmunk, or radio
intensitynumberEffect strength from 0.0 to 1.0. Defaults to 0.5
pitch_shiftnumberPitch adjustment in semitones (-12 to 12). Defaults to 0
output_formatstringOutput format: mp3, wav, flac, or ogg. Defaults to mp3
1curl -X POST https://api.nur.ai/v1/voice-changer/transform \
2 -H "Authorization: Bearer $NUR_API_KEY" \
3 -F "file=@recording.mp3" \
4 -F "effect=deep" \
5 -F "intensity=0.7" \
6 -F "pitch_shift=-3" \
7 -F "output_format=wav"

Response

1{
2 "audio_url": "https://cdn.nur.ai/voice-changer/vc_def789/output.wav",
3 "duration": 12.4,
4 "effect_applied": "deep",
5 "intensity": 0.7,
6 "format": "wav"
7}

List Effects

GET/v1/voice-changer/effects

Retrieve a list of all available voice effect presets. No parameters required. Each effect includes a description, default intensity, and a preview audio URL.

1curl -X GET https://api.nur.ai/v1/voice-changer/effects \
2 -H "Authorization: Bearer $NUR_API_KEY"

Response

1{
2 "data": [
3 {
4 "name": "deep",
5 "description": "Lowers pitch for a deeper, resonant voice",
6 "default_intensity": 0.5,
7 "preview_url": "https://cdn.nur.ai/effects/deep_preview.mp3"
8 },
9 {
10 "name": "high",
11 "description": "Raises pitch for a lighter, higher voice",
12 "default_intensity": 0.5,
13 "preview_url": "https://cdn.nur.ai/effects/high_preview.mp3"
14 },
15 {
16 "name": "robotic",
17 "description": "Adds a synthetic, robotic modulation",
18 "default_intensity": 0.6,
19 "preview_url": "https://cdn.nur.ai/effects/robotic_preview.mp3"
20 },
21 {
22 "name": "whisper",
23 "description": "Converts speech to a soft whisper",
24 "default_intensity": 0.7,
25 "preview_url": "https://cdn.nur.ai/effects/whisper_preview.mp3"
26 },
27 {
28 "name": "echo",
29 "description": "Adds spatial echo and reverb",
30 "default_intensity": 0.4,
31 "preview_url": "https://cdn.nur.ai/effects/echo_preview.mp3"
32 },
33 {
34 "name": "chipmunk",
35 "description": "High-speed pitch shift for a chipmunk effect",
36 "default_intensity": 0.8,
37 "preview_url": "https://cdn.nur.ai/effects/chipmunk_preview.mp3"
38 },
39 {
40 "name": "radio",
41 "description": "Simulates vintage AM/FM radio frequency response",
42 "default_intensity": 0.5,
43 "preview_url": "https://cdn.nur.ai/effects/radio_preview.mp3"
44 }
45 ]
46}

Effects Reference

Overview of all built-in effect presets and their characteristics.

EffectDescriptionDefault IntensityBest For
deepLowers pitch for a resonant voice0.5Narration, trailers
highRaises pitch for a lighter voice0.5Character voices
roboticSynthetic modulation0.6Sci-fi, games
whisperSoft whisper conversion0.7ASMR, storytelling
echoSpatial echo and reverb0.4Ambience, music
chipmunkHigh-speed pitch shift0.8Comedy, entertainment
radioVintage AM/FM simulation0.5Podcasts, retro style

Response Objects

Reference for the objects returned by Voice Changer endpoints.

Transform Result Object

FieldTypeDescription
audio_urlstringURL to download the transformed audio file
durationnumberDuration of the output audio in seconds
effect_appliedstringName of the effect that was applied
intensitynumberIntensity level that was used (0.0 to 1.0)
formatstringOutput format of the audio file

Best Practices

Start with moderate intensity

Begin with the default intensity value for each effect and adjust incrementally. High intensity values can introduce artifacts, especially with the robotic and echo presets. Values between 0.4 and 0.7 usually produce the most natural results.

Combine pitch shift with effects thoughtfully

Pitch shifting works independently from effect presets. A subtle pitch shift of 1-2 semitones combined with an effect can produce unique results, but large shifts paired with heavy effects may degrade audio quality.

Choose the right output format

Use WAV for maximum quality when processing audio further downstream. Use MP3 for smaller file sizes in web delivery. FLAC offers lossless compression if you need both quality and reduced file size.

Use clean source audio

Effects are most effective when applied to clean recordings with minimal background noise. Consider running audio through the Nur denoiser endpoint first if the source contains unwanted ambient sound.