@volcengine/speech-cli 0.1.40 → 0.1.44
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 +17 -42
- package/Third-party software notice.md +1 -1
- package/lib/install.js +1 -2
- package/package.json +1 -1
- package/release.json +26 -26
package/README.md
CHANGED
|
@@ -1,71 +1,46 @@
|
|
|
1
1
|
# @volcengine/speech-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
火山引擎豆包语音 CLI,支持语音合成、录音识别、音频生成和 Skill 更新。
|
|
4
4
|
|
|
5
5
|
## 运行要求
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Node.js 16 或更高版本,支持 macOS、Linux、Windows 的 x64 和 arm64。
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
npm 包只包含启动器和固定版本的下载清单。安装时从公开 TOS 地址下载当前平台的二进制,校验 ZIP 与二进制的 SHA-256 后缓存;下载不需要 TOS 凭据。禁用安装脚本时,首次运行会自动补下载。已缓存的相同版本可以离线启动,云服务调用仍需要网络和相应权限。
|
|
12
|
-
|
|
13
|
-
可设置 `SPEECH_CLI_SKIP_POSTINSTALL=1` 跳过安装阶段下载;首次运行仍会按需下载。
|
|
14
|
-
|
|
15
|
-
缓存默认为 `~/.cache/speech-cli`,可用 `SPEECH_CLI_CACHE_DIR` 指定可写目录。每个产品、版本和摘要独立缓存,不会跟随 `latest` 自动切换二进制。
|
|
16
|
-
|
|
17
|
-
## 登录与开始使用
|
|
9
|
+
## 快速开始
|
|
18
10
|
|
|
19
11
|
```sh
|
|
20
12
|
speech-cli auth login
|
|
21
|
-
speech-cli auth status
|
|
22
13
|
speech-cli tts --text '你好,欢迎使用豆包语音。' --output hello.mp3
|
|
23
14
|
```
|
|
24
15
|
|
|
25
|
-
|
|
16
|
+
使用 `speech-cli auth status` 查看登录状态,使用 `speech-cli --help` 查看完整命令。
|
|
26
17
|
|
|
27
|
-
##
|
|
18
|
+
## 常用命令
|
|
28
19
|
|
|
29
20
|
| 任务 | 命令 |
|
|
30
21
|
| --- | --- |
|
|
31
22
|
| 语音合成 | `speech-cli tts` |
|
|
32
|
-
| 录音识别 | `speech-cli asr` |
|
|
33
|
-
| 音频生成 | `speech-cli audio create` |
|
|
34
|
-
|
|
|
35
|
-
|
|
|
23
|
+
| 录音识别 | `speech-cli asr --audio-file meeting.wav` |
|
|
24
|
+
| SeedAudio 1.0 音频生成 | `speech-cli audio create --model seed-audio-1.0` |
|
|
25
|
+
| SeedAudio 1.5 音频生成 | `speech-cli audio create --model seed-audio-1.5` |
|
|
26
|
+
| 查询 SeedAudio 1.0 任务 | `speech-cli audio get` |
|
|
27
|
+
| Seeduplex 3.0 实时语音 Web Demo | `speech-cli duplex webdemo` |
|
|
28
|
+
| 查看版本 | `speech-cli --version` |
|
|
36
29
|
|
|
37
|
-
|
|
38
|
-
# 转写本地录音
|
|
39
|
-
speech-cli asr --audio-file meeting.wav
|
|
40
|
-
|
|
41
|
-
# 使用 Speech Seed Audio 1.0 生成音效
|
|
42
|
-
speech-cli audio create --model seed-audio-1.0 \
|
|
43
|
-
--prompt '清晨森林里的鸟鸣。' --output forest.wav
|
|
30
|
+
具体参数请运行对应命令的 `--help`,例如 `speech-cli audio create --help`。
|
|
44
31
|
|
|
45
|
-
|
|
46
|
-
speech-cli audio create --model seed-audio-1.5 \
|
|
47
|
-
--ark-api-key-file /secure/ark-key \
|
|
48
|
-
--prompt '雨滴落在屋檐上。' --output rain.wav
|
|
49
|
-
```
|
|
32
|
+
## 更新 Skill
|
|
50
33
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
## AI Agent Skills
|
|
54
|
-
|
|
55
|
-
通过 CLI 管理 Seed Audio 1.5 提示词优化 Skill:
|
|
34
|
+
更新指定 Skill;尚未安装时会自动安装:
|
|
56
35
|
|
|
57
36
|
```sh
|
|
58
37
|
speech-cli skills update seedaudio15-pe
|
|
59
38
|
```
|
|
60
39
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
## 本地数据
|
|
40
|
+
可同时传入多个名称。需要安装或更新本站全部 Skill 时,运行 `speech-cli skills update`。
|
|
64
41
|
|
|
65
|
-
|
|
42
|
+
默认目录为 `~/.agents/skills`,可用 `--skills-dir` 指定其他目录。
|
|
66
43
|
|
|
67
44
|
## 许可
|
|
68
45
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
开源组件的名称、许可证和地址见 [Third-party software notice](<./Third-party software notice.md>),也可运行 `speech-cli licenses` 查看。
|
|
46
|
+
[Apache-2.0](./LICENSE)。开源组件信息见 [Third-party software notice](<./Third-party software notice.md>),也可运行 `speech-cli licenses` 查看。
|
|
@@ -4,7 +4,7 @@ This notice covers the Volcengine edition of Speech CLI, built with the
|
|
|
4
4
|
`volcengine` Go build tag, for macOS, Linux and Windows. It lists the
|
|
5
5
|
runtime and direct and transitive dependencies included in this edition.
|
|
6
6
|
|
|
7
|
-
The npm
|
|
7
|
+
The npm launcher uses Node.js built-in modules and has no third-party npm
|
|
8
8
|
runtime dependencies. Build and release tooling dependencies, separately
|
|
9
9
|
distributed Skills and their example dependencies are outside this notice.
|
|
10
10
|
|
package/lib/install.js
CHANGED
|
@@ -49,14 +49,13 @@ function selectBinary(root, platform = process.platform, architecture = process.
|
|
|
49
49
|
const product = record.product;
|
|
50
50
|
if (product !== "volcengine" && product !== "byteplus")
|
|
51
51
|
throw new Error("Invalid Speech CLI package identity");
|
|
52
|
-
const distribution = product === "volcengine" ? "volcengine-speech-cli" : "byteplus-speech-cli";
|
|
53
52
|
const command = "speech-cli";
|
|
54
53
|
const version = (0, json_1.stringValue)(record.version, "release version");
|
|
55
54
|
const bin = (0, json_1.objectValue)(pkg.bin, "package.bin");
|
|
56
55
|
if (pkg.version !== version || !/^\d+\.\d+\.\d+$/.test(version)
|
|
57
56
|
|| Object.keys(bin).length !== 1 || bin[command] !== "lib/run.js"
|
|
58
57
|
|| typeof pkg.name !== "string" || !/^@[a-z0-9-]+\/[a-z0-9-]+$/.test(pkg.name)
|
|
59
|
-
||
|
|
58
|
+
|| pkg.name !== `@${product}/${command}`)
|
|
60
59
|
throw new Error("Invalid Speech CLI package identity");
|
|
61
60
|
const suffix = system === "windows" ? ".exe" : "";
|
|
62
61
|
const name = `${command}-${system}-${arch}${suffix}`;
|
package/package.json
CHANGED
package/release.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
2
|
+
"version": "0.1.44",
|
|
3
3
|
"product": "volcengine",
|
|
4
|
-
"source_commit": "
|
|
4
|
+
"source_commit": "636c28afc78b5794011f9550fbdecf5c9657183f",
|
|
5
5
|
"binaries": [
|
|
6
6
|
{
|
|
7
7
|
"name": "speech-cli-darwin-amd64",
|
|
8
8
|
"member": "speech-cli",
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "35ca39f03a16ddffa05ac08ca5ee469f87fa0eddafd9912fda62558fca09ee75",
|
|
10
10
|
"binary_bytes": 13166688,
|
|
11
|
-
"archive_url": "https://doubao-speech.tos-cn-beijing.volces.com/releases/speech-cli/v0.1.
|
|
12
|
-
"archive_sha256": "
|
|
13
|
-
"archive_bytes":
|
|
11
|
+
"archive_url": "https://doubao-speech.tos-cn-beijing.volces.com/releases/speech-cli/v0.1.44/speech-cli_0.1.44_darwin_amd64.zip",
|
|
12
|
+
"archive_sha256": "46ac1df9c519370b890348d6467394de15fffdd3a08b1a14e6862566f6a9a3be",
|
|
13
|
+
"archive_bytes": 5070391
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "speech-cli-darwin-arm64",
|
|
17
17
|
"member": "speech-cli",
|
|
18
|
-
"sha256": "
|
|
18
|
+
"sha256": "98674645ea679d0553d233e071015ed880c630d9d573fc3ff9bc904cbcf2bc11",
|
|
19
19
|
"binary_bytes": 12826738,
|
|
20
|
-
"archive_url": "https://doubao-speech.tos-cn-beijing.volces.com/releases/speech-cli/v0.1.
|
|
21
|
-
"archive_sha256": "
|
|
22
|
-
"archive_bytes":
|
|
20
|
+
"archive_url": "https://doubao-speech.tos-cn-beijing.volces.com/releases/speech-cli/v0.1.44/speech-cli_0.1.44_darwin_arm64.zip",
|
|
21
|
+
"archive_sha256": "4532f804d951e5a27a31f409d47c6d8b301df3995e28990f38326ff97d5f3a5f",
|
|
22
|
+
"archive_bytes": 4867074
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "speech-cli-linux-amd64",
|
|
26
26
|
"member": "speech-cli",
|
|
27
|
-
"sha256": "
|
|
27
|
+
"sha256": "dc4bb6b523815477519b6676738f43c94c2e5f8456f6e67de134628e3d5b4f52",
|
|
28
28
|
"binary_bytes": 12169216,
|
|
29
|
-
"archive_url": "https://doubao-speech.tos-cn-beijing.volces.com/releases/speech-cli/v0.1.
|
|
30
|
-
"archive_sha256": "
|
|
31
|
-
"archive_bytes":
|
|
29
|
+
"archive_url": "https://doubao-speech.tos-cn-beijing.volces.com/releases/speech-cli/v0.1.44/speech-cli_0.1.44_linux_amd64.zip",
|
|
30
|
+
"archive_sha256": "53b6b67b62873b350d318076f611b94f9f4ef993b1d49790d0d2de3ddb5a3a27",
|
|
31
|
+
"archive_bytes": 4891851
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"name": "speech-cli-linux-arm64",
|
|
35
35
|
"member": "speech-cli",
|
|
36
|
-
"sha256": "
|
|
36
|
+
"sha256": "9847ccb095f7d29350da6442e88cc136b198fea146b0d4dfb8e163ad5f66bd31",
|
|
37
37
|
"binary_bytes": 11468800,
|
|
38
|
-
"archive_url": "https://doubao-speech.tos-cn-beijing.volces.com/releases/speech-cli/v0.1.
|
|
39
|
-
"archive_sha256": "
|
|
40
|
-
"archive_bytes":
|
|
38
|
+
"archive_url": "https://doubao-speech.tos-cn-beijing.volces.com/releases/speech-cli/v0.1.44/speech-cli_0.1.44_linux_arm64.zip",
|
|
39
|
+
"archive_sha256": "f8ed10cea4785341d084ce187cc754b138b2e19359c8d4f68dd00b627fc0c300",
|
|
40
|
+
"archive_bytes": 4462377
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"name": "speech-cli-windows-amd64.exe",
|
|
44
44
|
"member": "speech-cli.exe",
|
|
45
|
-
"sha256": "
|
|
45
|
+
"sha256": "aece1870bd7141d8443330f229d427dd2402311c5e50ebf509ac4807bc050894",
|
|
46
46
|
"binary_bytes": 12528640,
|
|
47
|
-
"archive_url": "https://doubao-speech.tos-cn-beijing.volces.com/releases/speech-cli/v0.1.
|
|
48
|
-
"archive_sha256": "
|
|
49
|
-
"archive_bytes":
|
|
47
|
+
"archive_url": "https://doubao-speech.tos-cn-beijing.volces.com/releases/speech-cli/v0.1.44/speech-cli_0.1.44_windows_amd64.zip",
|
|
48
|
+
"archive_sha256": "4101df4e2c3c3c1d4342a997450658e99e956370b1dbfad65466e43661f3a75d",
|
|
49
|
+
"archive_bytes": 4994914
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"name": "speech-cli-windows-arm64.exe",
|
|
53
53
|
"member": "speech-cli.exe",
|
|
54
|
-
"sha256": "
|
|
54
|
+
"sha256": "04ca2b3ae5369ecad589550d1c159efa5124c551504d3a4c5b6967d627074e83",
|
|
55
55
|
"binary_bytes": 11726336,
|
|
56
|
-
"archive_url": "https://doubao-speech.tos-cn-beijing.volces.com/releases/speech-cli/v0.1.
|
|
57
|
-
"archive_sha256": "
|
|
58
|
-
"archive_bytes":
|
|
56
|
+
"archive_url": "https://doubao-speech.tos-cn-beijing.volces.com/releases/speech-cli/v0.1.44/speech-cli_0.1.44_windows_arm64.zip",
|
|
57
|
+
"archive_sha256": "94dfe988b2f386c086f85b48728154287096953c87f0c9205a3324386c473189",
|
|
58
|
+
"archive_bytes": 4551565
|
|
59
59
|
}
|
|
60
60
|
]
|
|
61
61
|
}
|