Call it
curl https://api.peume.com/v1/call/speech-to-speech \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"voice_id": "your voice id",
"audio": "your audio"
}
}'const res = await fetch("https://api.peume.com/v1/call/speech-to-speech", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"voice_id": "your voice id",
"audio": "your audio"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/speech-to-speech",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"voice_id": "your voice id",
"audio": "your audio"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: speech-to-speech.
Parameters
voice_idRequiredstringVoice to speak in: a public voice id from /voices, or a voice you cloned via /voices/clone.
audioRequiredobjectThe recording: { "type": "url", "url": "" } — up to 300 seconds and 32 MB; WAV, MP3, FLAC, OGG, M4A or AAC; must download within 60 seconds.
remove_background_noisebooleanClean the recording before converting. Default false; adds latency.
seedintegerBest-effort repeatable generation.
