Skip to content

Audio Tools

Denoise, enhance, and process audio files with AI-powered tools.

Overview

The Audio Tools API provides a suite of AI-powered processing utilities for cleaning up and improving audio quality. Remove background noise, normalize volume levels, trim silence, and target specific loudness standards -- all through simple API calls.

Background noise removal
Audio enhancement
Volume normalization
Silence trimming
Loudness targeting
Multiple formats

Quickstart

Clean up a noisy audio file in just a few lines of code.

1from nur import NurClient
2
3client = NurClient()
4
5# Denoise an audio file
6result = client.audio.denoise(
7 file="recording.mp3",
8 intensity="medium"
9)
10
11print(f"Clean audio: {result.audio_url}")
12print(f"Noise reduced by {result.noise_reduction_db} dB")

Denoise Audio

POST/v1/audio/denoise

Remove background noise from an audio file. The AI model identifies and suppresses unwanted noise while preserving speech clarity and musical content. Supports three intensity levels to balance noise removal with audio fidelity.

ParameterTypeDescription
filefileAudio file upload. Provide either file or audio_url.
audio_urlstringPublic URL of the audio file to denoise.
intensitystringNoise removal strength: low, medium, or high. Default: medium.
1# Denoise from a file upload with high intensity
2result = client.audio.denoise(
3 file="noisy_interview.wav",
4 intensity="high"
5)
6
7print(f"Audio URL: {result.audio_url}")
8print(f"Duration: {result.duration}s")
9print(f"Format: {result.format}")
10print(f"Noise reduction: {result.noise_reduction_db} dB")
11
12# Denoise from a URL with low intensity
13result = client.audio.denoise(
14 audio_url="https://example.com/recording.mp3",
15 intensity="low"
16)

Response

1{
2 "audio_url": "https://cdn.nur.ai/audio/proc_x7k9m2v4/denoised.wav",
3 "duration": 185.4,
4 "format": "wav",
5 "original_loudness": -22.3,
6 "output_loudness": -21.8,
7 "noise_reduction_db": 18.5
8}

Enhance Audio

POST/v1/audio/enhance

Enhance an audio file with volume normalization, silence trimming, and loudness targeting. Combine multiple processing steps in a single request for efficient audio post-production.

ParameterTypeDescription
fileREQUIREDfileAudio file to enhance.
normalizebooleanApply volume normalization. Default: true.
remove_silencebooleanTrim leading, trailing, and excessive internal silence. Default: false.
target_loudnessnumberTarget integrated loudness in LUFS (e.g., -14 for streaming). Default: -16.
1# Enhance for podcast publishing (-14 LUFS for Spotify)
2result = client.audio.enhance(
3 file="raw_episode.mp3",
4 normalize=True,
5 remove_silence=True,
6 target_loudness=-14
7)
8
9print(f"Enhanced audio: {result.audio_url}")
10print(f"Duration: {result.duration}s")
11print(f"Original loudness: {result.original_loudness} LUFS")
12print(f"Output loudness: {result.output_loudness} LUFS")
13
14# Simple normalization only
15result = client.audio.enhance(
16 file="voice_memo.wav",
17 normalize=True,
18 remove_silence=False
19)

Response

1{
2 "audio_url": "https://cdn.nur.ai/audio/proc_p3q8r1t6/enhanced.mp3",
3 "duration": 1842.7,
4 "format": "mp3",
5 "original_loudness": -24.1,
6 "output_loudness": -14.0,
7 "noise_reduction_db": 0
8}

Response Objects

Both the Denoise and Enhance endpoints return the same response object structure.

AudioResult

FieldTypeDescription
audio_urlstringURL to the processed audio file.
durationnumberDuration of the output audio in seconds.
formatstringOutput audio format (mp3, wav, flac, ogg).
original_loudnessnumberIntegrated loudness of the input in LUFS.
output_loudnessnumberIntegrated loudness of the output in LUFS.
noise_reduction_dbnumberAmount of noise removed in decibels. 0 if denoise was not applied.

Best Practices

Denoise before enhancing

Run the denoise endpoint first, then pass the cleaned audio to enhance. This produces better normalization and loudness results since the algorithm is not influenced by background noise.

Match loudness to your platform

Use -14 LUFS for Spotify and YouTube, -16 LUFS for Apple Podcasts, and -24 LUFS for broadcast television. Setting the correct target_loudness avoids re-encoding by the platform.

Use low intensity for music, high for speech

Music content is more sensitive to aggressive denoising, which can remove subtle harmonics. Use low or medium intensity for music and reserve high for speech recordings.

Chain tools in a pipeline

Combine denoise and enhance in sequence to build a complete audio post-production pipeline. Automate this with webhooks or SDK callbacks for batch processing of large libraries.