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.1.tar.gz (57.0 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.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: audiosub-0.3.1.tar.gz
  • Upload date:
  • Size: 57.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"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.1.tar.gz
Algorithm Hash digest
SHA256 8c1c402b83acaaf1aa12d575d47222307d895a9dcd67f80c75f4009fc7b6f1ea
MD5 cea7cd7caa0dc38f5243ce4a5ed4de68
BLAKE2b-256 5b4cb93bb2807215c3554962dcb86c3b452e209aa9599de96247def940b1627e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: audiosub-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e908030c4bb5be323638e4896ed31e543b7b76192a2a99913082bd3a2a3a2b11
MD5 ec54a111ebd39d45260b1efffa4565c6
BLAKE2b-256 9dd52110dd4a4a076f1667c0dff037e0227d71b8a98793a622c339f3f717d5ba

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