Skip to main content

Voice transcription tool using Groq API with global hotkeys

Project description

Whisper Assistant

A lightweight, globally accessible voice-to-text tool powered by Groq's fast inference API.

Whisper Assistant sits in the background and listens for your custom hotkey. When triggered, it records your voice, transcribes it using the Groq API (Whisper model), and automatically copies the text to your clipboard.

Features

  • 🚀 Blazing Fast Transcription: Uses Groq's API for near-instant speech-to-text.
  • ⌨️ Global Hotkeys: Toggle recording or retry transcription from anywhere in your OS.
  • 📋 Clipboard Integration: Transcribed text is automatically copied to your clipboard.
  • ⚙️ Simple Configuration: Easy setup via environment variables.
  • 🖥️ Flexible Usage: Run interactively in the terminal or as a background daemon.

Prerequisites

Installation

  1. Clone the repository

    git clone https://github.com/Futhark-AS/whisper_assistant.git
    cd whisper_assistant
    
  2. Install dependencies

    uv sync
    

    Note for macOS users: If you encounter issues installing PyAudio, you may need to install portaudio:

    brew install portaudio
    
  3. Configure Environment Create a .env file in the project root:

    cp .env.example .env
    

    Edit .env with your settings

Usage

You can run the assistant in two modes: Foreground (Interactive) or Daemon (Background).

Foreground Mode

Run the assistant directly in your terminal. This is useful for debugging or if you prefer to see logs in real-time. The process will stop when you close the terminal.

uv run src/main.py

Daemon Mode (CLI)

Use the CLI to manage the assistant as a background process.

Add as alias If using fish:

echo "alias whisp 'uv run --directory $PWD src/cli.py'" >> ~/.config/fish/config.fish

Then you can run the assistant like this anywhere:

whisp status
whisp start
whisp history list
whisp history transcribe YYYY-MM-DD-HHMMSS
whisp stop

Start the daemon:

uv run src/cli.py start

Check status:

uv run src/cli.py status

Stop the daemon:

uv run src/cli.py stop

History Management

The CLI also provides tools to manage your recording history.

List recordings:

uv run src/cli.py history list

Transcribe a specific recording:

uv run src/cli.py history transcribe YYYY-MM-DD-HHMMSS

Hotkeys

  • Toggle Recording: Press your hotkey (configured in .env, e.g., cmd+option+space) to start recording. Press again to stop.
  • Retry Transcription: Press your retry hotkey to re-transcribe the last recorded audio.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

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

whisper_assistant-0.1.3.tar.gz (116.7 kB view details)

Uploaded Source

Built Distribution

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

whisper_assistant-0.1.3-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file whisper_assistant-0.1.3.tar.gz.

File metadata

  • Download URL: whisper_assistant-0.1.3.tar.gz
  • Upload date:
  • Size: 116.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • 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":null}

File hashes

Hashes for whisper_assistant-0.1.3.tar.gz
Algorithm Hash digest
SHA256 61d7d48fa0f4254cff2a6101e1b63f8d361ef52eca419c11283b9f3707f1d19f
MD5 41d5641e63a2155e29fb5f38aa2270af
BLAKE2b-256 e0c2823a7a8af206c82ec0ab9714abfcb97e48dba1507c0d3a96fd20916e6cd0

See more details on using hashes here.

File details

Details for the file whisper_assistant-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: whisper_assistant-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • 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":null}

File hashes

Hashes for whisper_assistant-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 13ef16fd7bbb475d2a8dbee1f587011852b6425d48ed679f565939b9df261cc3
MD5 d9933a31eabe4bcb5f87d99bdc8b6a25
BLAKE2b-256 09fee020ffcfcf4a643a87563edaa428b184aa72d9811c48e711f34964292c6d

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