From 00e3d27774f26269c04f7267ef943888948cac34 Mon Sep 17 00:00:00 2001 From: cpu Date: Sat, 9 Dec 2023 03:22:35 +0100 Subject: [PATCH] updated with Codec Zero --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3aa70b6..842cb98 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Hardware - Buttons connected to the Raspberry pi GPIO as shown in the schema to debounce noisy contacts ![dog-trainer-schema](assets/dog-trainer-schema.png) -- USB speaker with a microphone e.g. [Jabra Speak 410](https://www.jabra.com/_/media/Jabra_VXi_Product-Documentation/Jabra-SPEAK-410-Series/technical-specifications/RevB/Jabra-Speak-410-Techsheet-A4-290420-Web.pdf) +- USB speaker with a microphone e.g. [Jabra Speak 410](https://www.jabra.com/_/media/Jabra_VXi_Product-Documentation/Jabra-SPEAK-410-Series/technical-specifications/RevB/Jabra-Speak-410-Techsheet-A4-290420-Web.pdf) or [Codec Zero](https://www.raspberrypi.com/products/codec-zero/) - microSD card 8GB @@ -56,9 +56,10 @@ First try using default audio device for playback and recording. Edit `dog-train > `nano dog-trainer.py` Skip to the next section `Run it!`. If either playback or recording does not work check your sound cards -> `aplay -L | grep ^hw:CARD=` +> `aplay -L | grep ^hw:CARD=` +`arecord -L | grep ^hw:CARD=` -If your sound device is other then `USB` then change the line `card USB` in ALSA config +Put your sound device name `card USB` or `card Zero` into ALSA config file > `nano .asoundrc` Install the ALSA config file @@ -100,4 +101,7 @@ Set volume for playback and recording Launch soundcard mixer > `alsamixer` -Press F6 to select a soundcard. Find your USB sound device in the list e.g. `Jabra Speak 410 USB`. Press F4 and use up/down arrow keys to set recording volume and repeat also for the playback (F3). Make sure it is not muted. Press (m) to toggle mute. Press ESC to exit. \ No newline at end of file +Press F6 to select a soundcard. Find your USB sound device in the list e.g. `Jabra Speak 410 USB`. Press F4 and use up/down arrow keys to set recording volume and repeat also for the playback (F3). Make sure it is not muted. Press (m) to toggle mute. Press ESC to exit. + +Make it survive after the restart +> `sudo alsactl store` \ No newline at end of file