forked from vavrek/Open-Assistant-Version-Zero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassist.sh
executable file
·44 lines (30 loc) · 1.2 KB
/
assist.sh
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
#!/bin/bash
# OpenAssistant 0.03
# 2016 General Public License V3
# By Andrew Vavrek, Clayton G. Hobbs, Jezra, Jonathan Kulp
# assist.sh - Assistant Launch Script
# Global Variables
export ASSISTNAME="stella"
export USERNAME="my friend"
export VOICE="/usr/bin/festival --tts"
export BROWSER="firefox"
export CONFIGDIR="./etc"
export KEYPRESS="xvkbd -xsendevent -secure -text"
export TERMINAL="xfce4-terminal -x"
# Gstreamer Library Path
export GSTREAMER_LIB_PATH=/usr/lib/gstreamer-1.0
# Make Binary Files Executable
chmod -R +x ./bin/*
# Make Configuration Files Writable & Executable
chmod -R +wx ./etc/*
# Launch OpenAssistant In Continuous Mode
# With History Of 20 Recent Commands
python3.5 assistant.py -c -H 20
# Launch Gui (Buggy): use "./assistant.py -i G"
# Launch In 'Continuous' Listen Mode: add "-C"
# Use Mic Other Than System Default: add "-m <device Number>"
# Find Mic Device Number: "cat /proc/asound/cards" Or "arecord -l"
# Pass Each Word As A Separate Argument: add "-p"
# Run Command Each Valid Sentence: "--valid-sentence-command=/path/to/command"
# Run Command Each Invalid Sentence: "--invalid-sentence-command=/path/to/command"
# Default Arguments Configured In "./etc/commands.json"