Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Pierre-Axel
@pierreaxel_gitlab
Hello to all
I was telling you about a project of speaker based on the squeezelite-ESP32.
Here is the speaker:
For the moment, Squeezelite is very confidential in the project.
But here you know there is an ESP32 in the enclosure. And that it can do much more than Bluetooth :)
the board inside use a TAS5711. It's a 20W amplifier and 2.1
with a 3D printer you can really tweak this
manglav
@manglav
random question - how do I telnet into the esp32?
I'm having a real hard time using the esp32 as a bluetooth source, it's not connecting to the BT speaker
Sébastien
@sle118
ESP32 as bluetooth source is more of a hack and is very often unstable. Lots of wireless traffic on a single radio being one part of it.
you should think of buying a cheap DAC and go wired instead
that being said, you can activate telet under system/services
in the web config
then you can use putty or your favorite terminal to connect to the ESP32 - telnet not ssh
manglav
@manglav

ah my syntax was wrong... that was driving my crazy. I'm in, thanks!
Yeah I have some cheap DACS, but I was more interested in the bluetooth sink aspects of this project.
I have two main issues right now - 1, even if the Bluetooth speaker connects, the script doesn't detect it and states "device discovery failed", and keeps looping. I'm assuming that's a quick fix that checks if something connected out of band somehow during the loop.

Two - When I do have it working, it's actually pretty reliable, but there seems to be a resampling issue, because if I sync it with a laptop squeezelite then the esp32 skips every 5-6 seconds. If I increase the sync delay windows flag to 1000ms, then it doesn't skip at all

Sébastien
@sle118
Bluetooth has its own codec as well, so the system needs to decode audio to pcm, then reencode it for Bluetooth, not counting resampling. From there, the system streams to a BT device and wireless is not as precise as i2s, from a clock standpoint.
manglav
@manglav

yeah, SBC.

I'm really curious about that, when we say it's not as precise from a clock POV, does that mean the variation is audible from micro speedups and slowdowns?

My plan long term is to add a microphone to the end of the analog signal path to do dynamic delay and sync corrections
manglav
@manglav
because even with LMS or Airplay sync, there is always signal delay (either digital or analog), as well as sync delay (hopefully can use beat detection there as well)
Sébastien
@sle118
I'll have to defer to @philippe44 on the end to end signal path and timings, as he put a lot of efforts on fine tuning and optimizing it. As for the BT output, and if I remember correctly, we push packets to a DMA queue, and the DMA calls back when it needs data. But that's as far back as I remember, since I worked on the original BT output queue at the very beginning of the project when I didn't have a proper i2s DAC to work with
In sync, you're very much dependant on the clock that consumes data. We're lucky that in general, the esp32 have a relatively good clock that doesn't drift too much from the expected frequency
If you activate the debug logs on LMS sync, you will see how sync corrects various players
Some play too fast and will cause other players to skip frames forward
manglav
@manglav
"Some play too fast " ah interesting , I had just assumed that the ESP32 was being starved and going slower, but theoretically my other player could have been going too fast
Good to know about the DMA queue, thanks. RE: clock dependence, i think my real question is what is the result of the "drift" from an audio signal POV?
IMO it would vary the pitch (minimally, but adding up over time)
manglav
@manglav
I'll probably move to something that has more horsepower, but I was just so intrigued by this project, I got some boards for $11 USD and got started instantly, pretty cool!
Sébastien
@sle118
The esp32 has a lot for it. Fast boot time, and very little operating system overhead
And you can find some boards with DAC included (ai thinker esp32-a1s) for not a lot much
These boards also have microphones built in if I remember
As for drifting, it is all a matter of clock. Even small drifts can lead to playback speed difference at 44khz*2 (stereo)
DocGalaxyBlock
@potter-91:matrix.org
[m]
Greetings any forum admin/mod here?
I have messud up my account regisration because I used a to long random password... after requesting a new one i am unable to access all edit profile options
Could someone please take a look at my account (potter-91)
Sébastien
@sle118
How did you register here? Not sure that's something we can do
2 replies
Wanzi
@Tao173
Who can share the file of acrylic case ? I need it.
philippe44
@philippe44
I don’t have it, this part was designed by somebody else. I don’t think he sent it to me but I can ask. If you want one case, I have many spares
Paul Webster
@PaulWebster
Do you mean the SqueezeAMP case? If yes then there are stl files at https://github.com/philippe44/SqueezeAMP/tree/3.x/case
Nicolas Aguirre
@naguirre
Hi there, i'm trying to use squeezelite esp32 on Lyrat Mini v1.2 board
i were able to build a firmware with master-cmake and esp-idf v4.0, i'm also able to flash squeezelite-esp32-master-cmake-I2S-4MFlash-32-1.1036.bin on the board
and I configured dac_config and dac_controlset by following instructions found in this issue : philippe44/squeezelite-esp32#28
Nicolas Aguirre
@naguirre
oh ! but this issue is about lyrat and not lyrat mini !
ok, so i2c parameters are not the same, and the DAC is even not the same. Ok i will try again ;)
Sébastien
@sle118
@naguirre try the 4.3 branch. I added a new option in the UI for known boards. If your board isn't listed, let me know the parameters and I'll update the known config list
11 replies
Wanzi
@Tao173
Hello everyone, I found this project (https://github.com/philippe44/SqueezeAMP )by accident. The audio amplifier uses TAS57xx. Does it support TAS5760L? I noticed that TAS57xx is displayed in the bom.
Michael Herger
@michaelherger
Good day everybody! Could anyone imagine that a SqueezeAMP could get into a situation where a soft reboot would not return to stable playback, while a hard reboot (unplug power for a few seconds) would? My LMS system crashed because it run out of diskspace. I therefore took it offline to fix the issue, without rebooting SqueezeAMP. Upon return it would pick up the stream, play a second, re-buffer etc. for any kind of media (local mp3, Spotty, online radio). Soft-reboot wouldn't help. Only after really powering it down for a few seconds the playback returned to normal.
philippe44
@philippe44
It depends what type of soft reset you did. If this is « reboot » on command line, then absolutely it can have that issue as the nothing has its reset line toggled. If it is a reset button pressed, it might happen but is highly unlikely
@wanzi - you would need to check pinout
Michael Herger
@michaelherger
It was the reboot button in the web UI.
philippe44
@philippe44
I’ve not checked the differences with 5760. Now, the dac system is reasonnably configurable, you should be able to make it work. Now if you are referring to the HW pinout and want to use 5760 on the board, one would need to read the datasheet
philippe44
@philippe44
@michaelherger so it was a soft reset and it might not restart properly indeed
Michael Herger
@michaelherger
Ok, good to know!