-
Notifications
You must be signed in to change notification settings - Fork 9
/
README.txt
64 lines (39 loc) · 1.67 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
PySpeak
=======
By: John Wyles Email: [email protected] Git:
https://github.com/johnwyles/pyspeak
Python Speech Recognition, Voice Recognition, Text-to-Speech and Voice
Command Engine
Requirements: - portaudio
(http://portaudio.com/docs/v19-doxydocs/tutorial\_start.html) - pyaudio
(http://people.csail.mit.edu/hubert/pyaudio/compilation.html)
Setup: - MacOS X - Install Homebrew if you don't already have it
::
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
- Install portaudio and flac from Homebrew
brew install portaudio flac
brew link portaudio flac
- Linux
- Ensure you have portaudio
::
sudo yum -y install portaudio-devel flac-devel # for Fedora/RedHat distros
sudo apt-get install libportaudio-dev libflac-dev # for Ubuntu/Debian distros
- Windows
- Good luck! :)
Installation:
::
sudo pip install pyspeak
Usage:
::
usage: pyspeak [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [-v]
{listen,speak} ...
positional arguments:
{listen,speak} Subcommand for pyspeak to either listen for microphone
input (speech-to-text) or text input (text-to-speech)
listen Listen for microphone input (speech-to-text)
speak Listen for text input (text-to-speech
optional arguments:
-h, --help show this help message and exit
-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --loglevel {DEBUG,INFO,WARNING,ERROR,CRITICAL}
Log level for console output (default: INFO)
-v, --version Get the version number and exit (default: False)