mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
All 181 docs markdown files translated into 20 languages (apps/docs/<locale>/**). Companion to the i18n code PR; admin-merged because the file count exceeds GitHub's per-PR CI trigger limit. Validated by pnpm i18n:check (all surfaces, 0 stale/missing) and a clean all-locale docs build.
1.5 KiB
1.5 KiB
description, i18n_source_hash, i18n_provenance, i18n_output_hash
| description | i18n_source_hash | i18n_provenance | i18n_output_hash |
|---|---|---|---|
| 在单声道和立体声之间转换,或交换左右声道。 | 4f5cd6b38c83 | human | e59e20ee2873 |
音频声道
在单声道和立体声布局之间转换音频,或交换立体声文件的左右声道。
API 端点
POST /api/v1/tools/audio/audio-channels
接受包含一个音频文件和一个 JSON settings 字段的 multipart 表单数据。
参数
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| mode | string | Yes | - | 声道操作:stereo-to-mono、mono-to-stereo、swap |
请求示例
curl -X POST http://localhost:1349/api/v1/tools/audio/audio-channels \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@audio.mp3" \
-F 'settings={"mode": "stereo-to-mono"}'
响应示例
{
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/audio.mp3",
"originalSize": 4500000,
"processedSize": 2300000
}
说明
stereo-to-mono将两个声道混合为单个单声道轨道。mono-to-stereo将单声道声道复制到左右两个声道。swap交换立体声文件的左右声道。- 输出通常保留输入容器。AAC 输入会写为 M4A,不支持的仅解码输入会回退为 MP3。