-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
17 lines (12 loc) · 767 Bytes
/
Copy pathREADME
File metadata and controls
17 lines (12 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
This repository contains scripts to collect data for speech recognition.
The script manual.py records audio and also records all X11 keystrokes as they
are manually entered. (It should work on other platforms, but has only been
tested on Linux.) This is useful if your speech is being interpreted by another
speech recognition system, or by a human typist. To use it, try:
$ PYTHONPATH=pynput/lib/ python manual.py -L -o /tmp
This will generate .flac and .txt files with audio recordings and keypresses.
Press CTRL-C to stop the recording, and it will exit safely. Due to a bug in
the keystroke handler, you may need to press one additional key (e.g. CTRL)
before the keystroke thread exits.
To check microphone device numbers, use
$ python list-mics.py