scribe-cli 0.11.1__tar.gz → 0.12.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {scribe_cli-0.11.1/scribe_cli.egg-info → scribe_cli-0.12.0}/PKG-INFO +5 -8
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/README.md +4 -7
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe/_version.py +2 -2
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe/app.py +8 -3
- {scribe_cli-0.11.1 → scribe_cli-0.12.0/scribe_cli.egg-info}/PKG-INFO +5 -8
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/.github/workflows/pypi.yml +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/.gitignore +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/LICENSE +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/icon.xcf +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/pyproject.toml +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe/__init__.py +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe/audio.py +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe/install_desktop.py +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe/keyboard.py +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe/models.py +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe/models.toml +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe/saverecording.py +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe/testpynput.py +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe/util.py +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe_cli.egg-info/SOURCES.txt +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe_cli.egg-info/dependency_links.txt +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe_cli.egg-info/entry_points.txt +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe_cli.egg-info/requires.txt +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe_cli.egg-info/top_level.txt +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe_data/__init__.py +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe_data/share/icon.png +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe_data/share/icon_recording.png +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe_data/share/icon_writing.png +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/scribe_data/templates/scribe.desktop +0 -0
- {scribe_cli-0.11.1 → scribe_cli-0.12.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: scribe-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.12.0
|
|
4
4
|
Summary: scribe is a local speech recognition tool that provides real-time transcription using vosk and whisper AI, with the goal of serving as a virtual keyboard on a computer
|
|
5
5
|
Author-email: Mahé Perrette <mahe.perrette@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -196,8 +196,8 @@ To activate start with:
|
|
|
196
196
|
scribe --app
|
|
197
197
|
```
|
|
198
198
|
or toggle the app option in the interactive menu. The scribe icon will show, with Record and other options. The icon will change based on what the app is doing. It is possible to choose from a set
|
|
199
|
-
of predefined models, or to Quit and choose from the terminal before pressing Enter again.
|
|
200
|
-
For the vosk model, there are only two states : recording + transcribing or Idle. For the whisper model there are three states visible from the icon: recording, transcribing and idle
|
|
199
|
+
of predefined models (controlled by `--vosk-models` and `whisper-models`) and options, or to Quit and choose from the terminal before pressing Enter again.
|
|
200
|
+
For the vosk model, there are only two states : recording + transcribing or Idle. For the whisper model there are three states visible from the icon: recording/waiting, transcribing and idle.
|
|
201
201
|
That option requires `pystray` to be installed. This is included with the `pip install ...[all]` option. In Ubuntu the following dependencies were required to make the menus appear:
|
|
202
202
|
|
|
203
203
|
```bash
|
|
@@ -220,13 +220,10 @@ scribe-install --clipboard --api YOUROPENAIAPIKEY
|
|
|
220
220
|
```
|
|
221
221
|
(`--api` is optional and only useful if you plan to use `openaiapi` backend later on)
|
|
222
222
|
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
It is also possible to run an app fully outside the terminal:
|
|
225
224
|
```bash
|
|
226
|
-
scribe-install --backend openaiapi --name "Scribe App" --keyboard --clipboard --app --no-prompt --no-terminal --restart-after-silence --api YOUROPENAIAPIKEY
|
|
225
|
+
scribe-install --backend openaiapi --name "Scribe App" --keyboard --clipboard --app --no-prompt --no-terminal --restart-after-silence --api YOUROPENAIAPIKEY --vosk-models vosk-model-fr-0.22 --whisper-models small turbo
|
|
227
226
|
```
|
|
228
|
-
This will install two separate apps (names "Scribe" and "Scribe App")
|
|
229
|
-
|
|
230
227
|
|
|
231
228
|
## Fine tuning
|
|
232
229
|
|
|
@@ -128,8 +128,8 @@ To activate start with:
|
|
|
128
128
|
scribe --app
|
|
129
129
|
```
|
|
130
130
|
or toggle the app option in the interactive menu. The scribe icon will show, with Record and other options. The icon will change based on what the app is doing. It is possible to choose from a set
|
|
131
|
-
of predefined models, or to Quit and choose from the terminal before pressing Enter again.
|
|
132
|
-
For the vosk model, there are only two states : recording + transcribing or Idle. For the whisper model there are three states visible from the icon: recording, transcribing and idle
|
|
131
|
+
of predefined models (controlled by `--vosk-models` and `whisper-models`) and options, or to Quit and choose from the terminal before pressing Enter again.
|
|
132
|
+
For the vosk model, there are only two states : recording + transcribing or Idle. For the whisper model there are three states visible from the icon: recording/waiting, transcribing and idle.
|
|
133
133
|
That option requires `pystray` to be installed. This is included with the `pip install ...[all]` option. In Ubuntu the following dependencies were required to make the menus appear:
|
|
134
134
|
|
|
135
135
|
```bash
|
|
@@ -152,13 +152,10 @@ scribe-install --clipboard --api YOUROPENAIAPIKEY
|
|
|
152
152
|
```
|
|
153
153
|
(`--api` is optional and only useful if you plan to use `openaiapi` backend later on)
|
|
154
154
|
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
It is also possible to run an app fully outside the terminal:
|
|
157
156
|
```bash
|
|
158
|
-
scribe-install --backend openaiapi --name "Scribe App" --keyboard --clipboard --app --no-prompt --no-terminal --restart-after-silence --api YOUROPENAIAPIKEY
|
|
157
|
+
scribe-install --backend openaiapi --name "Scribe App" --keyboard --clipboard --app --no-prompt --no-terminal --restart-after-silence --api YOUROPENAIAPIKEY --vosk-models vosk-model-fr-0.22 --whisper-models small turbo
|
|
159
158
|
```
|
|
160
|
-
This will install two separate apps (names "Scribe" and "Scribe App")
|
|
161
|
-
|
|
162
159
|
|
|
163
160
|
## Fine tuning
|
|
164
161
|
|
|
@@ -204,13 +204,17 @@ def get_parser():
|
|
|
204
204
|
group.add_argument("--silence", default=2, type=float, help="silence duration (default %(default)s s)")
|
|
205
205
|
group.add_argument("--silence-db", default=-30, type=float, help="silence magnitude in decibel (default %(default)s db)")
|
|
206
206
|
group.add_argument("-a", "--restart-after-silence", action="store_true", help="Restart the recording after a transcription triggered by a silence")
|
|
207
|
+
group.add_argument("--download-folder-whisper", help="Folder to store Whisper models.")
|
|
207
208
|
|
|
208
209
|
group = parser.add_argument_group("whisper api")
|
|
209
210
|
group.add_argument("--api-key",
|
|
210
211
|
help="API key for the Whisper API backend.")
|
|
211
212
|
|
|
213
|
+
group = parser.add_argument_group("App")
|
|
214
|
+
group.add_argument("--vosk-models", nargs="*", help="vosk models available for the app mode", default=vosk_models)
|
|
215
|
+
group.add_argument("--whisper-models", nargs="*", help="whisper models available for the app mode", default=whisper_models)
|
|
216
|
+
|
|
212
217
|
parser.add_argument("--download-folder-vosk", help="Folder to store Vosk models.")
|
|
213
|
-
parser.add_argument("--download-folder-whisper", help="Folder to store Whisper models.")
|
|
214
218
|
|
|
215
219
|
return parser
|
|
216
220
|
|
|
@@ -351,6 +355,7 @@ def create_app(micro, transcriber, other_transcribers=None, **kwargs):
|
|
|
351
355
|
icon.update_menu()
|
|
352
356
|
|
|
353
357
|
def callback_toggle_option(icon, item):
|
|
358
|
+
callback_stop_recording(icon, item)
|
|
354
359
|
kwargs[str(item)] = not kwargs[str(item)]
|
|
355
360
|
|
|
356
361
|
def is_model_selection(item):
|
|
@@ -525,8 +530,8 @@ def main(args=None):
|
|
|
525
530
|
|
|
526
531
|
app = create_app(micro, transcriber, other_transcribers=[
|
|
527
532
|
{**vars(o), "backend": "openaiapi", "model": "whisper-1"},
|
|
528
|
-
*[{**vars(o), "backend": "whisper", "model": model} for model in whisper_models],
|
|
529
|
-
*[{**vars(o), "backend": "vosk", "model": model} for model in vosk_models]],
|
|
533
|
+
*[{**vars(o), "backend": "whisper", "model": model} for model in o.whisper_models],
|
|
534
|
+
*[{**vars(o), "backend": "vosk", "model": model} for model in o.vosk_models]],
|
|
530
535
|
clipboard=o.clipboard, output_file=o.output_file,
|
|
531
536
|
keyboard=o.keyboard, latency=o.latency, ascii=o.ascii, **greetings)
|
|
532
537
|
print("Starting app...")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: scribe-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.12.0
|
|
4
4
|
Summary: scribe is a local speech recognition tool that provides real-time transcription using vosk and whisper AI, with the goal of serving as a virtual keyboard on a computer
|
|
5
5
|
Author-email: Mahé Perrette <mahe.perrette@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -196,8 +196,8 @@ To activate start with:
|
|
|
196
196
|
scribe --app
|
|
197
197
|
```
|
|
198
198
|
or toggle the app option in the interactive menu. The scribe icon will show, with Record and other options. The icon will change based on what the app is doing. It is possible to choose from a set
|
|
199
|
-
of predefined models, or to Quit and choose from the terminal before pressing Enter again.
|
|
200
|
-
For the vosk model, there are only two states : recording + transcribing or Idle. For the whisper model there are three states visible from the icon: recording, transcribing and idle
|
|
199
|
+
of predefined models (controlled by `--vosk-models` and `whisper-models`) and options, or to Quit and choose from the terminal before pressing Enter again.
|
|
200
|
+
For the vosk model, there are only two states : recording + transcribing or Idle. For the whisper model there are three states visible from the icon: recording/waiting, transcribing and idle.
|
|
201
201
|
That option requires `pystray` to be installed. This is included with the `pip install ...[all]` option. In Ubuntu the following dependencies were required to make the menus appear:
|
|
202
202
|
|
|
203
203
|
```bash
|
|
@@ -220,13 +220,10 @@ scribe-install --clipboard --api YOUROPENAIAPIKEY
|
|
|
220
220
|
```
|
|
221
221
|
(`--api` is optional and only useful if you plan to use `openaiapi` backend later on)
|
|
222
222
|
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
It is also possible to run an app fully outside the terminal:
|
|
225
224
|
```bash
|
|
226
|
-
scribe-install --backend openaiapi --name "Scribe App" --keyboard --clipboard --app --no-prompt --no-terminal --restart-after-silence --api YOUROPENAIAPIKEY
|
|
225
|
+
scribe-install --backend openaiapi --name "Scribe App" --keyboard --clipboard --app --no-prompt --no-terminal --restart-after-silence --api YOUROPENAIAPIKEY --vosk-models vosk-model-fr-0.22 --whisper-models small turbo
|
|
227
226
|
```
|
|
228
|
-
This will install two separate apps (names "Scribe" and "Scribe App")
|
|
229
|
-
|
|
230
227
|
|
|
231
228
|
## Fine tuning
|
|
232
229
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|