POST
/
audio_speed_changer
import requests

url = "https://api.example.com/api/public/v1/audio_speed_changer"
headers = {
    "Authorization": "<API_KEY>",
     "Content-Type": "multipart/form-data"
}

payload = {
    "audio_path": "https://example.com/input_audio.mp3",
    "speed_change_factor": 1.5,
    "output_extension": "mp3"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
{
  "success": true,
  "conversion_id": "conv999",
  "credit_estimate": 45,
  "conversion_path": "https://example.com/output/converted_audio.mp3",
  "message": "Speed change task queued successfully"
}

Change the speed of your audio files without affecting quality.

Audio Speed Changer allows you to easily speed up or slow down any audio file โ€” perfect for creating remixes, practicing music, or adjusting spoken content.

  • โฉ Speed up or slow down audio effortlessly
  • ๐ŸŽถ Supports multiple formats like MP3, WAV, FLAC, and more
  • ๐Ÿš€ Fast processing with high-quality output

๐Ÿ“ก Endpoint

POST /audio_speed_changer

Use this endpoint to adjust the speed of an audio file.


โ–ถ๏ธ Sample Output

Listen to the speed-changed audio:


๐Ÿงช Try it Yourself

Visit the Audio Speed Changer Endpoint Explorer to upload audio files and adjust their playback speed.

โฉ Try different speed factors like 1.5x or 0.75x to test quality!


๐Ÿ› ๏ธ Request Parameters

ParameterTypeRequiredDescription
audio_pathStringYesThe S3 path of the input audio file
conversion_idStringYesUnique identifier for this conversion request
speed_change_factorNumberYesFactor to change speed (e.g., 2.0 = double speed, 0.5 = half speed) (min: 0.25, max: 4.0)
output_extensionStringYesDesired output format (mp3, wav, flac, ogg, aac, webm)
webhook_urlStringOptionalURL to receive callback notification when processing completes
user_idStringOptionalUser ID for tracking (from authentication token)

๐Ÿ“ฅ Sample Request

๐Ÿ Python

import requests

url = "https://api.musicgpt.com/api/public/v1/audio_speed_changer"
headers = {
    "Authorization": "<api_key>",
    "Content-Type": "application/json"
}
payload = {
    "audio_path": "https://musicgpt.s3.us-east-1.amazonaws.com/conversions/sample-audio.mp3",
    "speed_change_factor": 1.5,
    "output_extension": "mp3",
    "webhook_url": "https://abcd.requestcatcher.com/",
}

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

๐Ÿ“ค Sample Response

โœ… Success (200 OK)

{
  "success":true,
  "task_id":"b0ac9d46-64d7-4843-af48-a0b6effe3666",
  "conversion_id":"fe19945b-d466-4183-b559-5d264bddd492",
  "eta":66,
  "credit_estimate":25.0,
  "message":"Message published to queue",
  "status":"IN_QUEUE"
}

๐Ÿ“ž Webhook Response

When transcription completes, your webhook will receive:

{
  "success": true, 
  "conversion_type": "Audio Speed Changer", 
  "task_id": "b0ac9d46-64d7-4843-af48-a0b6effe3666", 
  "conversion_id": "fe19945b-d466-4183-b559-5d264bddd492", 
  "output_file": "https://lalals.s3.amazonaws.com/FileConversions/b0ac9d46-64d7-4843-af48-a0b6effe3666.wav", 
  "message": "Audio speed changer completed"
}

๐Ÿ“‚ The conversion_path field contains the direct link to download the speed-modified audio.


Authorizations

Authorization
string
header
required

Body

multipart/form-data

Response

200
application/json

Successfully initiated audio speed change

The response is of type object.