Re: Peppy player
It happens with playing radio and audio files. It peaks frequently. Is there a property I can adjust in the configuration to change the behaviour?
- peppy.player
- Posts: 392
- Joined: Mon Mar 07, 2016 6:10 am
Re: Peppy player
There is no any property which could control the amplitude.
- t0bit0bsen
- Posts: 4
- Joined: Thu Jun 18, 2020 9:58 am
Re: Peppy player
Have you tried to edit the config.txt in ~/Peppy/screensaver/peppymeter? There is a parameter that is used for normalization of the data:
The values are divided by it in datasource.py. Increasing this value should lower your bars for my understanding. Just give it a try, maybe by setting it to 1000 to see if there's an effect.
Code: Select all
volume.max.in.pipe = 100.0
Re: Peppy player
It works. I changed the value to 200 and the meter does not peak. Thanks.
Re: Peppy player
I am also working on getting a Waveshare 5" DSI screen and an Innomkaer DAT amp to work with Peppy player. I took the image for the 7" official screen, comment out the rotate setting in the /boot/config.txt and did the pi User Configuration. Everything seems to work off the headphone jack. Then I added the hifiberry-amp to the /boot/config.txt and installed the equalizer configuration as documented in the "Expert" doc. changed the default hw setting to 1. The player works but the volume slide does not work. I can mute the sound using the slide but not the volume. I can only adjust the volume using alsamixer. Please help.
Here is the aplay -l output:
pi@raspberrypi:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: sndrpihifiberry [snd_rpi_hifiberry_amp], device 0: HifiBerry AMP HiFi tas5713.1-001b-0 [HifiBerry AMP HiFi tas5713.1-001b-0]
Subdevices: 0/1
Subdevice #0: subdevice #0
Here is the log output:
[2022-07-04 21:53:55,856] {web.py:2243} INFO - 304 GET /parameters (192.168.0.139) 62.75ms
[2022-07-04 21:53:55,863] {web.py:2243} INFO - 304 GET /fonts (192.168.0.139) 4.38ms
[2022-07-04 21:53:55,869] {web.py:2243} INFO - 304 GET /bgr (192.168.0.139) 8.59ms
[2022-07-04 21:53:55,945] {web.py:2243} INFO - 304 GET /bgr (192.168.0.139) 3.46ms
[2022-07-04 21:53:55,946] {web.py:2243} INFO - 304 GET /fonts (192.168.0.139) 1.26ms
[2022-07-04 21:53:55,951] {web.py:2243} INFO - 304 GET /bgr (192.168.0.139) 4.09ms
[2022-07-04 21:53:55,960] {web.py:2243} INFO - 304 GET /labels?language=English-USA (192.168.0.139) 11.55ms
[2022-07-04 21:53:55,961] {web.py:2243} INFO - 304 GET /fonts (192.168.0.139) 8.41ms
[2022-07-04 21:53:55,966] {web.py:2243} INFO - 304 GET /bgr (192.168.0.139) 3.71ms
[2022-07-04 21:54:01,638] {web.py:2243} INFO - 200 GET /timezone (192.168.0.139) 239.33ms
[2022-07-04 21:54:01,682] {diskmanager.py:46} DEBUG - []
[2022-07-04 21:54:01,684] {web.py:2243} INFO - 304 GET /diskmanager/disks (192.168.0.139) 39.95ms
[2022-07-04 21:54:01,889] {web.py:2243} INFO - 304 GET /nasmanager/nases (192.168.0.139) 2.45ms
[2022-07-04 21:54:01,982] {sambautil.py:88} DEBUG - Get shares
[2022-07-04 21:54:01,985] {web.py:2243} INFO - 304 GET /sharefolder/shares (192.168.0.139) 3.81ms
Here is the aplay -l output:
pi@raspberrypi:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: sndrpihifiberry [snd_rpi_hifiberry_amp], device 0: HifiBerry AMP HiFi tas5713.1-001b-0 [HifiBerry AMP HiFi tas5713.1-001b-0]
Subdevices: 0/1
Subdevice #0: subdevice #0
Here is the log output:
[2022-07-04 21:53:55,856] {web.py:2243} INFO - 304 GET /parameters (192.168.0.139) 62.75ms
[2022-07-04 21:53:55,863] {web.py:2243} INFO - 304 GET /fonts (192.168.0.139) 4.38ms
[2022-07-04 21:53:55,869] {web.py:2243} INFO - 304 GET /bgr (192.168.0.139) 8.59ms
[2022-07-04 21:53:55,945] {web.py:2243} INFO - 304 GET /bgr (192.168.0.139) 3.46ms
[2022-07-04 21:53:55,946] {web.py:2243} INFO - 304 GET /fonts (192.168.0.139) 1.26ms
[2022-07-04 21:53:55,951] {web.py:2243} INFO - 304 GET /bgr (192.168.0.139) 4.09ms
[2022-07-04 21:53:55,960] {web.py:2243} INFO - 304 GET /labels?language=English-USA (192.168.0.139) 11.55ms
[2022-07-04 21:53:55,961] {web.py:2243} INFO - 304 GET /fonts (192.168.0.139) 8.41ms
[2022-07-04 21:53:55,966] {web.py:2243} INFO - 304 GET /bgr (192.168.0.139) 3.71ms
[2022-07-04 21:54:01,638] {web.py:2243} INFO - 200 GET /timezone (192.168.0.139) 239.33ms
[2022-07-04 21:54:01,682] {diskmanager.py:46} DEBUG - []
[2022-07-04 21:54:01,684] {web.py:2243} INFO - 304 GET /diskmanager/disks (192.168.0.139) 39.95ms
[2022-07-04 21:54:01,889] {web.py:2243} INFO - 304 GET /nasmanager/nases (192.168.0.139) 2.45ms
[2022-07-04 21:54:01,982] {sambautil.py:88} DEBUG - Get shares
[2022-07-04 21:54:01,985] {web.py:2243} INFO - 304 GET /sharefolder/shares (192.168.0.139) 3.81ms
Re: Peppy player
This is the .asoundrc setting:
pcm.!default {
type plug
slave.pcm myequal;
}
ctl.!default {
type hw card 1
}
pcm.myequal {
type equal;
slave.pcm reformat;
}
pcm.reformat {
type lfloat
slave {
pcm "mypeppy"
format S16_LE
}
}
pcm.mypeppy {
type meter
slave.pcm "plughw:1,0"
scopes.0 peppyalsa
}
ctl.equal {
type equal;
}
pcm_scope.peppyalsa {
type peppyalsa
decay_ms 400
meter "/home/pi/myfifo"
meter_max 100
meter_show 0
spectrum "/home/pi/myfifosa"
spectrum_max 100
spectrum_size 30
}
pcm_scope_type.peppyalsa {
lib /usr/local/lib/libpeppyalsa.so
}
pcm.!default {
type plug
slave.pcm myequal;
}
ctl.!default {
type hw card 1
}
pcm.myequal {
type equal;
slave.pcm reformat;
}
pcm.reformat {
type lfloat
slave {
pcm "mypeppy"
format S16_LE
}
}
pcm.mypeppy {
type meter
slave.pcm "plughw:1,0"
scopes.0 peppyalsa
}
ctl.equal {
type equal;
}
pcm_scope.peppyalsa {
type peppyalsa
decay_ms 400
meter "/home/pi/myfifo"
meter_max 100
meter_show 0
spectrum "/home/pi/myfifosa"
spectrum_max 100
spectrum_size 30
}
pcm_scope_type.peppyalsa {
lib /usr/local/lib/libpeppyalsa.so
}
- peppy.player
- Posts: 392
- Joined: Mon Mar 07, 2016 6:10 am
Re: Peppy player
Hi,
What are your volume.control settings in the file /home/pi/Peppy/config.txt?
It should be something like this:
[volume.control]
type = amixer
amixer.scale = linear
amixer.control = Digital
initial.volume.level =
Here is the wiki page:
https://github.com/project-owner/Peppy. ... me-Control
Regards
What are your volume.control settings in the file /home/pi/Peppy/config.txt?
It should be something like this:
[volume.control]
type = amixer
amixer.scale = linear
amixer.control = Digital
initial.volume.level =
Here is the wiki page:
https://github.com/project-owner/Peppy. ... me-Control
Regards
Re: Peppy player
Yes, it is set to the same as documented.
[volume.control]
type = amixer
amixer.scale = linear
amixer.control = Digital
initial.volume.level =
One thing that I observe is that there is no audio coming out from playing the audiobooks. If I check the alsamixer, the master volume slide does not adjust the sound level. The master volume slide does adjust the sound level when playing radio. Also if I select the DAT using F6 in the alsamixer, it does not show the hifiberry, only the master control is shown. The volume slide can mute or unmute the audio.
[volume.control]
type = amixer
amixer.scale = linear
amixer.control = Digital
initial.volume.level =
One thing that I observe is that there is no audio coming out from playing the audiobooks. If I check the alsamixer, the master volume slide does not adjust the sound level. The master volume slide does adjust the sound level when playing radio. Also if I select the DAT using F6 in the alsamixer, it does not show the hifiberry, only the master control is shown. The volume slide can mute or unmute the audio.
- peppy.player
- Posts: 392
- Joined: Mon Mar 07, 2016 6:10 am
Re: Peppy player
What is the control name which works in alsamixer? If it's Master it should be defined in the configuration file:
amixer.control = Master
amixer.control = Master
Re: Peppy player
I changed the setting as you suggested. There is still no sound coming out when playing the audiobooks. However, the Master slide in the alsamixer now changes as the volume slide is adjusted. The VU meter also functions when playing the audio book. Definitely there is sound outputting but not getting to the amp. Only audio books is not working. The alsamixer now shows 3 slides, Master, PCM and channels. The PCM is at 100<>100 and channels is at 88<>88.
Peppy.log:
i@raspberrypi:~/Peppy $ cat peppy.log
[2022-07-05 21:08:27,694] {web.py:2243} INFO - 200 GET /parameters (192.168.0.139) 32.68ms
[2022-07-05 21:08:27,703] {peppy.py:372} DEBUG - Audio Server Started
[2022-07-05 21:08:27,708] {web.py:2243} INFO - 304 GET /labels?language=English-USA (192.168.0.139) 8.25ms
[2022-07-05 21:08:27,870] {collector.py:121} DEBUG - Collection database not found
[2022-07-05 21:08:29,891] {connectionpool.py:815} DEBUG - Starting new HTTPS connection (1): api.discogs.com:443
[2022-07-05 21:08:30,126] {connectionpool.py:393} DEBUG - https://api.discogs.com:443 "GET /database/search?type=master&q=Lanner%20-%20Polka%2C%20%27Hans%20J%C3%B6rgel%2C%27%20Op.%20194&page=1&per_page=2&token=RtZmsbvvoXVQxBwXtYDkbNIOXWkeGILJeyriGmDL&token=RtZmsbvvoXVQxBwXtYDkbNIOXWkeGILJeyriGmDL HTTP/1.1" 200 None
[2022-07-05 21:08:58,494] {bookplayer.py:238} DEBUG - http://www.archive.org/download/huckleb ... n_64kb.mp3
[2022-07-05 21:08:59,446] {timeslider.py:113} DEBUG - stop timer
[2022-07-05 21:08:59,747] {timeslider.py:105} DEBUG - start timer
[2022-07-05 21:09:19,553] {util.py:1101} DEBUG - No script name
[2022-07-05 21:09:31,450] {util.py:1101} DEBUG - No script name
[2022-07-05 21:09:36,428] {bookplayer.py:238} DEBUG - http://www.archive.org/download/huckleb ... n_64kb.mp3
[2022-07-05 21:09:37,429] {timeslider.py:113} DEBUG - stop timer
[2022-07-05 21:09:37,730] {timeslider.py:105} DEBUG - start timer
[2022-07-05 21:09:53,640] {bookplayer.py:238} DEBUG - http://www.archive.org/download/huckleb ... n_64kb.mp3
[2022-07-05 21:09:55,596] {timeslider.py:113} DEBUG - stop timer
[2022-07-05 21:09:55,897] {timeslider.py:105} DEBUG - start timer
[2022-07-05 21:10:03,709] {util.py:1101} DEBUG - No script name
[2022-07-05 21:10:11,511] {util.py:1101} DEBUG - No script name
[2022-07-05 21:11:03,148] {bookplayer.py:238} DEBUG - http://www.archive.org/download/huckleb ... n_64kb.mp3
[2022-07-05 21:11:04,204] {timeslider.py:113} DEBUG - stop timer
[2022-07-05 21:11:04,505] {timeslider.py:105} DEBUG - start timer
[2022-07-05 21:12:19,992] {util.py:1101} DEBUG - No script name
pi
Peppy.log:
i@raspberrypi:~/Peppy $ cat peppy.log
[2022-07-05 21:08:27,694] {web.py:2243} INFO - 200 GET /parameters (192.168.0.139) 32.68ms
[2022-07-05 21:08:27,703] {peppy.py:372} DEBUG - Audio Server Started
[2022-07-05 21:08:27,708] {web.py:2243} INFO - 304 GET /labels?language=English-USA (192.168.0.139) 8.25ms
[2022-07-05 21:08:27,870] {collector.py:121} DEBUG - Collection database not found
[2022-07-05 21:08:29,891] {connectionpool.py:815} DEBUG - Starting new HTTPS connection (1): api.discogs.com:443
[2022-07-05 21:08:30,126] {connectionpool.py:393} DEBUG - https://api.discogs.com:443 "GET /database/search?type=master&q=Lanner%20-%20Polka%2C%20%27Hans%20J%C3%B6rgel%2C%27%20Op.%20194&page=1&per_page=2&token=RtZmsbvvoXVQxBwXtYDkbNIOXWkeGILJeyriGmDL&token=RtZmsbvvoXVQxBwXtYDkbNIOXWkeGILJeyriGmDL HTTP/1.1" 200 None
[2022-07-05 21:08:58,494] {bookplayer.py:238} DEBUG - http://www.archive.org/download/huckleb ... n_64kb.mp3
[2022-07-05 21:08:59,446] {timeslider.py:113} DEBUG - stop timer
[2022-07-05 21:08:59,747] {timeslider.py:105} DEBUG - start timer
[2022-07-05 21:09:19,553] {util.py:1101} DEBUG - No script name
[2022-07-05 21:09:31,450] {util.py:1101} DEBUG - No script name
[2022-07-05 21:09:36,428] {bookplayer.py:238} DEBUG - http://www.archive.org/download/huckleb ... n_64kb.mp3
[2022-07-05 21:09:37,429] {timeslider.py:113} DEBUG - stop timer
[2022-07-05 21:09:37,730] {timeslider.py:105} DEBUG - start timer
[2022-07-05 21:09:53,640] {bookplayer.py:238} DEBUG - http://www.archive.org/download/huckleb ... n_64kb.mp3
[2022-07-05 21:09:55,596] {timeslider.py:113} DEBUG - stop timer
[2022-07-05 21:09:55,897] {timeslider.py:105} DEBUG - start timer
[2022-07-05 21:10:03,709] {util.py:1101} DEBUG - No script name
[2022-07-05 21:10:11,511] {util.py:1101} DEBUG - No script name
[2022-07-05 21:11:03,148] {bookplayer.py:238} DEBUG - http://www.archive.org/download/huckleb ... n_64kb.mp3
[2022-07-05 21:11:04,204] {timeslider.py:113} DEBUG - stop timer
[2022-07-05 21:11:04,505] {timeslider.py:105} DEBUG - start timer
[2022-07-05 21:12:19,992] {util.py:1101} DEBUG - No script name
pi
Re: Peppy player
I downloaded the audiobook to my computer and copied one of the chapters to an USB. I plugged that into Peppy and try to play it. It behaves exactly the same as in Audiobooks. Could it be that audio DAT I use needs to resample the audio at a different rate? I had a similar problem using the same card on another app, the vendor suggests that I try resample to 44.1K 16 or32. What can I change in the .asoundrc to resample at different rates?
- peppy.player
- Posts: 392
- Joined: Mon Mar 07, 2016 6:10 am
Re: Peppy player
Regarding audiobooks, I faced the same issue some time ago:
https://support.hifiberry.com/hc/en-us/ ... hite-noise
https://support.hifiberry.com/hc/en-us/ ... hite-noise
Re: Peppy player
I switched to the Iqaudio-dacplus sound card and it plays the audiobook without problem. The Innomaker sound card cannot play the audiobook files. I have emailed Innomaker support and asked for assistance. I have a similar problem with the same sound card playing some online radios in Volumio. Volumio has settings for resampling and that fixed the problem.
Everything seems to be working with the Iqaudio Dac-plus card. I just notice that the sprectrum display does not work. I cannot find any documentation about the spectrum display to do any debugging. What may be the problem?
Everything seems to be working with the Iqaudio Dac-plus card. I just notice that the sprectrum display does not work. I cannot find any documentation about the spectrum display to do any debugging. What may be the problem?
Re: Peppy player
It seems the volume.max.in.pipe change I made to the Peppymeter affects the spectrum. I changed back fom 200 to 100 and it is now working.