| 54 | |
| 55 | === Pulseaudio === |
| 56 | The picroft installation does not use pulseaudio for the output of voice and other sound so the general volume control did not work |
| 57 | ==== blacklist the internal bcm2835 sound card ==== |
| 58 | This is for sure totally optional but I did it |
| 59 | * sudo nano /etc/modprobe.d/alsa-blacklist.conf |
| 60 | {{{ |
| 61 | blacklist snd_bcm2835 |
| 62 | }}} |
| 63 | ==== force ALSA userspace to use PulseAudio ==== |
| 64 | * sudo nano /etc/asound.conf |
| 65 | {{{ |
| 66 | # Use PulseAudio by default |
| 67 | pcm.!default { |
| 68 | type pulse |
| 69 | fallback "sysdefault" |
| 70 | hint { |
| 71 | show on |
| 72 | description "Default ALSA Output (currently PulseAudio Sound Server)" |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | ctl.!default { |
| 77 | type pulse |
| 78 | fallback "sysdefault" |
| 79 | } |
| 80 | }}} |
| 81 | ==== mycroft conf ==== |
| 82 | * sudo nano /etc/mycroft/mycroft.conf |
| 83 | replace: |
| 84 | {{{ |
| 85 | "play_wav_cmdline": "aplay -Dplughw:ArrayUAC10,0 %1", |
| 86 | "play_mp3_cmdline": "mpg123 -a plughw:ArrayUAC10,0 %1", |
| 87 | }}} |
| 88 | with |
| 89 | {{{ |
| 90 | "play_wav_cmdline": "paplay %1", |
| 91 | "play_mp3_cmdline": "mpg123 %1", |
| 92 | }}} |
| 93 | ==== additional setting in default.pa ==== |
| 94 | This enables ducking and is a nice feature that the volume of music playing is turned down while Mycroft speaks instead of stopping the output. |
| 95 | * sudo nano /etc/pulse/default.pa |
| 96 | add to the end of the file |
| 97 | {{{ |
| 98 | unload-module module-suspend-on-idle |
| 99 | unload-module module-role-cork |
| 100 | load-module module-role-ducking |
| 101 | }}} |