Skip to Content
Learn Robotics Programming
book

Learn Robotics Programming

by Danny Staple
November 2018
Beginner
472 pages
13h 5m
English
Packt Publishing
Content preview from Learn Robotics Programming

Getting Mycroft to talk to the sound card

Now you need to connect Mycroft and the sound card.

We need the PulseAudio service to start when the Pi starts, so to do this we will create a systemd service file for it. Press Ctrl + C to exit Mycroft so you can type commands again.

We can use the Nano editor already in the Pi to create this file with the $ sudo nano /etc/systemd/system/pulseaudio.service command.

When the editor window appears, type the following into it:

[Unit]Description=PulseAudio Service [Install]WantedBy=multi-user.target [Service]Type=simplePrivateTmp=trueExecStart=/usr/bin/pulseaudio --system --realtime --disallow-exit

The service file starts with Description of Unit (units can be things other than services). This is human-friendly ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Robotics Programming - Second Edition

Learn Robotics Programming - Second Edition

Danny Staple

Publisher Resources

ISBN: 9781789340747Supplemental Content