2023-08-30 13:50:40 +02:00
|
|
|
[Unit]
|
|
|
|
Description=OpenVoiceOS Audio Service
|
|
|
|
After=local-fs.target
|
|
|
|
Wants=ovos_messagebus.service
|
|
|
|
After=ovos_messagebus.service
|
|
|
|
Wants=ovos_phal.service
|
|
|
|
After=ovos_phal.service
|
|
|
|
|
|
|
|
[Container]
|
|
|
|
ContainerName=ovos_audio
|
|
|
|
Image=docker.io/smartgic/ovos-audio:alpha
|
|
|
|
AutoUpdate=registry
|
|
|
|
LogDriver=journald
|
|
|
|
HostName=ovos_audio
|
|
|
|
Network=host
|
|
|
|
Timezone=local
|
2023-08-30 20:49:54 +02:00
|
|
|
UserNS=keep-id:uid=%U,gid=%G
|
2023-08-30 13:50:40 +02:00
|
|
|
Environment=PULSE_SERVER=unix:/run/user/1000/pulse/native
|
|
|
|
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
|
|
|
|
AddDevice=/dev/snd
|
|
|
|
Volume=%h/ovos/config:/home/ovos/.config/mycroft
|
|
|
|
Volume=%h/ovos/tmp:/tmp/mycroft
|
|
|
|
Volume=%t/pulse:/run/user/1000/pulse:ro
|
2023-08-30 20:49:54 +02:00
|
|
|
Volume=%t/bus:/run/user/1000/bus:ro
|
|
|
|
Volume=ovos_tts_cache:/home/ovos/.cache/mycroft
|
2023-08-30 13:50:40 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
TimeoutStartSec=900
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target default.target
|