Closed hackintoshlover closed 1 year ago
Right now, the UI cannot be used to disable squeezelite, as squeezelite needs to be alive for the audio stack to work. This being a squeezelite centric project, it wasn't a valid user case initially, but @philippe44 made some recent changes to allow this. See: https://github.com/sle118/squeezelite-esp32#additional-configuration-notes-from-the-web-ui
I think you can do this by setting the server name to -disable in the audio tab.
Tried all of the above, nothing works. Even the LMS server does not find the device over network. Could you help with the following: 1) Can the device be used as a simple bluetooth speaker? if yes, how to configure? (since trying all settings, visiting LMS forum and trying all settings, nothing works) 2) Why do i keep getting timeout error on the status page? 3) Why does the artwork (headphone, speaker, etc logo) on top right corner disappear after few seconds? 4) Any step by step guide which is not available over internet?
Thanks for the wonderful project, just frustrated with it not working and want to get it to work.
Tried all of the above, nothing works. Even the LMS server does not find the device over network. Could you help with the following:
- Can the device be used as a simple bluetooth speaker? if yes, how to configure? (since trying all settings, visiting LMS forum and trying all settings, nothing works)
- Why do i keep getting timeout error on the status page?
- Why does the artwork (headphone, speaker, etc logo) on top right corner disappear after few seconds?
- Any step by step guide which is not available over internet?
Thanks for the wonderful project, just frustrated with it not working and want to get it to work.
The LMS server can now find the device, issue is while specifying server do not specify port. 1) Able to connect to bluetooth but packet drops, hence no sound. 2) Timeout eroor is gone. 3) Still disappears. 4) Need to create one i guess.
I am getting no audio over headphones or speaker though.
When you ask if it can be used as a simple speaker, I'm not sure then I follow what you want to do reading the rest.
So you want to use (e.g.) your smartphone to send audio to the device or do you want the device to output its audio to a BT speaker?
It does both, the latter being more a side project. Now if all you want is a BT receiver, I think there are better projects for esp32 than ours.
I know it does both, the problem is it's not working in my setup. 1) I am able to connect to bluetooth (yes, like a simple apeaker) but when i play audio there is no sound and i get the following error:
2) When i connect it to Logitech media server running on raspberry pi, it finds the esp32. But on playing audio i get no sound, also controls don't have any effect.
@hackintoshlover since you have a known a1s board, have you tried the various options for this board from the UI? It's under hardware/preset options. Also, please attach your logs as text rather than screenshots, as they may reveal something that will put us in the right track. There's a download button from the installer UI. We've made a template for submitting requests like this in order to get all the info we need. You can have a look. https://github.com/sle118/squeezelite-esp32/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=
Hi, Thanks for your reply. I have tried all parameter options in the web ui and also tried it over the commandline interface but no luck. My board is Esp32a1s v2.2 with AC101. I have no sound. Will share logs shortly.
Hi, Thanks for your reply. I have tried all parameter options in the web ui and also tried it over the commandline interface but no luck. My board is Esp32a1s v2.2 with AC101. I have no sound. Will share logs shortly.
also share your NVS configuration
Note: the timeouts you are seeing in the logs come from the Web UI itself when it cannot reach the player. This is the case when rebooting, for example. Nothing to worry about.
Hi, Attached is the NVS editor config and Console log. esp-web-tools-logs.txt nvs_config_squeezelite-752520_1695468053600json.txt
Log says it's not an ac101 codec, so no sound indeed
It's working now. I had a wrong datasheet. Tried esp32a1s v2.2 variant 2. How do i control volume using gpio?
Timestamp 3234. This board probably has another wiring for it's i2s or you have something blocking the i2s gpio. They are a mess, to be polite
It's working now. I had a wrong datasheet. Tried esp32a1s v2.2 variant 2. How do i control volume using gpio?
Please share your working NVS so I can compare and possibly add as a known board
Attached is working NVS config.
nvs_config_squeezelite-752520_1695536641363json.txt
1) Could you please help me with GPIO controls for volume and playback?
2) Can chromecast sudio support be added so that it works natively with android as airplay?
Attached is working NVS config.
nvs_config_squeezelite-752520_1695536641363json.txt
- Could you please help me with GPIO controls for volume and playback?
- Can chromecast sudio support be added so that it works natively with android as airplay?
The README is your best friend for the GPIO config.
Chromecast cannot be added, it's a limitation of Chromecast itself. Device must run a certified undocumented Google system which is much more CPU and memory hungry.
I have gone thorough the readme before asking you about the same. The issue is i don't understand where to paste the commands.
1) So a possible config would be
set_GPIO: 21=amp,22=green:0,39=jack:0 a button mapping: [{"gpio":5,"normal":{"pressed":"ACTRLS_TOGGLE"}},{"gpio":18,"pull":true,"shifter_gpio":5,"normal":{"pressed":"ACTRLS_VOLUP"}, "shifted":{"pressed":"ACTRLS_NEXT"}}, {"gpio":23,"pull":true,"shifter_gpio":5,"normal":{"pressed":"ACTRLS_VOLDOWN"},"shifted":{"pressed":"ACTRLS_PREV"}}]
where to do the above? I see
2) "It can also send audio to UPnP, Sonos, ChromeCast and AirPlay speakers/devices." from readme. What does it mean exactly?
3) In the audio section of webui, there is a bluetooth audio option. If i correctly understand, i guess it helps in selcting output audio source. I2S and spdif are on-board. How to use the bluetooth option?
Hi, Just to check i changed audio setting in webui from I2s to bluetooth and started receiving error as in the attached logs and the setup no longer works. Even after changing it back from bluetooth to i2s it still does not work. esp-web-tools-logs.txt
Hi, Just to check i changed audio setting in webui from I2s to bluetooth and started receiving error as in the attached logs and the setup no longer works. Even after changing it back from bluetooth to i2s it still does not work. esp-web-tools-logs.txt
The squeezelite command line is erroneous, as the log says
Yes, i saw that. How to solve it except re-uploading the squeezelite firmware. I did not do anything apart from changing the audio options.
the "it" refers to the LMS capabilities, no the squezeesp32 capabilities
If i get it correctly, you mean LMS is throwing error? If that's the case why is nothing working, not even bluetooth. I just did a code re-upload everything is fine now. Strange.
I have gone thorough the readme before asking you about the same. The issue is i don't understand where to paste the commands.
- So a possible config would be
set_GPIO: 21=amp,22=green:0,39=jack:0 a button mapping: [{"gpio":5,"normal":{"pressed":"ACTRLS_TOGGLE"}},{"gpio":18,"pull":true,"shifter_gpio":5,"normal":{"pressed":"ACTRLS_VOLUP"}, "shifted":{"pressed":"ACTRLS_NEXT"}}, {"gpio":23,"pull":true,"shifter_gpio":5,"normal":{"pressed":"ACTRLS_VOLDOWN"},"shifted":{"pressed":"ACTRLS_PREV"}}]
where to do the above? I see
- "It can also send audio to UPnP, Sonos, ChromeCast and AirPlay speakers/devices." from readme. What does it mean exactly?
- In the audio section of webui, there is a bluetooth audio option. If i correctly understand, i guess it helps in selcting output audio source. I2S and spdif are on-board. How to use the bluetooth option?
Got (1) to work. Could you help with (2) & (3).
Hi, Just to check i changed audio setting in webui from I2s to bluetooth and started receiving error as in the attached logs and the setup no longer works. Even after changing it back from bluetooth to i2s it still does not work. esp-web-tools-logs.txt
Have a careful look at the log, as it provides all the clues to the error you are getting. More specifically, and just as the Linux/Windows versions of the squeezelite would behave, the logging option needs a valid input. In your case, it was set to 'true', which squeezelite does not recognize. The option should be set to something like: all=info under logging level.
Additionally, you can go to the NVS tab and look for the autoexec1 value. This is the command line that will be used when executing squeezelite. You can change it there directly if you want, the web UI is there as an attempt to simplify and document the options.
As for the Bluetooth option, it is there for users with bare WROVER boards with no DAC output. It's technically possible to stream to a Bluetooth speaker from the WROVER as the source, for example to playback some LMS content, but it is not a recommended setup as it doesn't have as much robustness.
Hi, Just to check i changed audio setting in webui from I2s to bluetooth and started receiving error as in the attached logs and the setup no longer works. Even after changing it back from bluetooth to i2s it still does not work. esp-web-tools-logs.txt
Have a careful look at the log, as it provides all the clues to the error you are getting. More specifically, and just as the Linux/Windows versions of the squeezelite would behave, the logging option needs a valid input. In your case, it was set to 'true', which squeezelite does not recognize. The option should be set to something like: all=info under logging level.
Additionally, you can go to the NVS tab and look for the autoexec1 value. This is the command line that will be used when executing squeezelite. You can change it there directly if you want, the web UI is there as an attempt to simplify and document the options.
As for the Bluetooth option, it is there for users with bare WROVER boards with no DAC output. It's technically possible to stream to a Bluetooth speaker from the WROVER as the source, for example to playback some LMS content, but it is not a recommended setup as it doesn't have as much robustness.
Hi, I tried the bluetooth audio option but remained clueless. On switching to bluetooth the esp scans for devices over ble as seen in serial terminal, but how to initiate connection?
Attached is working NVS config. nvs_config_squeezelite-752520_1695536641363json.txt
- Could you please help me with GPIO controls for volume and playback?
- Can chromecast sudio support be added so that it works natively with android as airplay?
The README is your best friend for the GPIO config.
Chromecast cannot be added, it's a limitation of Chromecast itself. Device must run a certified undocumented Google system which is much more CPU and memory hungry.
I definitely buy the chromecast point. Espressif released the matter sdk, qhile developing with the same, it qorks only with wrover boards with upwards of 16mb memory. They have provided google home, apple homekit certification.
Probably that might help.
Hi, I tried the bluetooth audio option but remained clueless. On switching to bluetooth the esp scans for devices over ble as seen in serial terminal, but how to initiate connection?
in the audio section, under Bluetooth Audio Output Options
you set the name and PIN code of the device you want the WROVER to connect to, then you choose "Bluetooth" as the output. That's it. The WROVER will try to connect to the BT speaker and play audio over it. But this is more of an experimental feature and not recommended as we don't regression test this your mileage will vary.
I definitely buy the chromecast point.
Espressif released the matter sdk, qhile developing with the same, it qorks only with wrover boards with upwards of 16mb memory.
They have provided google home, apple homekit certification.
Probably that might help.
I don't understand what you mean by "that might help". AFAIK, matter is for provisioning and controlling smart home devices but that does not make a device compliant with the Chromecast protocol.
Especially, CC run a small web server-like runtime environment where you can load and run your Html +JS "applications". These must be Google signed and hosted and the CC devices request them from Google server to load them in from a reference ID. So you can't just create your own CC player.
Hi, I tried the bluetooth audio option but remained clueless. On switching to bluetooth the esp scans for devices over ble as seen in serial terminal, but how to initiate connection?
in the audio section, under
Bluetooth Audio Output Options
you set the name and PIN code of the device you want the WROVER to connect to, then you choose "Bluetooth" as the output. That's it. The WROVER will try to connect to the BT speaker and play audio over it. But this is more of an experimental feature and not recommended as we don't regression test this your mileage will vary.
That's exactly what i did before posting the question. I had my jbl go speaker in pairing mode, the esp32 scanned it but was not able to connect to it. So i just dropped the idea.
I definitely buy the chromecast point. Espressif released the matter sdk, qhile developing with the same, it qorks only with wrover boards with upwards of 16mb memory. They have provided google home, apple homekit certification. Probably that might help.
I don't understand what you mean by "that might help". AFAIK, matter is for provisioning and controlling smart home devices but that does not make a device compliant with the Chromecast protocol.
Especially, CC run a small web server-like runtime environment where you can load and run your Html +JS "applications". These must be Google signed and hosted and the CC devices request them from Google server to load them in from a reference ID. So you can't just create your own CC player.
What i mean is espressif has provided free (for development purpose) certification for devices. Since matter devices can only be connected if they are certified by the specific device vendor, the espressif repo might help in dealing with certification of devices. Rest you always know better.
Any plans of adding snapcast support though?
We are talking about a totally different type of certification. But anyway, Chromecast is impossible on this device and our system. I don't have plans for snapcast
There is at least one project that I know of for snapcast on the ESP32 and they are building it from the ground up for this very specific purpose. Our goal with this project was always to replace a squeezebox device running in a LMS environment and everything else (Spotify, airplay and Bluetooth) was a nice to have. Our efforts were better spent in supporting various displays and hardware options.
At the end of the day, it would probably be easier to add airplay to a native snapcast player than adding snapcast to our project
Thanks for the help. Eagerly waiting for line-in support on esp32a1s
I have flashed the i2s firmware from https://sle118.github.io/squeezelite-esp32-installer/ to an esp32a1s audio kit. The board boots up. I connected to the webpage and did wifi configuration. From the hardware section i selected the esp32 ac101 config > save > apply
From the Audio Section i changed device type to bluetooth, disabled squeezlite >save>apply.
But upon scanning for bluetooth devices, the device is not showing up. I just keep getting timeout in status page.
Also when the device reboots / i manually reset it, there is some artwork displayed in the top right section which disappears in seconds.
Did i mess up?