maoda-commander-tt 0.0.59 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -447,7 +447,7 @@ tt ai audio status --task-id 'xyq:<threadId>'
|
|
|
447
447
|
tt ai audio wait --task-id 'xyq:<threadId>' --timeout-seconds 600 --output ./result.mp3
|
|
448
448
|
```
|
|
449
449
|
|
|
450
|
-
命令固定使用 `seedaudio_1.
|
|
450
|
+
命令固定使用 `seedaudio_1.5`、MP3 和 44.1 kHz;等待默认 60 秒,可通过
|
|
451
451
|
`--timeout-seconds` 设为 1–600 秒。参考音频直接上传,不进入持久素材缓存。
|
|
452
452
|
云端产物字段统一为 `outputs[].downloadUrl`,本地产物为 `outputs[].localPath`;
|
|
453
453
|
旧同步调用需增加 `--wait`,旧 `remoteUrl` 读取需迁移到 `downloadUrl`。
|
|
@@ -2193,10 +2193,9 @@ function buildImageRunExtra(clientRunId, messageId) {
|
|
|
2193
2193
|
function buildSubmitAudioBody(input) {
|
|
2194
2194
|
const contentData = {
|
|
2195
2195
|
prompt: input.prompt,
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
format: "mp3",
|
|
2196
|
+
model: "seedaudio_1.5",
|
|
2197
|
+
output_format: "mp3",
|
|
2198
|
+
audio_config_v2: {
|
|
2200
2199
|
sample_rate: 44100,
|
|
2201
2200
|
speech_rate: 0,
|
|
2202
2201
|
loudness_rate: 0,
|
|
@@ -2239,8 +2238,11 @@ function buildSubmitAudioBody(input) {
|
|
|
2239
2238
|
content: [
|
|
2240
2239
|
{
|
|
2241
2240
|
type: "data",
|
|
2242
|
-
data: JSON.stringify(
|
|
2243
|
-
|
|
2241
|
+
data: JSON.stringify({
|
|
2242
|
+
tool_name: "biz/x_tool_name_audio_part",
|
|
2243
|
+
param: JSON.stringify(contentData)
|
|
2244
|
+
}),
|
|
2245
|
+
sub_type: "biz/x_data_direct_tool_call_req"
|
|
2244
2246
|
}
|
|
2245
2247
|
],
|
|
2246
2248
|
role: "user",
|
|
@@ -2255,8 +2257,8 @@ function buildSubmitAudioBody(input) {
|
|
|
2255
2257
|
space_id: input.context.spaceId ?? "",
|
|
2256
2258
|
app_id: "795647"
|
|
2257
2259
|
},
|
|
2258
|
-
agent_name: "
|
|
2259
|
-
entrance_from: "
|
|
2260
|
+
agent_name: "pippit_audio_part_agent",
|
|
2261
|
+
entrance_from: "web_audio_direct",
|
|
2260
2262
|
run_extra: JSON.stringify(runExtra),
|
|
2261
2263
|
request_id: input.requestId
|
|
2262
2264
|
};
|
|
@@ -8802,4 +8804,4 @@ export {
|
|
|
8802
8804
|
ToolCommand,
|
|
8803
8805
|
createRootCommands
|
|
8804
8806
|
};
|
|
8805
|
-
//# sourceMappingURL=chunk-
|
|
8807
|
+
//# sourceMappingURL=chunk-53HK5CGI.js.map
|