Skip to main content

火山引擎语音识别 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shellus_voice2text-1.0.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shellus_voice2text-1.0.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file shellus_voice2text-1.0.1.tar.gz.

File metadata

  • Download URL: shellus_voice2text-1.0.1.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

Hashes for shellus_voice2text-1.0.1.tar.gz
Algorithm Hash digest
SHA256 174224b2ef737987da3bf7f033f0a03ce4a4ce72d1d903a8efaadd10303c7553
MD5 5131a6418469ec73288f89671a3d340c
BLAKE2b-256 f083be3746546798a2501429803a98dd6d4a379be2cb54954f0f76d225030464

See more details on using hashes here.

File details

Details for the file shellus_voice2text-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for shellus_voice2text-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b16edf74a84592449eab2060659220ef0a026dfa7ca552ee99d8968b52d6b33f
MD5 ad793b2306381cde54b1477fc5739698
BLAKE2b-256 d58a975f4bf498377621992f8ea50ff4b8d64feb768c37a20add9181f211e94c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page