Skip to main content

A command-line tool for generating subtitles from audio file using mlx-whisper

Project description

audiosub

一个基于 mlx-whisper 的命令行工具,用于将音频文件转换为字幕文件。

特点

  • Apple Silicon 专属优化:仅支持 M1/M2/M3 等 Apple 芯片
  • 速度极快:基于 Metal 加速的 mlx 框架
  • 占用极低:高效利用 GPU 资源
  • 准确度高:采用 OpenAI Whisper 模型,支持多语言识别
  • 一键生成:简单命令即可生成 .srt 字幕文件

系统要求

  • macOS(仅限 Apple Silicon 芯片)
  • Python 3.12+
  • uv

使用方法

通过 uv 的 uvx 命令安装并使用。

uvx audiosub <filename>
# 将在当前目录生成 audio.srt 字幕文件

注意事项

  • 不支持 Intel 芯片的 Mac(mlx 框架仅支持 Apple Silicon)
  • 支持的音频格式:MP3、WAV、M4A 等
  • 首次运行会自动下载 Whisper 模型,请确保网络连接正常

依赖

  • Python 3.12+
  • mlx-whisper
  • click

许可证

MIT

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

audiosub-0.3.tar.gz (56.6 kB view details)

Uploaded Source

Built Distribution

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

audiosub-0.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file audiosub-0.3.tar.gz.

File metadata

  • Download URL: audiosub-0.3.tar.gz
  • Upload date:
  • Size: 56.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for audiosub-0.3.tar.gz
Algorithm Hash digest
SHA256 5d46d3161fa4d13c8c5206d12472dadc7258ba3f6714d0728457049fddfda341
MD5 216843dc950095f576268be600ce23da
BLAKE2b-256 41ea011ec9548e70a2a60626cf59b873fbcf3d0e1427b0c8295aa5f8e73d3c81

See more details on using hashes here.

File details

Details for the file audiosub-0.3-py3-none-any.whl.

File metadata

  • Download URL: audiosub-0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for audiosub-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e6a81f400dbb64eff793f0b2b71663565705b07b0e509fa4047bee8c50ffefc0
MD5 2834f69edb87565df952c629cefa7744
BLAKE2b-256 4e4e8d7da623d7af0b92aa9965ec57abf44666931b2397e7070cb1c5452c3f34

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