Skip to main content

Push-to-talk speech-to-text input using OpenAI Whisper

Project description

whisper-ptt

Push-to-talk speech-to-text. Hold a key to record, release to transcribe and type.

Usage

uvx whisper-ptt
uvx whisper-ptt --model base --key alt_r

Options

  • --model — Whisper model (tiny, base, small, medium, large). Default: base
  • --key — Hotkey name from pynput.keyboard.Key. Default: alt_r

macOS permissions

This tool needs two macOS permissions to work:

  • Accessibility — to listen for hotkey presses and type transcribed text into the active window.
  • Microphone — to record audio.

To grant accessibility access:

  1. Open System Settings > Privacy & Security > Accessibility
  2. Click the + button and add your terminal app (Terminal, iTerm2, VS Code, etc.)
  3. If already listed, toggle it off and back on

Microphone access is prompted automatically on first use.

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

whisper_ptt-1.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

whisper_ptt-1.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: whisper_ptt-1.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"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":null}

File hashes

Hashes for whisper_ptt-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1ad4d03aee4c139069129a683762d3fa0e08861b2fb50df02271986431f353d9
MD5 4135e745d09406114abbe8fbcd96ba78
BLAKE2b-256 aaf50d01564c0dfdc976c24cd298ae6cd564ddddca10238c55cd847cd733bf86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: whisper_ptt-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"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":null}

File hashes

Hashes for whisper_ptt-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8da808a917b285f4046b438edeccb488e37dabcb103e113b980729f06b345938
MD5 ef3ccb6de5ef87f2927df4d9d8bb8f39
BLAKE2b-256 898f88648cd0d8c307bf66cadaef3d2ab69c26ee0fc447ef3c5f347827866e8a

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