Skip to main content

火山引擎语音识别 CLI 工具

Project description

voice2text

PyPI version License: MIT

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

许可证

MIT License

贡献

欢迎提交 Issue 和 Pull Request!

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.3.tar.gz (8.2 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.3-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shellus_voice2text-1.0.3.tar.gz
  • Upload date:
  • Size: 8.2 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.3.tar.gz
Algorithm Hash digest
SHA256 027b9e68ce44235295fdefdc8d4d86fab221336353afc694cbaa8c16061667ac
MD5 8bfb3fd31c7cf3a3a7633d1e68a93654
BLAKE2b-256 7da25d5d18908bffbf71a8e5f03eeafce68aa7b53730ab9634c444b36e7d1069

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for shellus_voice2text-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 01d059a8972464f719756b3258742099e131f5bcdf38209244d407172a743b87
MD5 126e8a73f125409400d1bac08bc032de
BLAKE2b-256 8c8ad0a3bb099fd6be6b17e850031de54f02cf1def490f0baa0ee0b6e6cbf2cf

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