Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speaker not working in the last update? #52

Closed
TeDeVPrime opened this issue Dec 22, 2024 · 15 comments · Fixed by #88
Closed

Speaker not working in the last update? #52

TeDeVPrime opened this issue Dec 22, 2024 · 15 comments · Fixed by #88
Labels
audio bug Something isn't working work in progress Someone is working on a solution for this

Comments

@TeDeVPrime
Copy link

I can't seem to make any sound come out of the device. i am using google say to make it say "Hi" or something.... nothing is happening. I get no errors in hasss

@edwardtfn edwardtfn added bug Something isn't working audio work in progress Someone is working on a solution for this labels Dec 22, 2024
@edwardtfn
Copy link
Owner

I could duplicate this. In fact, I got some memory allocation messages and then a crash on the device:

[04:45:39][D][esp-idf:000]: E (841672) I2S: i2s_alloc_dma_buffer(712): Error malloc dma buffer

[04:45:39][D][esp-idf:000]: E (841675) I2S: i2s_realloc_dma_buffer(759): Failed to allocate dma buffer

[04:45:39][D][esp-idf:000]: E (841687) I2S: i2s_set_clk(1687): I2S0 tx DMA buffer malloc failed

[04:45:39][D][esp-idf:000]: E (841699) I2S: i2s_driver_install(1985): I2S set clock failed

I will look at this tomorrow.

@edwardtfn
Copy link
Owner

The code is exactly the same as the one used back in July. It could be that other components are taking more memory, but it's hard to believe the system got out of memory for this.
Looks like something broken on ESPHome side. I will have to test it with a legacy version and take a look on their changes around these components.

@TeDeVPrime
Copy link
Author

@edwardtfn so is it fixed? did you add a delay like they mention and it actually works?

@edwardtfn
Copy link
Owner

No, it isn't fixed yet. 😩
I haven't tried the adding the delay yet, but I will look a bit more for a permanent solution before using a working around.

@edwardtfn
Copy link
Owner

edwardtfn commented Dec 23, 2024

Tests results: (in progress)

TX Ultimate Easy
version
ESPHome
version
Results
Long
Results
Short
2024.12.12 2024.12.2 Crashed Not tested
2024.12.12 2024.10.3 Crashed Not tested
2024.12.12 2024.8.3 Crashed Not tested
2024.12.12 2024.7.3 Crashed Not tested
0.0.3 2024.7.3 Crashed Not tested
0.0.3 2024.6.6 Crashed Works rarely, but crashes most of the times
2024.12.12 2024.6.6 Crashed Works rarely, but crashes most of the times
  • Long announcement: "Hello user, you can play any text on any supported media player!"
  • Short announcement: "Hi"

@edwardtfn
Copy link
Owner

It is failing even with legacy versions, so I have to investigate if HA have changed the call since July (when it was supposed to work fine).

@TeDeVPrime
Copy link
Author

i appreciate the time you are giving this

@mon3y78
Copy link

mon3y78 commented Dec 27, 2024

After update 2024.12.19 -> 2024.12.24 my speaker and vibrate don't work!
I use us 3gang
image

@edwardtfn
Copy link
Owner

After update 2024.12.19 -> 2024.12.24 my speaker and vibrate don't work! I use us 3gang image

Was the Media Player working for you in v2024.12.19?? 😲
Do you mind sharing your device's yaml? Please remove any sensitive info before sharing.

@mon3y78
Copy link

mon3y78 commented Dec 27, 2024

Maybe I’m wrong… I have several TX Ultimate at home. How can I reinstall version 19?
My YAML is the standard one… I have no issues sharing logs or files if needed.
Also, since the latest versions, I no longer have vibration when pressing the buttons.

@edwardtfn
Copy link
Owner

How can I reinstall version 19?

Change ref: main to ref: v2024.12.19 and flash it again.

@edwardtfn
Copy link
Owner

My YAML is the standard one… I have no issues sharing logs or files if needed. Also, since the latest versions, I no longer have vibration when pressing the buttons.

If you running v2024.12.22 or later, your yaml, change file name from TX-Ultimate-Easy-ESPHome_core.yaml to TX-Ultimate-Easy-ESPHome.yaml, but this won't work with v2024.12.19, where you should leave as it is (with core in the name.

@mon3y78
Copy link

mon3y78 commented Dec 27, 2024

With 19 i can see mediaplayer
image
But if i try to send a text it reboot

image

@edwardtfn
Copy link
Owner

Ok, this is the same issue I have here.
I've intentionally removed the Media Player on v2024.12.22 as it was crashing. I'm still working at this to have it back, but for now, I've replaced it by a speaker component, which is available now on the latest version, but don't show an entity in the UI.
I will return with the Media Player as soon I can find a solution for this.
I've also break the system into core, standard and addon. This was the intentional since the beginning, but I couldn't have time to work at this before. The core package includes only the very minimum for your panel to work, so vibration, relays and speaker are not there. Those all have being moved to standard package, so in order to have those, you must either add TX-Ultimate-Easy-ESPHome_standard.yaml or remove core from your file name to access a file which includes both core and standard.
Please use the example in the repo to review your device's yaml: https://github.com/edwardtfn/TX-Ultimate-Easy/blob/main/TX-Ultimate-Easy-ESPHome.yaml

@edwardtfn edwardtfn linked a pull request Jan 4, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio bug Something isn't working work in progress Someone is working on a solution for this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants