1
0
mirror of https://github.com/rhasspy/rhasspy.git synced 2022-02-12 01:59:45 +03:00
Files
rhasspy-voice-assistant/run-docker-alsa.sh
2020-02-22 21:52:58 -05:00

22 lines
522 B
Bash
Executable File

#!/usr/bin/env bash
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
# Directory of *this* script
DIR="$( cd "$( dirname "$0" )" && pwd )"
if [[ -z "$XDG_CONFIG_HOME" ]]; then
profile_dir="$HOME/.config/rhasspy/profiles"
else
profile_dir="$XDG_CONFIG_HOME/rhasspy/profiles"
fi
docker run -it -p 12101:12101 \
--device /dev/snd:/dev/snd \
-v "${profile_dir}:${profile_dir}" \
-v /etc/localtime:/etc/localtime \
rhasspy/rhasspy:latest \
--user-profiles "${profile_dir}" \
"$@"