Classes | |
class | SpeechNode |
Functions | |
def | run |
Variables | |
string | cmd1 = 'sox -r 16000 -t alsa default /tmp/recording.flac silence 1 0.3 1% 1 2.0 1%' |
string | cmd2 = 'wget -q -U "Mozilla/5.0" --remote-encoding=utf-8 --post-file /tmp/recording.flac --header="Content-Type: audio/x-flac; rate=16000" -O - "http://www.google.com/speech-api/v1/recognize?client=chromium&lang=fr-FR"' |
string | lang = 'fr-FR' |
string | NODE = 'system_speech' |
string | PACKAGE = 'alfred_sr_linux' |
string | PUB_CONFIDENCE = 'confidence' |
string | PUB_SPEECH = 'speech' |
def alfred_sr_linux.gspeech_node.run | ( | ) |
Definition at line 73 of file gspeech_node.py.
string alfred_sr_linux::gspeech_node::cmd1 = 'sox -r 16000 -t alsa default /tmp/recording.flac silence 1 0.3 1% 1 2.0 1%' |
Definition at line 20 of file gspeech_node.py.
string alfred_sr_linux::gspeech_node::cmd2 = 'wget -q -U "Mozilla/5.0" --remote-encoding=utf-8 --post-file /tmp/recording.flac --header="Content-Type: audio/x-flac; rate=16000" -O - "http://www.google.com/speech-api/v1/recognize?client=chromium&lang=fr-FR"' |
Definition at line 22 of file gspeech_node.py.
string alfred_sr_linux::gspeech_node::lang = 'fr-FR' |
Definition at line 19 of file gspeech_node.py.
string alfred_sr_linux::gspeech_node::NODE = 'system_speech' |
Definition at line 5 of file gspeech_node.py.
string alfred_sr_linux::gspeech_node::PACKAGE = 'alfred_sr_linux' |
Definition at line 4 of file gspeech_node.py.
string alfred_sr_linux::gspeech_node::PUB_CONFIDENCE = 'confidence' |
Definition at line 8 of file gspeech_node.py.
string alfred_sr_linux::gspeech_node::PUB_SPEECH = 'speech' |
Definition at line 7 of file gspeech_node.py.