docs.api.box
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
Support
Suno API
Common APIFile Upload API
Suno API
Common APIFile Upload API
  1. WAV Conversion
  • API.box Documentation
  • Quick Start
  • Generate Music
    • Music Generation Callbacks
    • Music Extension Callbacks
    • Upload and Cover Audio Callbacks
    • Upload and Extend Audio Callbacks
    • Add Instrumental Callbacks
    • Add Vocals Callbacks
    • Music Cover Generation Callbacks
    • Replace Music Section Callbacks
    • Generate Music
      POST
    • Extend Music
      POST
    • Upload And Cover Audio
      POST
    • Upload And Extend Audio
      POST
    • Add Instrumental
      POST
    • Add Vocals
      POST
    • Get Music Generation Details
      GET
    • Recovery Audio
      POST
    • Get Recovery Audio Details
      GET
    • Get Timestamped Lyrics
      POST
    • Boost Music Style
      POST
    • Generate Music Cover
      POST
    • Replace Music Section
      POST
    • Get Music Cover Details
      GET
    • Generate Persona
      POST
    • Generate Mashup
      POST
  • Suno Voice
    • Suno Voice Validation Phrase Callbacks
    • Suno Voice Generation Callbacks
    • Suno Voice Regenerate Phrase Callbacks
    • Suno Voice Generate Verification Phrase
    • Suno Voice Get Verification Phrase
    • Suno Voice Create Custom Voice
    • Suno Voice Get Custom Voice Record
    • Suno Voice Regenerate Verification Phrase
    • Suno Voice Check Availability
  • Lyrics Generation
    • Lyrics Generation Callbacks
    • Generate Lyrics
    • Get Lyrics Generation Details
  • Generate Sounds
    • Generate Sounds
  • WAV Conversion
    • WAV Format Conversion Callbacks
    • Convert to WAV Format
      POST
    • Get WAV Conversion Details
      GET
  • Vocal Removal
    • Audio Separation Callbacks
    • MIDI Generation Callbacks
    • Vocal and Instrument Separation
    • Get Audio Separation Details
    • Generate MIDI from Audio
    • Get MIDI Generation Details
  • Music Video Generation
    • Music Video Generation Callbacks
    • Create Music Video
    • Get Music Video Details
  • Generate Speech
    • Generate Speech
  1. WAV Conversion

WAV Format Conversion Callbacks

When WAV format conversion tasks are completed, the system will send results to your provided callback URL via POST request
When you submit a task to the WAV format conversion API, you can use the callBackUrl parameter to set a callback URL. When the task is completed, the system will automatically push the results to your specified address.

Callback Mechanism Overview#

The callback mechanism eliminates the need to poll the API for task status. The system will proactively push task completion results to your server.

Callback Timing#

The system will send callback notifications in the following situations:
WAV format conversion completed
WAV conversion task failed
Error occurred during task processing
WAV format conversion has only one callback stage, providing the download URL upon completion

Callback Method#

HTTP Method: POST
Content Type: application/json
Timeout: 15 seconds

Callback Request Format#

When the task is completed, the system will send a POST request to your callBackUrl in the following format:
WAV Conversion Complete Callback
WAV Conversion Failed Callback
{
  "code": 200,
  "msg": "success",
  "data": {
    "audioWavUrl": "https://example.com/s/04e6****e727.wav",
    "task_id": "988e****c8d3"
  }
}

Status Code Description#

code · integer · required
Callback status code indicating task processing result:
Status CodeDescription
200Success - WAV conversion completed
400Bad Request - Invalid source audio or parameter error
401Unauthorized - Invalid API key
429Insufficient Credits - Account credit balance insufficient
500Server Error - Please retry later
msg · string · required
Status message providing detailed status description
data.task_id · string · required
Task ID, consistent with the taskId returned when you submitted the task
data.audioWavUrl · string
WAV format audio file download URL (returned on success)

Callback Reception Examples#

Here are example codes for receiving callbacks in various popular programming languages:
Node.js
Python
PHP

Best Practices#

WAV Conversion Callback Configuration#

1.
File Management: Implement proper file naming conventions for downloaded WAV files
2.
Storage Planning: Ensure adequate storage space for high-quality WAV files
3.
Quality Verification: Verify WAV file integrity after download
4.
Metadata Preservation: Maintain track information and metadata with WAV files
5.
Batch Processing: Consider batch conversion for multiple tracks
6.
Cleanup: Implement cleanup procedures for temporary files

WAV-Specific Considerations#

WAV files are typically larger than MP3 files due to lossless compression
Download times may be longer due to file size
Ensure sufficient bandwidth for WAV file downloads
WAV format provides maximum audio quality for professional use
Consider storage costs for large WAV file collections

Troubleshooting#

Common issues specific to WAV conversion callbacks:
Download Issues
Quality and Format
File Management

Alternative Solutions#

If you cannot use the callback mechanism, you can also use polling:
Poll WAV Results
Use the Get WAV Conversion Details interface to regularly query conversion task status. Recommend querying every 20 seconds.
Previous
Generate Sounds
Next
Convert to WAV Format
Built with