Compare commits

..

No commits in common. "16ea900e1b6428f256ae4beee60676ed61a60aa5" and "fc324279a1d182fd080df5b9b25625ebfc874a51" have entirely different histories.

2 changed files with 2 additions and 28 deletions

View File

@ -1,31 +1,5 @@
# 🗣️ ✍️ 💾
```
STT terminal utility based on openai-whisper and pyaudio
```
git clone --recurse-submodules <git-repo>
```
```
usage: ./transcriptum.sh [action]
where action can be: [install, clean, run]
```
```
usage: transcribe.py [-h] [--model {tiny,base,small,medium,large}] [--rms RMS]
[--record_timeout RECORD_TIMEOUT]
[--phrase_timeout PHRASE_TIMEOUT] [--dynamic_threshold]
TRANSCRIPTUM
options:
-h, --help show this help message and exit
--model {tiny,base,small,medium,large}
Whisper model
--rms RMS RMS (energy) threshold for microphone to detect
--record_timeout RECORD_TIMEOUT
Timeout for the microphone recording
--phrase_timeout PHRASE_TIMEOUT
Silence timeout between phrases
--dynamic_threshold Use dynamic rms threshold?
```

View File

@ -21,7 +21,7 @@ state = State.IDLE
def main():
p = argparse.ArgumentParser(description="TRANSCRIPTUM")
p.add_argument("--model", default="small", help="Whisper model", choices=["tiny", "base", "small", "medium", "large"])
p.add_argument("--model", default="medium", help="Whisper model", choices=["tiny", "base", "small", "medium", "large"])
p.add_argument("--rms", default=1000, help="RMS (energy) threshold for microphone to detect", type=int)
p.add_argument("--record_timeout", default=8, help="Timeout for the microphone recording", type=float)
p.add_argument("--phrase_timeout", default=2, help="Silence timeout between phrases", type=float)