Audio Normalization
curl --request POST \
--url https://apis.finevoice.ai/v1/enhancer/audio_normalization \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com/audio.mp3",
"method": "peak",
"peak_db": -1,
"rms_db": -20,
"output_format": "wav"
}
'import requests
url = "https://apis.finevoice.ai/v1/enhancer/audio_normalization"
payload = {
"url": "https://example.com/audio.mp3",
"method": "peak",
"peak_db": -1,
"rms_db": -20,
"output_format": "wav"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://example.com/audio.mp3',
method: 'peak',
peak_db: -1,
rms_db: -20,
output_format: 'wav'
})
};
fetch('https://apis.finevoice.ai/v1/enhancer/audio_normalization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apis.finevoice.ai/v1/enhancer/audio_normalization",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://example.com/audio.mp3',
'method' => 'peak',
'peak_db' => -1,
'rms_db' => -20,
'output_format' => 'wav'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apis.finevoice.ai/v1/enhancer/audio_normalization"
payload := strings.NewReader("{\n \"url\": \"https://example.com/audio.mp3\",\n \"method\": \"peak\",\n \"peak_db\": -1,\n \"rms_db\": -20,\n \"output_format\": \"wav\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apis.finevoice.ai/v1/enhancer/audio_normalization")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://example.com/audio.mp3\",\n \"method\": \"peak\",\n \"peak_db\": -1,\n \"rms_db\": -20,\n \"output_format\": \"wav\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apis.finevoice.ai/v1/enhancer/audio_normalization")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://example.com/audio.mp3\",\n \"method\": \"peak\",\n \"peak_db\": -1,\n \"rms_db\": -20,\n \"output_format\": \"wav\"\n}"
response = http.request(request)
puts response.read_body{}Audio Enhancement
Audio Normalization
Normalize audio loudness using peak, RMS, or combined normalization methods.
POST
/
v1
/
enhancer
/
audio_normalization
Audio Normalization
curl --request POST \
--url https://apis.finevoice.ai/v1/enhancer/audio_normalization \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com/audio.mp3",
"method": "peak",
"peak_db": -1,
"rms_db": -20,
"output_format": "wav"
}
'import requests
url = "https://apis.finevoice.ai/v1/enhancer/audio_normalization"
payload = {
"url": "https://example.com/audio.mp3",
"method": "peak",
"peak_db": -1,
"rms_db": -20,
"output_format": "wav"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://example.com/audio.mp3',
method: 'peak',
peak_db: -1,
rms_db: -20,
output_format: 'wav'
})
};
fetch('https://apis.finevoice.ai/v1/enhancer/audio_normalization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apis.finevoice.ai/v1/enhancer/audio_normalization",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://example.com/audio.mp3',
'method' => 'peak',
'peak_db' => -1,
'rms_db' => -20,
'output_format' => 'wav'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apis.finevoice.ai/v1/enhancer/audio_normalization"
payload := strings.NewReader("{\n \"url\": \"https://example.com/audio.mp3\",\n \"method\": \"peak\",\n \"peak_db\": -1,\n \"rms_db\": -20,\n \"output_format\": \"wav\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apis.finevoice.ai/v1/enhancer/audio_normalization")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://example.com/audio.mp3\",\n \"method\": \"peak\",\n \"peak_db\": -1,\n \"rms_db\": -20,\n \"output_format\": \"wav\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apis.finevoice.ai/v1/enhancer/audio_normalization")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://example.com/audio.mp3\",\n \"method\": \"peak\",\n \"peak_db\": -1,\n \"rms_db\": -20,\n \"output_format\": \"wav\"\n}"
response = http.request(request)
puts response.read_body{}Authorizations
Bearer token (API key). Format: Bearer {your_api_key}
Body
application/json
The audio normalization request payload.
Audio URL (http/https).
Example:
"https://example.com/audio.mp3"
Normalization method: peak (prevents clipping), rms (uniform volume), or both (RMS first, then peak).
Target peak level in dBFS.
Target RMS level in dBFS.
Output format: wav, mp3, flac, or m4a.
Response
Normalized audio file returned.
The response is of type object.
⌘I