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
Metadata
Release files for scrit 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scrit-0.0.1.tar.gz | 9.2 kB | Without provenance | Details for scrit-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scrit-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for scrit-0.0.1-py3-none-any.whl |
Total release size: 18.0 kB
Release files / scrit-0.0.1.tar.gz
| Download URL | scrit-0.0.1.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c651a60f39034a185100708e7d189fb1ab0bcd78326169d4606db5ff8b27c601
|
|
BLAKE2b-256 checksum How to use checksums |
4eab32e8cf1d8e677c46f84380635a1bbe0d52cd470b9eac0c5142876be36d4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Release files / scrit-0.0.1-py3-none-any.whl
| Download URL | scrit-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9c90889dc0ca432ebfce80d9f25ec8ada08160307affbe3c26cff43974a1535
|
|
BLAKE2b-256 checksum How to use checksums |
6254b3281fc1aade079151df299207d362eae79efcedf3348a9a30d254ff369f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Security for scrit 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.