BigBobbas / ESP32-S3-Box3-Custom-ESPHome

Custom ESPHome config for ESP32-S3-Box-3 with sensors and touchscreen
97 stars 17 forks source link

No audio #93

Closed 23andreas closed 5 days ago

23andreas commented 5 days ago

I'm not getting any sound with voice assistant or when playing media. Did first use it with the standard home assistant software from this page, and the audio was fine so I don't think its a hardware issue.

Looking at the logs it seems to be fetching the audio files correctly. I also opened the audio files manually and they played fine in my browser.

I am using a non default port for HA, 2164

Wake word logs

[16:24:27][D][micro_wake_word:123]: Wake Word 'Alexa' Detected
[16:24:27][D][micro_wake_word:195]: State changed from DETECTING_WAKE_WORD to STOP_MICROPHONE
[16:24:27][D][micro_wake_word:129]: Stopping Microphone
[16:24:27][D][esp_adf_pipeline:070]: Called 'stop' while in RUNNING state.
[16:24:27][D][micro_wake_word:195]: State changed from STOP_MICROPHONE to STOPPING_MICROPHONE
[16:24:27][D][esp_adf_pipeline:448]: [ADFMicrophone] Pipeline changed from RUNNING to ABORTING. (REQ: 1)
[16:24:27][D][adf_audio_element:324]: [i2s_in] Checking State for stopping, got 3
[16:24:27][D][esp-idf:000][resampler]: W (232063) AUDIO_ELEMENT: IN-[resampler] AEL_IO_ABORT
[16:24:27]
[16:24:27][D][esp-idf:000][i2s_in]: W (232068) AUDIO_ELEMENT: OUT-[i2s_in] AEL_IO_ABORT
[16:24:27]
[16:24:27][D][esp-idf:000][i2s_in]: W (232069) AUDIO_ELEMENT: OUT-[i2s_in] AEL_IO_ABORT
[16:24:27]
[16:24:27][D][esp-idf:000][i2s_in]: W (232070) AUDIO_ELEMENT: OUT-[i2s_in] AEL_IO_ABORT
[16:24:27]
[16:24:27][D][adf_audio_element:324]: [pcm_reader] Checking State for stopping, got 3
[16:24:27][D][esp_adf_pipeline:448]: [ADFMicrophone] Pipeline changed from ABORTING to STOPPED. (REQ: 1)
[16:24:27][D][micro_wake_word:195]: State changed from STOPPING_MICROPHONE to IDLE
[16:24:27][D][media_player:061]: 's3-box_media_player' - Setting
[16:24:27][D][media_player:065]:   Command: STOP
[16:24:27][D][esp_adf_pipeline:070]: Called 'stop' while in STOPPED state.
[16:24:27][D][voice_assistant:514]: State changed from IDLE to START_MICROPHONE
[16:24:27][D][voice_assistant:520]: Desired state set to START_PIPELINE
[16:24:27][D][voice_assistant:226]: Starting Microphone
[16:24:27][D][esp_adf_pipeline.microphone:025]: start request while ine state 0
[16:24:27][D][esp_adf_pipeline:060]: Starting request, current state STOPPED
[16:24:27][D][voice_assistant:514]: State changed from START_MICROPHONE to STARTING_MICROPHONE
[16:24:27][D][esp_adf_pipeline:448]: [ADFMicrophone] Pipeline changed from STOPPED to PREPARING. (REQ: 0)
[16:24:27][D][adf_audio_element:108]: Preparing [i2s_in]...
[16:24:27][D][adf_audio_element:108]: Preparing [resampler]...
[16:24:27][D][adf_audio_element:108]: Preparing [pcm_reader]...
[16:24:27][D][esp_audio_processors:124]: Current settings: SRC: rate: 16000, ch: 2 bits: 16, DST: rate: 16000, ch: 1, bits 16
[16:24:27][D][esp_adf_pipeline:342]: wait for preparation, done
[16:24:27][D][esp_adf_pipeline:448]: [ADFMicrophone] Pipeline changed from PREPARING to STARTING. (REQ: 0)
[16:24:27][D][adf_audio_element:165]: Resuming [i2s_in]...
[16:24:27][D][adf_audio_element:172]: [i2s_in] Sending resume command.
[16:24:27][D][esp-idf:000][i2s_in]: I (232130) AUDIO_ELEMENT: [i2s_in] AEL_MSG_CMD_RESUME,state:1
[16:24:27]
[16:24:27][D][adf_audio_element:191]: [i2s_in] Checking State, got 78
[16:24:27][I][esp_adf_pipeline:132]: [ i2s_in ] status: 12
[16:24:27][D][esp-idf:000][resampler]: I (232133) RSP_FILTER: sample rate of source data : 16000, channel of source data : 2, sample rate of destination data : 16000, channel of destination data : 1
[16:24:27]
[16:24:27][D][voice_assistant:280]: Requesting start...
[16:24:27][D][voice_assistant:514]: State changed from START_PIPELINE to STARTING_PIPELINE
[16:24:27][I][esp_adf_pipeline:132]: [ resampler ] status: 12
[16:24:27][D][voice_assistant:535]: Client started, streaming microphone
[16:24:27][D][voice_assistant:514]: State changed from STARTING_PIPELINE to STREAMING_MICROPHONE
[16:24:27][D][voice_assistant:520]: Desired state set to STREAMING_MICROPHONE
[16:24:27][D][voice_assistant:637]: Event Type: 1
[16:24:27][D][voice_assistant:640]: Assist Pipeline running
[16:24:27][D][voice_assistant:637]: Event Type: 3
[16:24:27][D][voice_assistant:651]: STT started
[16:24:27][D][light:036]: 'LCD Backlight' Setting:
[16:24:27][D][light:051]:   Brightness: 100%
[16:24:27][D][light:085]:   Transition length: 0.1s
[16:24:27][D][sensor:094]: 'battery_voltage': Sending state 0.03690 V with 1 decimals of accuracy
[16:24:27][D][sensor:094]: 'Battery level': Sending state 0.00000 % with 0 decimals of accuracy
[16:24:28][D][voice_assistant:637]: Event Type: 11
[16:24:28][D][voice_assistant:793]: Starting STT by VAD
[16:24:30][D][sensor:094]: 'WiFi db': Sending state -53.00000 dBm with 0 decimals of accuracy
[16:24:30][D][sensor:094]: 'WiFi Signal': Sending state 94.00000 % with 0 decimals of accuracy
[16:24:30][D][voice_assistant:637]: Event Type: 12
[16:24:30][D][voice_assistant:797]: STT by VAD end
[16:24:30][D][voice_assistant:514]: State changed from STREAMING_MICROPHONE to STOP_MICROPHONE
[16:24:30][D][voice_assistant:520]: Desired state set to AWAITING_RESPONSE
[16:24:30][D][esp_adf_pipeline:070]: Called 'stop' while in RUNNING state.
[16:24:30][D][voice_assistant:514]: State changed from STOP_MICROPHONE to STOPPING_MICROPHONE
[16:24:30][D][esp_adf_pipeline:448]: [ADFMicrophone] Pipeline changed from RUNNING to ABORTING. (REQ: 1)
[16:24:30][D][voice_assistant:637]: Event Type: 4
[16:24:30][D][voice_assistant:665]: Speech recognised as: "Schedule Lisa."
[16:24:30][D][adf_audio_element:324]: [i2s_in] Checking State for stopping, got 3
[16:24:30][D][esp-idf:000][i2s_in]: W (235432) AUDIO_ELEMENT: OUT-[i2s_in] AEL_IO_ABORT
[16:24:30]
[16:24:30][D][esp-idf:000][i2s_in]: W (235433) AUDIO_ELEMENT: OUT-[i2s_in] AEL_IO_ABORT
[16:24:30]
[16:24:30][D][esp-idf:000][i2s_in]: W (235435) AUDIO_ELEMENT: OUT-[i2s_in] AEL_IO_ABORT
[16:24:30]
[16:24:30][D][esp-idf:000][i2s_in]: W (235436) AUDIO_ELEMENT: OUT-[i2s_in] AEL_IO_ABORT
[16:24:30]
[16:24:30][D][esp-idf:000][i2s_in]: W (235437) AUDIO_ELEMENT: OUT-[i2s_in] AEL_IO_ABORT
[16:24:30]
[16:24:30][D][esp-idf:000][resampler]: W (235439) AUDIO_ELEMENT: OUT-[reampler] AEL_IO_ABORT
[16:24:30]
[16:24:30][D][voice_assistant:637]: Event Type: 2
[16:24:30][D][voice_assistant:729]: Assist Pipeline ended
[16:24:30][D][esp_adf_pipeline:448]: [MediaPlayer] Pipeline changed from STOPPED to PREPARING. (REQ: 0)
[16:24:30][I][adf_media_player:192]: got new pipeline state: 3, while in MP state IDLE
[16:24:30][D][adf_i2s_out:141]: Set final i2s settings: 16000
[16:24:30][D][esp_audio_processors:124]: Current settings: SRC: rate: 16000, ch: 1 bits: 16, DST: rate: 16000, ch: 2, bits 16
[16:24:30][I][adf_media_player:256]: current mp state: ANNOUNCING
[16:24:30][I][adf_media_player:257]: anouncement: yes
[16:24:30][I][adf_media_player:258]: play_intent: yes
[16:24:30][I][adf_media_player:259]: current_uri_: false
[16:24:30][D][esp_audio_sources:103]: Prepare elements called (initial_call)!
[16:24:30][D][esp_audio_sources:137]: Use fixed settings: yes
[16:24:30][D][esp_audio_sources:138]: Streamer status: 6
[16:24:30][D][esp_audio_sources:139]: decoder status: 6
[16:24:30][D][esp_audio_sources:140]: stream uri: http://192.168.1.6:2164/api/tts_proxy/dae2cdcb27a1d1c3b07ba2c7db91480f9d4bfd8f_en-au_f556b0cc52_tts.home_assistant_cloud.mp3
[16:24:30][D][adf_i2s_out:141]: Set final i2s settings: 16000
[16:24:30][D][esp_audio_processors:124]: Current settings: SRC: rate: 16000, ch: 1 bits: 16, DST: rate: 16000, ch: 2, bits 16
[16:24:30][D][adf_audio_element:108]: Preparing [http]...
[16:24:30][D][adf_audio_element:108]: Preparing [decoder]...
[16:24:30][D][adf_audio_element:108]: Preparing [resampler]...
[16:24:30][D][adf_audio_element:108]: Preparing [i2s_out]...
[16:24:30][D][esp_adf_pipeline:448]: [ADFMicrophone] Pipeline changed from ABORTING to STOPPED. (REQ: 1)
[16:24:30][D][esp_audio_sources:193]: Preparation done!
[16:24:30][D][esp_adf_pipeline:342]: wait for preparation, done
[16:24:30][D][esp_adf_pipeline:448]: [MediaPlayer] Pipeline changed from PREPARING to STARTING. (REQ: 0)
[16:24:30][I][adf_media_player:192]: got new pipeline state: 5, while in MP state ANNOUNCING
[16:24:30][I][adf_media_player:256]: current mp state: ANNOUNCING
[16:24:30][I][adf_media_player:257]: anouncement: yes
[16:24:30][I][adf_media_player:258]: play_intent: yes
[16:24:30][I][adf_media_player:259]: current_uri_: false
[16:24:30][D][adf_audio_element:165]: Resuming [http]...
[16:24:30][D][adf_audio_element:172]: [http] Sending resume command.
[16:24:30][D][adf_audio_element:165]: Resuming [decoder]...
[16:24:30][D][adf_audio_element:172]: [decoder] Sending resume command.
[16:24:30][D][adf_audio_element:165]: Resuming [resampler]...
[16:24:30][D][adf_audio_element:172]: [resampler] Sending resume command.
[16:24:30][D][esp-idf:000][resampler]: I (235735) AUDIO_ELEMENT: [resampler] AEL_MSG_CMD_RESUME,state:1
[16:24:30]
[16:24:30][D][adf_audio_element:191]: [http] Checking State, got 79
[16:24:30][D][adf_audio_element:191]: [decoder] Checking State, got 79
[16:24:30][I][esp_adf_pipeline:132]: [ i2s_out ] status: 12
[16:24:30][D][adf_audio_element:191]: [resampler] Checking State, got 79
[16:24:30][I][esp_adf_pipeline:132]: [ resampler ] status: 12
[16:24:30][D][adf_audio_element:191]: [i2s_out] Checking State, got 74
[16:24:30][D][esp_adf_pipeline:448]: [MediaPlayer] Pipeline changed from STARTING to RUNNING. (REQ: 0)
[16:24:30][I][adf_media_player:192]: got new pipeline state: 6, while in MP state ANNOUNCING
[16:24:30][I][adf_media_player:256]: current mp state: ANNOUNCING
[16:24:30][I][adf_media_player:257]: anouncement: yes
[16:24:30][I][adf_media_player:258]: play_intent: yes
[16:24:30][I][adf_media_player:259]: current_uri_: false
[16:24:30][I][esp_audio_sources:033][http]: Receive http event: 2
[16:24:30][I][esp_audio_sources:033][http]: Receive http event: 4
[16:24:31][D][esp-idf:000][http]: I (235756) HTTP_STREAM: total_bytes=20018
[16:24:31]
[16:24:31][I][HTTPStreamReader:230]: Codec Format reported: 3.
[16:24:31][I][esp_adf_pipeline:132]: [ http ] status: 12
[16:24:31][I][esp_adf_pipeline:132]: [ decoder ] status: 12
[16:24:31][I][HTTPStreamReader:240]: [ * ] Receive music info from decoder, sample_rates=24000, bits=16, ch=1
[16:24:31][I][HTTPStreamReader:243]: [ * ] Receive music info from decoder, codec_fmt=3, bps=48000, duration=0, bytes=-1154
[16:24:33][D][esp-idf:000][http]: W (238662) HTTP_STREAM: No more data,errno:0, total_bytes:20018, rlen = 0
[16:24:33]
[16:24:33][I][esp_audio_sources:033][http]: Receive http event: 7
[16:24:33][D][esp-idf:000][http]: I (238664) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
[16:24:33]
[16:24:33][I][esp_adf_pipeline:123]: [ http ] byte_pos: 0, total: 20018
[16:24:33][I][esp_adf_pipeline:132]: [ http ] status: 15
[16:24:33][I][esp_adf_pipeline:135]: current state: RUNNING
[16:24:33][D][esp_adf_pipeline:448]: [MediaPlayer] Pipeline changed from RUNNING to FINISHING. (REQ: 0)
[16:24:33][I][adf_media_player:192]: got new pipeline state: 7, while in MP state ANNOUNCING
[16:24:33][I][adf_media_player:256]: current mp state: ANNOUNCING
[16:24:33][I][adf_media_player:257]: anouncement: yes
[16:24:33][I][adf_media_player:258]: play_intent: yes
[16:24:33][I][adf_media_player:259]: current_uri_: false
[16:24:34][D][binary_sensor:036]: 'Presence detect': Sending state OFF
[16:24:34][D][esp-idf:000][decoder]: I (239701) AUDIO_ELEMENT: IN-[decoder] AEL_IO_DONE,-2
[16:24:34]
[16:24:35][D][esp-idf:000][decoder]: I (240243) MP3_DECODER: Closed
[16:24:35]
[16:24:35][I][esp_adf_pipeline:123]: [ decoder ] byte_pos: 0, total: -1154
[16:24:35][I][esp_adf_pipeline:132]: [ decoder ] status: 15
[16:24:35][I][esp_adf_pipeline:135]: current state: FINISHING
[16:24:35][D][esp-idf:000][resampler]: I (240387) AUDIO_ELEMENT: IN-[resampler] AEL_IO_DONE,-2
[16:24:35]
[16:24:35][I][esp_adf_pipeline:132]: [ resampler ] status: 15
[16:24:35][I][esp_adf_pipeline:135]: current state: FINISHING
[16:24:35][D][esp-idf:000][i2s_out]: I (240435) AUDIO_ELEMENT: IN-[i2s_out] AEL_IO_DONE,-2
[16:24:35]
[16:24:35][I][esp_adf_pipeline:123]: [ i2s_out ] byte_pos: 0, total: 0
[16:24:35][I][esp_adf_pipeline:132]: [ i2s_out ] status: 15
[16:24:35][I][esp_adf_pipeline:135]: current state: FINISHING
[16:24:35][D][esp_adf_pipeline:448]: [MediaPlayer] Pipeline changed from FINISHING to STOPPED. (REQ: 1)
[16:24:35][I][adf_media_player:192]: got new pipeline state: 4, while in MP state ANNOUNCING
[16:24:36][I][adf_media_player:256]: current mp state: IDLE
[16:24:36][I][adf_media_player:257]: anouncement: false
[16:24:36][I][adf_media_player:258]: play_intent: yes
[16:24:36][I][adf_media_player:259]: current_uri_: false
[16:24:37][D][voice_assistant:514]: State changed from STREAMING_RESPONSE to IDLE
[16:24:37][D][voice_assistant:520]: Desired state set to IDLE
[16:24:37][D][micro_wake_word:399]: Resetting buffers and probabilities
[16:24:37][D][micro_wake_word:195]: State changed from IDLE to START_MICROPHONE
[16:24:37][D][micro_wake_word:107]: Starting Microphone
[16:24:37][D][esp_adf_pipeline.microphone:025]: start request while ine state 0
[16:24:37][D][esp_adf_pipeline:060]: Starting request, current state STOPPED
[16:24:37][D][micro_wake_word:195]: State changed from START_MICROPHONE to STARTING_MICROPHONE
[16:24:37][D][esp_adf_pipeline:448]: [ADFMicrophone] Pipeline changed from STOPPED to PREPARING. (REQ: 0)
[16:24:37][D][adf_audio_element:108]: Preparing [i2s_in]...
[16:24:37][D][adf_audio_element:108]: Preparing [resampler]...
[16:24:37][D][adf_audio_element:108]: Preparing [pcm_reader]...
[16:24:37][D][esp_audio_processors:124]: Current settings: SRC: rate: 16000, ch: 2 bits: 16, DST: rate: 16000, ch: 1, bits 16
[16:24:37][D][esp_adf_pipeline:342]: wait for preparation, done
[16:24:37][D][esp_adf_pipeline:448]: [ADFMicrophone] Pipeline changed from PREPARING to STARTING. (REQ: 0)
[16:24:37][D][adf_audio_element:165]: Resuming [i2s_in]...
[16:24:37][D][adf_audio_element:172]: [i2s_in] Sending resume command.
[16:24:37][D][esp-idf:000][i2s_in]: I (242707) AUDIO_ELEMENT: [i2s_in] AEL_MSG_CMD_RESUME,state:1
[16:24:37]
[16:24:37][D][adf_audio_element:191]: [i2s_in] Checking State, got 78
[16:24:37][I][esp_adf_pipeline:132]: [ i2s_in ] status: 12
[16:24:37][D][esp-idf:000][resampler]: I (242710) RSP_FILTER: sample rate of source data : 16000, channel of source data : 2, sample rate of destination data : 16000, channel of destination data : 1
[16:24:37]
[16:24:43][I][esp_adf_pipeline:132]: [ resampler ] status: 12
[16:24:43][D][binary_sensor:036]: 'Presence detect': Sending state ON
[16:24:46][D][binary_sensor:036]: 'Presence detect': Sending state OFF
[16:24:55][D][sensor:094]: 'up_sens': Sending state 259.41599 s with 0 decimals of accuracy
[16:24:57][D][light:036]: 'LCD Backlight' Setting:
[16:24:57][D][light:051]:   Brightness: 30%
[16:24:57][D][light:085]:   Transition length: 0.1s
[16:24:57][D][sensor:094]: 'battery_voltage': Sending state 0.02463 V with 1 decimals of accuracy
[16:24:57][D][sensor:094]: 'Battery level': Sending state 0.00000 % with 0 decimals of accuracy
[16:25:00][D][sensor:094]: 'WiFi db': Sending state -52.00000 dBm with 0 decimals of accuracy
[16:25:00][D][sensor:094]: 'WiFi Signal': Sending state 96.00000 % with 0 decimals of accuracy
[16:25:08][D][sensor:094]: 'S3 Temperature': Sending state 26.61343 °C with 2 decimals of accuracy
[16:25:08][D][sensor:094]: 'S3 Humidity': Sending state 29.73909 % with 2 decimals of accuracy
[16:25:25][D][sensor:094]: 'up_sens': Sending state 289.41299 s with 0 decimals of accuracy
[16:25:27][D][sensor:094]: 'battery_voltage': Sending state 0.04102 V with 1 decimals of accuracy
[16:25:27][D][sensor:094]: 'Battery level': Sending state 0.00000 % with 0 decimals of accuracy
[16:25:30][D][sensor:094]: 'WiFi db': Sending state -52.00000 dBm with 0 decimals of accuracy

