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
- Install BlackHole or another audio loopback program
- 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
-
- install scrit with
pip install scrit
- 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_mapsection of the configuration file, edit the device names to represent the mapping between normal and tapped versions of the output devices
- edit the scrit configuration with
"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
- This tool is based on https://github.com/davabase/whisper_real_time
- Transcription is performed by the Whisper speech-to-text model from OpenAI (https://github.com/openai/whisper)
- This tool relies on audio loopback performed by BlackHole but other tools may also work
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scrit-0.0.1.tar.gz.
File metadata
- Download URL: scrit-0.0.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c651a60f39034a185100708e7d189fb1ab0bcd78326169d4606db5ff8b27c601
|
|
| MD5 |
dd64db9329776d7ad80d74caf77fa430
|
|
| BLAKE2b-256 |
4eab32e8cf1d8e677c46f84380635a1bbe0d52cd470b9eac0c5142876be36d4b
|
File details
Details for the file scrit-0.0.1-py3-none-any.whl.
File metadata
- Download URL: scrit-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9c90889dc0ca432ebfce80d9f25ec8ada08160307affbe3c26cff43974a1535
|
|
| MD5 |
b49f34d9f81048fce742387a1e921f52
|
|
| BLAKE2b-256 |
6254b3281fc1aade079151df299207d362eae79efcedf3348a9a30d254ff369f
|