Main interests of this recipe is to managed audio (pulse) needed to use picotts in docker.
To build image, simply launch :
docker build -t picotts .
To launch docker container, a bash alias file is certainly the good option :
docker_me=" -e UID=`id -u` -e GID=`id -g`"
docker_pulse=" -v /run/user/`id -u`/pulse:/run/pulse "
function dis {
docker run --rm -ti $docker_pulse $docker_me picotts picotts \'"$*"\'
}
now you can use :
dis Bonjour