Logs when playing media

[16:26:46][D][media_player:061]: 's3-box_media_player' - Setting
[16:26:46][D][media_player:068]:   Media URL: http://192.168.1.6:2164/api/tts_proxy/6581d279ec2fcba789050471a79e1ce241472db7_nb-no_e39b859bcb_cloud.mp3
[16:26:46][D][media_player:074]:  Announcement: yes
[16:26:46][D][adf_media_player:057]: Got control call in state IDLE
[16:26:46][D][adf_media_player:058]: req_track stream uri: http://192.168.1.6:2164/api/tts_proxy/6581d279ec2fcba789050471a79e1ce241472db7_nb-no_e39b859bcb_cloud.mp3
[16:26:46][D][esp_adf_pipeline:060]: Starting request, current state STOPPED
[16:26:46][D][esp_adf_pipeline:448]: [MediaPlayer] Pipeline changed from STOPPED to PREPARING. (REQ: 0)
[16:26:46][I][adf_media_player:192]: got new pipeline state: 3, while in MP state IDLE
[16:26:46][D][adf_i2s_out:141]: Set final i2s settings: 16000
[16:26:46][D][esp_audio_processors:124]: Current settings: SRC: rate: 16000, ch: 1 bits: 16, DST: rate: 16000, ch: 2, bits 16
[16:26:46][I][adf_media_player:256]: current mp state: ANNOUNCING
[16:26:46][I][adf_media_player:257]: anouncement: yes
[16:26:46][I][adf_media_player:258]: play_intent: yes
[16:26:46][I][adf_media_player:259]: current_uri_: false
[16:26:46][D][esp_audio_sources:103]: Prepare elements called (initial_call)!
[16:26:46][D][esp_audio_sources:137]: Use fixed settings: yes
[16:26:46][D][esp_audio_sources:138]: Streamer status: 6
[16:26:46][D][esp_audio_sources:139]: decoder status: 6
[16:26:46][D][esp_audio_sources:140]: stream uri: http://192.168.1.6:2164/api/tts_proxy/6581d279ec2fcba789050471a79e1ce241472db7_nb-no_e39b859bcb_cloud.mp3
[16:26:46][D][adf_i2s_out:141]: Set final i2s settings: 16000
[16:26:46][D][esp_audio_processors:124]: Current settings: SRC: rate: 16000, ch: 1 bits: 16, DST: rate: 16000, ch: 2, bits 16
[16:26:46][D][adf_audio_element:108]: Preparing [http]...
[16:26:46][D][adf_audio_element:108]: Preparing [decoder]...
[16:26:46][D][adf_audio_element:108]: Preparing [resampler]...
[16:26:46][D][adf_audio_element:108]: Preparing [i2s_out]...
[16:26:46][D][esp_audio_sources:193]: Preparation done!
[16:26:46][D][esp_adf_pipeline:342]: wait for preparation, done
[16:26:46][D][esp_adf_pipeline:448]: [MediaPlayer] Pipeline changed from PREPARING to STARTING. (REQ: 0)
[16:26:46][I][adf_media_player:192]: got new pipeline state: 5, while in MP state ANNOUNCING
[16:26:46][I][adf_media_player:256]: current mp state: ANNOUNCING
[16:26:46][I][adf_media_player:257]: anouncement: yes
[16:26:46][I][adf_media_player:258]: play_intent: yes
[16:26:46][I][adf_media_player:259]: current_uri_: false
[16:26:46][D][binary_sensor:036]: 'Presence detect': Sending state ON
[16:26:46][D][adf_audio_element:165]: Resuming [http]...
[16:26:46][D][adf_audio_element:172]: [http] Sending resume command.
[16:26:46][D][adf_audio_element:165]: Resuming [decoder]...
[16:26:46][D][adf_audio_element:172]: [decoder] Sending resume command.
[16:26:46][D][esp-idf:000][decoder]: I (370903) AUDIO_ELEMENT: [decoder] AEL_MSG_CMD_RESUME,state:1
[16:26:46]
[16:26:46][D][esp-idf:000][decoder]: I (370904) MP3_DECODER: MP3 opened
[16:26:46]
[16:26:46][D][adf_audio_element:165]: Resuming [resampler]...
[16:26:46][D][adf_audio_element:172]: [resampler] Sending resume command.
[16:26:46][D][esp-idf:000][resampler]: I (370913) AUDIO_ELEMENT: [resampler] AEL_MSG_CMD_RESUME,state:1
[16:26:46]
[16:26:46][D][esp-idf:000][resampler]: I (370916) RSP_FILTER: sample rate of source data : 16000, channel of source data : 1, sample rate of destination data : 16000, channel of destination data : 2
[16:26:46]
[16:26:46][D][adf_audio_element:165]: Resuming [i2s_out]...
[16:26:46][D][adf_audio_element:172]: [i2s_out] Sending resume command.
[16:26:46][D][esp-idf:000][i2s_out]: I (370922) AUDIO_ELEMENT: [i2s_out] AEL_MSG_CMD_RESUME,state:1
[16:26:46]
[16:26:46][D][adf_audio_element:191]: [http] Checking State, got 79
[16:26:46][D][adf_audio_element:191]: [decoder] Checking State, got 79
[16:26:46][I][esp_adf_pipeline:132]: [ i2s_out ] status: 12
[16:26:46][I][esp_audio_sources:033][http]: Receive http event: 2
[16:26:46][I][esp_audio_sources:033][http]: Receive http event: 4
[16:26:46][D][esp-idf:000][http]: I (370950) HTTP_CLIENT: Body received in fetch header state, 0x3fcd86db, 1841
[16:26:46]
[16:26:46][D][esp-idf:000][http]: I (370953) HTTP_STREAM: total_bytes=39401
[16:26:46]
[16:26:46][D][adf_audio_element:191]: [i2s_out] Checking State, got 74
[16:26:46][D][esp_adf_pipeline:448]: [MediaPlayer] Pipeline changed from STARTING to RUNNING. (REQ: 0)
[16:26:46][I][adf_media_player:192]: got new pipeline state: 6, while in MP state ANNOUNCING
[16:26:46][I][adf_media_player:256]: current mp state: ANNOUNCING
[16:26:46][I][adf_media_player:257]: anouncement: yes
[16:26:46][I][adf_media_player:258]: play_intent: yes
[16:26:46][I][adf_media_player:259]: current_uri_: false
[16:26:46][I][HTTPStreamReader:230]: Codec Format reported: 3.
[16:26:46][I][esp_adf_pipeline:132]: [ http ] status: 12
[16:26:46][I][esp_adf_pipeline:132]: [ decoder ] status: 12
[16:26:46][I][HTTPStreamReader:240]: [ * ] Receive music info from decoder, sample_rates=24000, bits=16, ch=1
[16:26:46][I][HTTPStreamReader:243]: [ * ] Receive music info from decoder, codec_fmt=3, bps=48000, duration=0, bytes=-1241
[16:26:47][D][binary_sensor:036]: 'Presence detect': Sending state OFF
[16:26:53][D][esp-idf:000][http]: W (378697) HTTP_STREAM: No more data,errno:0, total_bytes:39401, rlen = 0
[16:26:53]
[16:26:53][I][esp_audio_sources:033][http]: Receive http event: 7
[16:26:53][D][esp-idf:000][http]: I (378699) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
[16:26:53]
[16:26:53][I][esp_adf_pipeline:123]: [ http ] byte_pos: 0, total: 39401
[16:26:53][I][esp_adf_pipeline:132]: [ http ] status: 15
[16:26:53][I][esp_adf_pipeline:135]: current state: RUNNING
[16:26:53][D][esp_adf_pipeline:448]: [MediaPlayer] Pipeline changed from RUNNING to FINISHING. (REQ: 0)
[16:26:53][I][adf_media_player:192]: got new pipeline state: 7, while in MP state ANNOUNCING
[16:26:53][I][adf_media_player:256]: current mp state: ANNOUNCING
[16:26:53][I][adf_media_player:257]: anouncement: yes
[16:26:53][I][adf_media_player:258]: play_intent: yes
[16:26:53][I][adf_media_player:259]: current_uri_: false
[16:26:54][D][binary_sensor:036]: 'Presence detect': Sending state ON
[16:26:54][D][esp-idf:000][decoder]: I (379736) AUDIO_ELEMENT: IN-[decoder] AEL_IO_DONE,-2
[16:26:54]
[16:26:55][D][esp-idf:000][decoder]: I (380279) MP3_DECODER: Closed
[16:26:55]
[16:26:55][I][esp_adf_pipeline:123]: [ decoder ] byte_pos: 0, total: -1241
[16:26:55][I][esp_adf_pipeline:132]: [ decoder ] status: 15
[16:26:55][I][esp_adf_pipeline:135]: current state: FINISHING
[16:26:55][D][sensor:094]: 'up_sens': Sending state 379.40399 s with 0 decimals of accuracy
[16:26:55][D][esp-idf:000][resampler]: I (380422) AUDIO_ELEMENT: IN-[resampler] AEL_IO_DONE,-2
[16:26:55]
[16:26:55][I][esp_adf_pipeline:132]: [ resampler ] status: 15
[16:26:55][I][esp_adf_pipeline:135]: current state: FINISHING
[16:26:55][D][esp-idf:000][i2s_out]: I (380470) AUDIO_ELEMENT: IN-[i2s_out] AEL_IO_DONE,-2
[16:26:55]
[16:26:55][I][esp_adf_pipeline:123]: [ i2s_out ] byte_pos: 0, total: 0
[16:26:55][I][esp_adf_pipeline:132]: [ i2s_out ] status: 15
[16:26:55][I][esp_adf_pipeline:135]: current state: FINISHING
[16:26:55][D][esp_adf_pipeline:448]: [MediaPlayer] Pipeline changed from FINISHING to STOPPED. (REQ: 1)
[16:26:55][I][adf_media_player:192]: got new pipeline state: 4, while in MP state ANNOUNCING
[16:26:55][I][adf_media_player:256]: current mp state: IDLE
[16:26:55][I][adf_media_player:257]: anouncement: false
[16:26:55][I][adf_media_player:258]: play_intent: yes
[16:26:55][I][adf_media_player:259]: current_uri_: false
[16:26:56][D][binary_sensor:036]: 'Presence detect': Sending state OFF
[16:26:57][D][sensor:094]: 'battery_voltage': Sending state 0.02872 V with 1 decimals of accuracy
[16:26:57][D][sensor:094]: 'Battery level': Sending state 0.00000 % with 0 decimals of accuracy
[16:27:00][D][sensor:094]: 'WiFi db': Sending state -52.00000 dBm with 
23andreas commented 5 days ago

After disconnecting it from my PC and connecting the power cable to the sensor attachment, not directly in the box, it now works 🤷‍♂️

BigBobbas commented 5 days ago

these are the fixes I like 👍 haha - glad you got it sorted and thank you for the update to say it's fixed. Hope you enjoy - and thanks for your support in trying out the project.

23andreas commented 4 days ago

Thank you for creating this!