瀏覽代碼

improved installation instructions

Martin 7 年之前
父節點
當前提交
60dac22f9b
共有 2 個文件被更改,包括 20 次插入 和 13 次删除
  1. 11 13
      README.md
  2. 9 0
      requirements.txt

+ 11 - 13
README.md

@@ -1,21 +1,19 @@
 Voice Control
 Voice Control
 
 
-Python requirements:
-    oauth2client==3.0.0
-    google-api-python-client
-    pygame
-    pyaudio
-    gTTS
-    requests
-    arrow
-    slackclient
-    xmltodict
-
 Linux:
 Linux:
-    alsa-base alsa-utils alsa-tools libasound-dev easy_install python-dev libportaudio2 flac libatlas-base-dev
+    aptitude install alsa-base alsa-utils alsa-tools libasound-dev python-virtualenv python-pip python-dev libportaudio2 flac libatlas-base-dev libsdl1.2-dev
+
+    enable apt src url(s)
+
+    aptitude build-dep python-pygame
 
 
-    add user to audio group: sudo usermod -a -G audio martin
 
 
 PortAudio: 
 PortAudio: 
     linux: http://portaudio.com/download.html, download, configure, make, make install
     linux: http://portaudio.com/download.html, download, configure, make, make install
     osx: brew install portaudio
     osx: brew install portaudio
+
+add user to audio group: sudo usermod -a -G audio martin
+
+set up a virtualenv and install python requirements
+
+ensure that the root of this folder and the parent of speech_recognition are available in PYTHONPATH

+ 9 - 0
requirements.txt

@@ -0,0 +1,9 @@
+oauth2client==3.0.0
+google-api-python-client
+pygame
+pyaudio
+gTTS
+requests
+arrow
+slackclient
+xmltodict