Changes between Version 2 and Version 3 of mycroft_mark-2


Ignore:
Timestamp:
04/12/20 08:55:21 (4 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mycroft_mark-2

    v2 v3  
    3232amp.volume = 30
    3333}}}
    34 ==== Start using systems ====
     34==== Start using systemd ====
    3535Place a service file in the user directory:
    3636* nano ~/.config/systemd/user/myadavolume.service
     
    5252* systemctl --user enable myadavolume
    5353* systemctl --user start myadavolume
     54
     55=== Pulseaudio ===
     56The 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 ====
     58This is for sure totally optional but I did it
     59* sudo nano /etc/modprobe.d/alsa-blacklist.conf
     60{{{
     61blacklist snd_bcm2835
     62}}}
     63==== force ALSA userspace to use PulseAudio ====
     64* sudo nano /etc/asound.conf
     65{{{
     66# Use PulseAudio by default
     67pcm.!default {
     68  type pulse
     69  fallback "sysdefault"
     70  hint {
     71    show on
     72    description "Default ALSA Output (currently PulseAudio Sound Server)"
     73  }
     74}
     75
     76ctl.!default {
     77  type pulse
     78  fallback "sysdefault"
     79}
     80}}}
     81==== mycroft conf ====
     82* sudo nano /etc/mycroft/mycroft.conf
     83replace:
     84{{{
     85   "play_wav_cmdline": "aplay -Dplughw:ArrayUAC10,0 %1",
     86   "play_mp3_cmdline": "mpg123 -a plughw:ArrayUAC10,0 %1",
     87}}}
     88with
     89{{{
     90   "play_wav_cmdline": "paplay %1",
     91   "play_mp3_cmdline": "mpg123 %1",
     92}}}
     93==== additional setting in default.pa ====
     94This 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
     96add to the end of the file
     97{{{
     98unload-module module-suspend-on-idle
     99unload-module module-role-cork
     100load-module module-role-ducking
     101}}}