Skip to content

Commit

Permalink
Skip ReSpeaker driver if already exist (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongquan authored Sep 7, 2018
1 parent 0dec62b commit 7b18946
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

.idea/
.vscode
.response
extras/cmu_us_slt.flitevox
requirements.txt
Expand Down
9 changes: 7 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ install_debian_dependencies()
# TODO: Replace mpv with something else which doesn't pull video-related stuff.
}

function install_seed_voicecard_driver()
function install_seeed_voicecard_driver()
{
# TODO: Modify this driver install script, so that it won't pull libasound-plugins,
# which in turn, pull lot of video-related stuff.
if arecord -l | grep -q voicecard
then
echo "ReSpeaker Mic Array driver was already installed."
return 0
fi
echo "installing Respeaker Mic Array drivers from source"
git clone https://github.com/respeaker/seeed-voicecard.git
cd seeed-voicecard
Expand All @@ -36,7 +41,7 @@ function install_seed_voicecard_driver()

function install_dependencies()
{
install_seed_voicecard_driver
install_seeed_voicecard_driver
}

function install_susi_server() {
Expand Down

0 comments on commit 7b18946

Please sign in to comment.