forked from andonome/lk
change formatting
input examples are now given as ```bash input $ARG1 ``` While outputs use md's '> ' sign as a quote.
This commit is contained in:
@@ -9,11 +9,15 @@ Check with `which pulseaudio`. No output means you need to use alsa (below).
|
||||
|
||||
# Volume Control
|
||||
|
||||
> pactl set sink @DEFAULT_SINK@ +5%
|
||||
```bash
|
||||
pactl set sink @DEFAULT_SINK@ +5%
|
||||
```
|
||||
|
||||
Find working outputs:
|
||||
|
||||
> aplay -l
|
||||
```bash
|
||||
aplay -l
|
||||
```
|
||||
|
||||
#Sound Settings
|
||||
|
||||
@@ -26,7 +30,9 @@ amixer scontrols
|
||||
|
||||
# Change a Sound setting
|
||||
|
||||
> amixer set Master 5%-
|
||||
```bash
|
||||
amixer set Master 5%-
|
||||
```
|
||||
|
||||
# Restart everything
|
||||
|
||||
@@ -36,22 +42,34 @@ pulseaudio -k && sudo alsa force-reload
|
||||
|
||||
Toggle, mute, increase or decrase audio:
|
||||
|
||||
> amixer sset Master toggle
|
||||
```bash
|
||||
amixer sset Master toggle
|
||||
```
|
||||
|
||||
> amixer sset Master mute
|
||||
```bash
|
||||
amixer sset Master mute
|
||||
```
|
||||
|
||||
> amixer sset Master 5%+
|
||||
```bash
|
||||
amixer sset Master 5%+
|
||||
```
|
||||
|
||||
> amixer sset Master 5%-
|
||||
```bash
|
||||
amixer sset Master 5%-
|
||||
```
|
||||
|
||||
# Finicky Sound Cards
|
||||
|
||||
Start with:
|
||||
|
||||
> alsamixer
|
||||
```bash
|
||||
alsamixer
|
||||
```
|
||||
|
||||
Then press `F6` to see available Sound cards.
|
||||
If you find a Sound card called 'PinePhone', then you can select an audio source there, and adjust with:
|
||||
|
||||
> amixer -c PinePhone set 'Headphone' 50%
|
||||
```bash
|
||||
amixer -c PinePhone set 'Headphone' 50%
|
||||
```
|
||||
|
||||
|
@@ -6,9 +6,13 @@ tags: [ "Documentation", "Sound" ]
|
||||
|
||||
Add your user to the audio group, and install `festival-english`.
|
||||
|
||||
> echo "(Parameter.set 'Audio_Method 'Audio_Command)" >> /usr/share/festival/voices.scm
|
||||
```bash
|
||||
echo "(Parameter.set 'Audio_Method 'Audio_Command)" >> /usr/share/festival/voices.scm
|
||||
```
|
||||
|
||||
> echo "(Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r $SR $FILE")" /usr/share/festival/voices.scm
|
||||
```bash
|
||||
echo "(Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r $SR $FILE")" /usr/share/festival/voices.scm
|
||||
```
|
||||
|
||||
# Set Default Voice
|
||||
|
||||
|
64
sound/mpd.md
64
sound/mpd.md
@@ -8,45 +8,47 @@ tags: [ "Documentation", "Sound" ]
|
||||
|
||||
This is a minimum configuration file for /etc/mpd.conf
|
||||
|
||||
```
|
||||
|
||||
music_directory "/var/lib/mpd/music"
|
||||
> music_directory "/var/lib/mpd/music"
|
||||
>
|
||||
> playlist_directory "/var/lib/mpd/playlists"
|
||||
>
|
||||
> db_file "/var/lib/mpd/mpd.db"
|
||||
>
|
||||
>
|
||||
> pid_file "/run/mpd/mpd.pid"
|
||||
>
|
||||
> state_file "/var/lib/mpd/mpdstate"
|
||||
>
|
||||
>
|
||||
> user "mpd"
|
||||
>
|
||||
> audio_output {
|
||||
> type "pulse"
|
||||
> name "My Pulse Output"
|
||||
> }
|
||||
>
|
||||
> audio_output {
|
||||
> type "fifo"
|
||||
> name "my_fifo"
|
||||
> path "/tmp/mpd.fifo"
|
||||
> format "44100:16:2"
|
||||
> }
|
||||
|
||||
playlist_directory "/var/lib/mpd/playlists"
|
||||
|
||||
db_file "/var/lib/mpd/mpd.db"
|
||||
|
||||
|
||||
pid_file "/run/mpd/mpd.pid"
|
||||
|
||||
state_file "/var/lib/mpd/mpdstate"
|
||||
|
||||
|
||||
user "mpd"
|
||||
|
||||
audio_output {
|
||||
type "pulse"
|
||||
name "My Pulse Output"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "fifo"
|
||||
name "my_fifo"
|
||||
path "/tmp/mpd.fifo"
|
||||
format "44100:16:2"
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
You can use alsa instead of pulse, but don't unless you're on a Pi.
|
||||
|
||||
Since this is run as the mpd user, you'll need to grant that user pulse acceess, often with the user-group `pulse` or `pulse-access`, but your distro may vary.
|
||||
|
||||
> sudo usermod -aG pulse-access mpd
|
||||
```bash
|
||||
sudo usermod -aG pulse-access mpd
|
||||
```
|
||||
|
||||
Working with mpd will be easier if you have access to its files, so maybe:
|
||||
|
||||
> sudo usermod -aG mpd $USER
|
||||
```bash
|
||||
sudo usermod -aG mpd $USER
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -54,5 +56,7 @@ Working with mpd will be easier if you have access to its files, so maybe:
|
||||
|
||||
Install `mpd-notification` and then start the service:
|
||||
|
||||
> systemctl --user enable mpd-notification
|
||||
```bash
|
||||
systemctl --user enable mpd-notification
|
||||
```
|
||||
|
||||
|
@@ -17,7 +17,9 @@ I couldn't change volume, so in mpd.conf I uncommented the pulse audio lines and
|
||||
|
||||
Also, make sure the user mpd is part of the group pulse:
|
||||
|
||||
> sudo adduser mpd pulse
|
||||
```bash
|
||||
sudo adduser mpd pulse
|
||||
```
|
||||
|
||||
In the audio_output section, try setting the mix_type to "software", not "hardware".
|
||||
|
||||
|
Reference in New Issue
Block a user