调整速度
curl --request POST \
--url https://api.mountsea.ai/suno/v2/adjustSpeed \
--header 'Content-Type: application/json' \
--data '
{
"clip_id": "<string>",
"speed_multiplier": 123,
"keep_pitch": true,
"title": "<string>"
}
'import requests
url = "https://api.mountsea.ai/suno/v2/adjustSpeed"
payload = {
"clip_id": "<string>",
"speed_multiplier": 123,
"keep_pitch": True,
"title": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
clip_id: '<string>',
speed_multiplier: 123,
keep_pitch: true,
title: '<string>'
})
};
fetch('https://api.mountsea.ai/suno/v2/adjustSpeed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mountsea.ai/suno/v2/adjustSpeed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'clip_id' => '<string>',
'speed_multiplier' => 123,
'keep_pitch' => true,
'title' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mountsea.ai/suno/v2/adjustSpeed"
payload := strings.NewReader("{\n \"clip_id\": \"<string>\",\n \"speed_multiplier\": 123,\n \"keep_pitch\": true,\n \"title\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mountsea.ai/suno/v2/adjustSpeed")
.header("Content-Type", "application/json")
.body("{\n \"clip_id\": \"<string>\",\n \"speed_multiplier\": 123,\n \"keep_pitch\": true,\n \"title\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/suno/v2/adjustSpeed")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"clip_id\": \"<string>\",\n \"speed_multiplier\": 123,\n \"keep_pitch\": true,\n \"title\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"taskId": "<string>"
}Suno
调整速度
调整现有音频片段的播放速度
POST
/
suno
/
v2
/
adjustSpeed
调整速度
curl --request POST \
--url https://api.mountsea.ai/suno/v2/adjustSpeed \
--header 'Content-Type: application/json' \
--data '
{
"clip_id": "<string>",
"speed_multiplier": 123,
"keep_pitch": true,
"title": "<string>"
}
'import requests
url = "https://api.mountsea.ai/suno/v2/adjustSpeed"
payload = {
"clip_id": "<string>",
"speed_multiplier": 123,
"keep_pitch": True,
"title": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
clip_id: '<string>',
speed_multiplier: 123,
keep_pitch: true,
title: '<string>'
})
};
fetch('https://api.mountsea.ai/suno/v2/adjustSpeed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mountsea.ai/suno/v2/adjustSpeed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'clip_id' => '<string>',
'speed_multiplier' => 123,
'keep_pitch' => true,
'title' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mountsea.ai/suno/v2/adjustSpeed"
payload := strings.NewReader("{\n \"clip_id\": \"<string>\",\n \"speed_multiplier\": 123,\n \"keep_pitch\": true,\n \"title\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mountsea.ai/suno/v2/adjustSpeed")
.header("Content-Type", "application/json")
.body("{\n \"clip_id\": \"<string>\",\n \"speed_multiplier\": 123,\n \"keep_pitch\": true,\n \"title\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/suno/v2/adjustSpeed")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"clip_id\": \"<string>\",\n \"speed_multiplier\": 123,\n \"keep_pitch\": true,\n \"title\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"taskId": "<string>"
}调整现有片段的播放速度。返回一个调整速度后的新片段。
请求体
string
必填
要调整速度的源片段 ID。
number
必填
速度倍率值,范围为 0.25 到 4.0。
| 值 | 效果 |
|---|---|
0.25 | 4 倍减速(最小值) |
0.5 | 2 倍减速 |
1.0 | 原始速度 |
1.5 | 1.5 倍加速 |
2.0 | 2 倍加速 |
4.0 | 4 倍加速(最大值) |
boolean
默认值:"true"
调整速度时是否保持原始音高。
true:保持原始音高(推荐)false:音高随速度变化
string
调整后片段的可选新标题。
响应
示例
curl -X POST https://api.mountsea.ai/suno/v2/adjustSpeed \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-api-key" \
-d '{
"clip_id": "your-clip-id",
"speed_multiplier": 1.45,
"keep_pitch": true,
"title": "My Song (1.45x)"
}'
const response = await fetch('https://api.mountsea.ai/suno/v2/adjustSpeed', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer your-api-key'
},
body: JSON.stringify({
clip_id: 'your-clip-id',
speed_multiplier: 1.45,
keep_pitch: true,
title: 'My Song (1.45x)'
})
});
const data = await response.json();
console.log(data.taskId);
import requests
response = requests.post(
'https://api.mountsea.ai/suno/v2/adjustSpeed',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer your-api-key'
},
json={
'clip_id': 'your-clip-id',
'speed_multiplier': 1.45,
'keep_pitch': True,
'title': 'My Song (1.45x)'
}
)
data = response.json()
print(data['taskId'])
响应示例
{
"taskId": "15c257ff-43f7-4678-bd41-202ad6b8488b"
}
将
keep_pitch 设为 true 可在加速或减速时保持原始声音特质。这使用了时间拉伸算法来保持音高不变。极端的速度调整(接近 0.25 或 4.0)可能会产生音频伪影。为获得最佳质量,建议保持在 0.75 - 1.5 倍的范围内。