소스 검색

add installation scripts

nico 8 년 전
부모
커밋
f2fe0d89e9
9개의 변경된 파일96개의 추가작업 그리고 3개의 파일을 삭제
  1. 28 0
      Docs/automated_install.md
  2. 1 1
      Docs/dev_env_install.md
  3. 0 0
      Docs/settings.md
  4. 1 1
      README.md
  5. 8 0
      brain.yml
  6. 9 0
      install/files/python_requirements.txt
  7. 37 0
      install/install.yml
  8. 11 0
      install/install_jarvis.sh
  9. 1 1
      settings.yml

+ 28 - 0
Docs/automated_install.md

@@ -0,0 +1,28 @@
+# JARVIS automated install
+
+Clone the project
+```
+cd
+git clone https://repo/jarvis.git
+```
+
+Run the install script with root privileges
+```
+sudo ./jarvis/install/install_jarvis.sh
+```
+
+You will be prompted to enter your sudo password during the installation process.
+
+Be sure you can record you voice, run the following command to capture audio from your microphone
+```
+rec test.wav
+```
+
+Press CTRL-C after capturing a sample of our voice.
+
+Then play the recorded audio file
+```
+play test.wav
+```
+
+If everything is ok, you can start playing with jarvis. First, 

+ 1 - 1
Docs/dev_env_install.md

@@ -12,7 +12,7 @@ Tested env
 ### Packages installation
 On Ubuntu distribution:
 ```
-sudo apt-get install python-pip python-dev libsmpeg0 libttspico-utils libsmpeg0 flac dialog libffi-dev
+sudo apt-get install python-pip python-dev libsmpeg0 libttspico-utils libsmpeg0 flac dialog libffi-dev portaudio19-dev build-essential libssl-dev libffi-dev sox
 ```
 
 ### Python lib

+ 0 - 0
Docs/default_settings.md → Docs/settings.md


+ 1 - 1
README.md

@@ -25,7 +25,7 @@ JARVIS is easy-peasy to use, see the hello world
 
 ## Usage
 
-- [Configure default settings](Docs/default_settings.md)
+- [Configure default settings](Docs/settings.md)
 - [Create the brain of your JARVIS](Docs/brain.md)
 - [Run JARVIS with CLI](Docs/jarvis_cli.md)
 

+ 8 - 0
brain.yml

@@ -1,4 +1,12 @@
 ---
+  - name: "hello world"
+    neurons:
+      - say:
+          message:
+            - "Hello, I'm Jarvis"
+    signals:
+      - order: "hello"
+
   - name: "say hello"
     neurons:
       - say:

+ 9 - 0
install/files/python_requirements.txt

@@ -0,0 +1,9 @@
+SpeechRecognition==3.4.6
+pyaudio==0.2.9
+ansible==2.1.1.0
+pygame
+python2-pythondialog==3.4.0
+jinja==1.2
+python-crontab==2.1.1
+cffi==1.8.3
+pygmail==0.0.5.4

+ 37 - 0
install/install.yml

@@ -0,0 +1,37 @@
+---
+- hosts: localhost
+  gather_facts: no
+  connection: local
+  become: True
+
+  tasks:
+  - name: Install packages
+    apt: name={{ item }} update_cache=yes
+    with_items:
+      - python-pip
+      - python-dev
+      - libsmpeg0
+      - libttspico-utils
+      - libsmpeg0
+      - flac
+      - dialog
+      - libffi-dev
+      - portaudio19-dev
+      - build-essential
+      - libssl-dev
+      - libffi-dev
+      - sox
+#
+  - name: Copy requirement
+    copy:
+      src: python_requirements.txt
+      dest: /tmp/requirements.txt
+
+  - name: Upgrade pip
+    pip:
+      name: pip
+      state: latest
+
+  - name: Install python libs
+    pip:
+      requirements=/tmp/requirements.txt

+ 11 - 0
install/install_jarvis.sh

@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+# install packages
+apt-get install python-pip
+
+# install ansible
+pip install ansible==2.1.1.0
+
+# Install the project
+cd jarvis/install
+ansible-playbook install/install.yml -K

+ 1 - 1
settings.yml

@@ -47,7 +47,7 @@ speech_to_text:
 # - voxygen
 text_to_speech:
   - pico2wave:
-      language: "fr"
+      language: "us"
       cache: True
   - voxygen:
       language: "fr"