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. Default: base. Common choices: tiny, base, small, medium, large-v3-turbo.
    • Run uvx whisper-ptt --help for full list.
  • --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.

Release

git tag v1.0.x
git push --tags

CI runs tests and publishes to PyPI automatically.

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.2.2.tar.gz (24.0 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.2.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: whisper_ptt-1.2.2.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for whisper_ptt-1.2.2.tar.gz
Algorithm Hash digest
SHA256 08e01e53b56ea548963633e60cf24e13346f7f5961e10db862a2307f5bbbefc0
MD5 f72f53458ab1f837ca5507c3be27a4d8
BLAKE2b-256 d68a819713fbeb709191ad4a80586d1b0a76b43852c314e4d3a3441aaefbb135

See more details on using hashes here.

File details

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

File metadata

  • Download URL: whisper_ptt-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for whisper_ptt-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 745da26c6c0cd680890725b9502f3d12e8ca29cff371e7eb25e4ac5f41f13e33
MD5 0b3b10273b147474ea8b2aae66f3d248
BLAKE2b-256 1a6be292b47e09607a3addc2c3cf316e345698559cff328cd1a5393b9b1fa5c8

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