Hello All.
Just curious, any chance this can be used with a wake word and i2s audio in one working configuration?
As discovered, one is working only under Arduino environment and another with esp-idf. Cannot use all together.
Hello All.
Just curious, any chance this can be used with a wake word and i2s audio in one working configuration?
As discovered, one is working only under Arduino environment and another with esp-idf. Cannot use all together.
M5 Stack Atom Echo uses Wake Word and MediaPlayer on esp-idf. So it must be possible.
So this is it, i finaly got it working - at least partially:
The XiaoZhi can now be used with esp-idf and microWakeWord.
Next up: Integrate the LED and Display. But for now the device is useable as a normal Voice Assist Device!
ooh, that was my next step, could you share with us please?
well I have it working thanks to some clever people, I have the config saved here of github
Playback is extremely slow though, and dont bother with any type of media, soo patchy, if anyone has any tricks up their sleeves to improve this?
Seems like there are a few problems when you run HA inside with https, i use letsencrypt certs and it looks like there are some problems:
|23:38:52|[E]|[speaker_media_player.pipeline:112]|Media reader encountered an error: ESP_ERR_HTTP_CONNECT|
| --- | --- | --- | --- |
|23:38:52|[E]|[speaker_media_player:328]|The announcement pipeline's file reader encountered an error.|
|23:38:52|[D]|[esp-idf:000]e[1;31m[ann_read]e[0;36m|e[0;31mE (781469) esp-x509-crt-bundle: Failed to verify certificatee[0m|
|23:38:52|[D]|[esp-idf:000]e[1;31m[ann_read]e[0;36m|e[0;31mE (781471) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x3000e[0m|
|23:38:52|[D]|[esp-idf:000]e[1;31m[ann_read]e[0;36m|e[0;31mE (781472) esp-tls: Failed to open new connectione[0m|
|23:38:52|[D]|[esp-idf:000]e[1;31m[ann_read]e[0;36m|e[0;31mE (781472) transport_base: Failed to open a new connectione[0m|
|23:38:52|[D]|[esp-idf:000]e[1;31m[ann_read]e[0;36m|e[0;31mE (781473) HTTP_CLIENT: Connection failed, sock < 0e[0m|
|23:38:52|[E]|[speaker_media_player.pipeline:112]|Media reader encountered an error: ESP_ERR_HTTP_CONNECT|
|23:38:52|[E]|[speaker_media_player:328]|The announcement pipeline's file reader encountered an error.|
|23:38:52|[D]|[esp-idf:000]e[1;31m[ann_read]e[0;36m|e[0;31mE (781526) esp-x509-crt-bundle: Failed to verify certificatee[0m|
|23:38:52|[D]|[esp-idf:000]e[1;31m[ann_read]e[0;36m|e[0;31mE (781529) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x3000e[0m|
|23:38:52|[D]|[esp-idf:000]e[1;31m[ann_read]e[0;36m|e[0;31mE (781529) esp-tls: Failed to open new connectione[0m|
|23:38:52|[D]|[esp-idf:000]e[1;31m[ann_read]e[0;36m|e[0;31mE (781530) transport_base: Failed to open a new connectione[0m|
|23:38:52|[D]|[esp-idf:000]e[1;31m[ann_read]e[0;36m|e[0;31mE (781531) HTTP_CLIENT: Connection failed, sock < 0e[0m|
|23:38:52|[E]|[speaker_media_player.pipeline:112]|Media reader encountered an error: ESP_ERR_HTTP_CONNECT|
|23:38:52|[E]|[speaker_media_player:328]|The announcement pipeline's file reader encountered an error.|
I’ve been told that this could help the stuttering, haven’t tried it yet
buffer_size: 2000000
buffer_duration: 1000ms
Next step is to create a clock and weather screen as the screensaver
Seems like i wasen’t exposing the fullchain cert and that’s why it was a problem.
Now over to other things like finding out why it’s veeeery slow and does nothing i ask it to
ive managed to get the clock on it, will share the code later tonight, once I have ironed out a few bugs
Update: OK so I have added the clock with weather for it, take a look here
you’ll need to copy the weather folder as well , the location you will fid in the yaml. Still a bit of tweaking to go
I can’t seem to find the common.yaml
file that’s referenced in the mini-clock config yaml file. Is that in a different repo?
I took your code and flashed it successfully but nothing happens. Here what logs said:
[20:12:24]ESP-ROM:esp32s3-20210327
[20:12:24]Build:Mar 27 2021
[20:12:24]rst:0x15 (USB_UART_CHIP_RESET),boot:0x0 (DOWNLOAD(USB/UART0))
[20:12:24]Saved PC:0x40041a76
[20:12:24]waiting for download
EDIT: Never mind! Had to reset the device (press button behind) and voila
I created tge common.yaml for wifi etc, you can create it easily, but ill add it in when i get home after the kids sports
Nice, i still dont like the look of the clock but a bit of playing around csn fix that. Let me know if you have sny advances on the looks i am going to change the vouce assist pics to something a bit more funky i think
nice to see there is progress
new readers should be aware there is now 3 different ai balls that looks almost identical at first glance.
the code discussed here is for #2, the others have different pinout but can of course be adjusted
#1 and #3 are in the official xiaozhi repo so pinout is available there. for those who bought these versions.
is there a reason you set network preferences manually and not just use dynamic like most do?
Cos im a network geek and make just about everything static, that way i have more control, or maybe i am a control freak
but you can reserve ip in router/dhcp server and by that making it static if thats what you prefer, no need to do it in the esphome code which is quite messy already with unused substitutions, even more important when posting a link for people to try, also your untraditional move to use common.yaml for the network settings, there’s no need at all for that