Repository navigation
Description
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"
},
{
"model": "mel-band-roformer",
"request": {
"options": {},
"audio": to Base64 wav
}
}
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—likeC:\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
0xShug0 commentedon Oct 1, 2026
@juntaosun This is a gap.
/v1/tasks/runis 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.