Skip to main content

command line tool to manage transcription of system audio with openai whisper

Project description

scrit

A simple cli tool to transcribe audio you are already listening to.

Usage

When %> scrit runs in a terminal:

  • It switches audio devices to capture the system output, without interrupting listening.
  • It loads OpenAI's Whisper speech-to-text model
  • It continuously transcribes the audio and presents a live-updating transcript
  • Upon-receiving ctrl-c, it saves the final transcript to file, or copies it to the clipboard

Installation

  1. Install BlackHole or another audio loopback program
  2. Set up a multi-output devices to add loopback to the audio output devices you want to use
    • detailed here for BlackHole

    • I found it helpful to name each multi-output device "{Audio Device} (tapped)"

    • Here is the side bar of Audio MIDI Setup for my computer

      example audio midi setup sidebar

  3. install scrit with
    • pip install scrit
  4. set up the mapping between tapped and un-tapped audio devices to enable automatic switching.
    • edit the scrit configuration with scrit --edit_config
    • in the tap_map section of the configuration file, edit the device names to represent the mapping between normal and tapped versions of the output devices
    "tap_map": [
        {
            "output_device": "External Headphones",
            "tapped_output_device": "External Headphones (tapped)"
        },
        {
            "output_device": "MacBook Pro Speakers",
            "tapped_output_device": "MacBook Pro Speakers (tapped)"
        },
        {
            "output_device": "AirPods",
            "tapped_output_device": "AirPods (tapped)"
        }
    ]

Acknowledgments

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

scrit-0.0.1.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

scrit-0.0.1-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page