Skip to content

audiocpp_server: [sep] Vocal separation task failed. #747

Closed

Description

@juntaosun

The audiocpp_server separation task cannot process POST requests where the audio parameter is provided as Base64 data.

I am attempting to use the audiocpp_server.exe service to perform a "vocal separation" task, but I have encountered an issue regarding the audio parameter in the POST request. Typically, an API service handling audio input would support Base64-encoded audio; however, testing reveals that it only accepts local file paths (e.g., "C:/audio/test.wav"). If audiocpp_server.exe and the calling application are not on the same machine, the audio must be sent to the API server as Base64 data.

server.json:

    {
      "id": "mel_band_roformer",
      "family": "mel_band_roformer",
      "path": "models/Mel-Band-RoFormer-GGUF",
      "task": "sep",
      "mode": "offline"
    },

POST http://127.0.0.1:7788/v1/tasks/run

{
  "model": "mel-band-roformer",
  "request": {
    "options": {},
    "audio":  to Base64 wav 
  }
}

⚠️ In practice, the POST request fails to handle Base64 audio data (or multipart/form-data), resulting in a 500 error from audiocpp_server.exe with the message: "could not open WAV input: E:\\ ???"

Request response:

{
    "method": "POST",
    "url": "http://127.0.0.1:7788/v1/tasks/run",
    "status": 500,
    "statusText": "Internal Server Error",
    "responseHeaders": {
        "content-length": "16001127",
        "content-type": "application/json"
    },
    "responseBody": "{\"error\":{\"message\":\"could not open WAV input: E:\\\\TTS\\\\audio-v0.8.2-audio8-perf-hotfix-bin-windows-x64-cuda13.3\\\\UklGRtwdtwBXQVZFZm10IBAAAAABAAIARKwAABCxAgAEABAAZGF0YbgdtwADAAAA//8AAP//AAABAAAA/f8AAAIAAAAAAAEAAAAAAAEAAAD//wAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.[truncated 15997031 chars]",
    "responseType": "json"
}

I would like to know: is the requirement to pass a local physical absolute path—and the failure to correctly handle Base64 audio data—the intended behavior, or is this a bug?

👉 Or configure the POST request to accept uploads in multipart/form-data format.

  • File, Blob, and ArrayBuffer in the browser
    Browsers provide only the file content; they do not securely expose the actual physical path on the user's computer.
  • Even when selecting a file via <input type="file">, the browser typically only obtains information such as the filename and file content; it does not provide a path—like C:\xxx\audio.wav.

audiocpp_server --version
audio.cpp 0.9.0
git: 795c45f 2026-09-30
build: Release, msvc 19.44.35229.0, Windows AMD64
backends: cpu,cuda

Activity

  1. 0xShug0 commented on Oct 1, 2026

    @0xShug0
    Owner

    @juntaosun This is a gap. /v1/tasks/run is not a standard OpenAI endpoint, so we initially supported only server-local audio paths. #750 adds Base64 WAV input support. A workaround before the next release is to upload the file first, then use the returned path in the task request.

    curl http://SERVER:7788/v1/ui/upload \
      -H "Content-Type: audio/wav" \
      -H "X-AudioCPP-Filename: input.wav" \
      --data-binary "@input.wav"
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions