火山引擎语音识别 CLI 工具
Project description
voice2text
火山引擎语音识别 CLI 工具,支持智能缓存和并发处理。
安装
pip install shellus-voice2text
使用
# 单文件处理
voice2text audio.mp3
# 批量处理(自动生成 .srt 文件)
voice2text *.mp3
# 输出纯文本
voice2text audio.mp3 --txt
# 输出 LRC 歌词
voice2text audio.mp3 --lrc
# 输出原始 JSON
voice2text audio.mp3 --json
# 控制并发数
voice2text *.mp3 --max-workers 5
特性
- 智能缓存:相同文件自动跳过,避免重复识别
- 并发处理:支持多文件并发,默认3个
- 自动输出:完成后自动生成对应格式文件
- 断点续传:失败任务可重新运行,已完成的直接跳过
配置
首次使用运行交互式初始化:
voice2text init
配置保存在 ~/.voice2text/config.json,包含:
{
"app_key": "your_app_key",
"access_key": "your_access_key",
"resource_id": "volc.seedasr.auc",
"s3_endpoint": "https://tos-cn-guangzhou.volces.com",
"s3_bucket": "your_bucket",
"s3_access_key": "your_s3_key",
"s3_secret_key": "your_s3_secret",
"max_concurrent_tasks": "3"
}
环境变量可覆盖配置文件:VOLC_APP_KEY, VOLC_ACCESS_KEY, VOLC_RESOURCE_ID, S3_ENDPOINT, S3_BUCKET, S3_ACCESS_KEY, S3_SECRET_KEY, MAX_CONCURRENT_TASKS。
API 文档
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shellus_voice2text-1.0.2.tar.gz.
File metadata
- Download URL: shellus_voice2text-1.0.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45e33678463d0ce56b435acda04c43570789c63426a4d443d3ffecb05a8d4d25
|
|
| MD5 |
4e8866741e06f3e7a4fed4e61f24594c
|
|
| BLAKE2b-256 |
e71bd6d8a58e80510867f9e2d0bdd166006e903c4a1b31b30cf4cc1ef5b59e2b
|
File details
Details for the file shellus_voice2text-1.0.2-py3-none-any.whl.
File metadata
- Download URL: shellus_voice2text-1.0.2-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30a40422c0581de52756081d4ce52e1bf557010fc50a4fbbbc18846a1c6e28ce
|
|
| MD5 |
7cf3271a29c0274f73b3b02f8d0c0c44
|
|
| BLAKE2b-256 |
f2bb3e9d337e6687020ae31e83d4b8663730c51ee07b85f532131fe3e2704d1e
|