smartgic / docker-mycroft

Mycroft AI Voice Assistant Docker images and docker-compose.yml files for x86_64, arm7vl and aarch64 CPU architectures.
https://hub.docker.com/u/smartgic
Apache License 2.0
41 stars 8 forks source link

No such file or directory when playing sound #17

Closed goldyfruit closed 2 years ago

goldyfruit commented 2 years ago

When a skill uses the CommonPlaySkill implementation to leverage CPS_play (with a file) and let the sound play through the mycroft_audio container it generates an error:

Directory: /tmp/mycroft/cache/tts/PollyTTS/
Playing MPEG stream 1 of 1: 0eea217916f0a0f5b37cd8a2c54e876e.mp3 ...
[src/libmpg123/readers.c:1184] error: Cannot open file /opt/mycroft/skills/mycroft-ring-skill.smartgic/assets/doorbell_1.mp3: No such file or directory
main: [src/mpg123.c:708] error: Cannot open /opt/mycroft/skills/mycroft-ring-skill.smartgic/assets/doorbell_1.mp3: File access error. (code 22)

The mycroft_skills and mycroft_audio containers need to share the skill data.