MrBuddyCasino / ESP32_Alexa

An Alexa Smart Speaker project for the ESP32.
Mozilla Public License 2.0
264 stars 72 forks source link

Nothing coming back from AVS? #11

Closed mano1979 closed 6 years ago

mano1979 commented 6 years ago

When i press the button, the neopixels don't come on, and when i ask something, i get no reaction. I am using the ics-43434 mic and internal dac output. Below is the serial output:

` rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:5544 load:0x40078000,len:0 ho 12 tail 0 room 4 load:0x40078000,len:13716 entry 0x40078fb4 I (30) boot: ESP-IDF v3.1-dev-137-g4f44d16 2nd stage bootloader I (30) boot: compile time 01:04:33 I (30) boot: Enabling RNG early entropy source... I (35) boot: SPI Speed : 40MHz I (40) boot: SPI Mode : DIO I (44) boot: SPI Flash Size : 4MB I (48) boot: Partition Table: I (51) boot: ## Label Usage Type ST Offset Length I (59) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (73) boot: 2 factory factory app 00 00 00010000 00200000 I (81) boot: End of partition table I (85) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x72628 (468520) map I (257) esp_image: segment 1: paddr=0x00082650 vaddr=0x3ffb0000 size=0x06244 ( 25156) load I (267) esp_image: segment 2: paddr=0x0008889c vaddr=0x40080000 size=0x00400 ( 1024) load I (268) esp_image: segment 3: paddr=0x00088ca4 vaddr=0x40080400 size=0x0736c ( 29548) load I (287) esp_image: segment 4: paddr=0x00090018 vaddr=0x400d0018 size=0xedb3c (973628) map I (625) esp_image: segment 5: paddr=0x0017db5c vaddr=0x4008776c size=0x0b2fc ( 45820) load I (644) esp_image: segment 6: paddr=0x00188e60 vaddr=0x400c0000 size=0x00000 ( 0) load I (656) boot: Loaded app from partition at offset 0x10000 I (656) boot: Disabling RNG early entropy source... I (657) cpu_start: Pro cpu up. I (660) cpu_start: Starting app cpu, entry point is 0x40081060 I (0) cpu_start: App cpu up. I (671) heap_init: Initializing. RAM available for dynamic allocation: I (678) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (684) heap_init: At 3FFC1BD0 len 0001E430 (121 KiB): DRAM I (690) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM I (696) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (703) heap_init: At 40092A68 len 0000D598 (53 KiB): IRAM I (709) cpu_start: Pro cpu start user code I (56) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (57) main: starting app_main() W (57) main: 168: - RAM left 239196 E (57) main: MAC address: 30:ae:a4:37:f1:74 I (97) main: hardware initialized I (97) renderer: init I2S mode 2, port 0, 16 bit, 44100 Hz I (97) I2S: queue free spaces: 1 I (97) I2S: DMA Malloc info, datalen=blocksize=256, dma_buf_count=32 I (107) I2S: PLL_D2: Req RATE: 44100, real rate: 2777.000, BITS: 16, CLKM: 30, BCK: 60, MCLK: 30.234, SCLK: 88864.000000, diva: 64, divb: 14 I (117) I2S: DMA Malloc info, datalen=blocksize=512, dma_buf_count=32 I (127) I2S: PLL_D2: Req RATE: 16000, real rate: 16025.000, BITS: 32, CLKM: 39, BCK: 4, MCLK: 4096000.000, SCLK: 1025600.000000, diva: 64, divb: 4 W (137) main: 194: - RAM left 193168 I (137) alexa: 572: - RAM left 193168 I (147) asio: adding task: led_ui I (157) wifi: wifi firmware version: 275023b I (157) wifi: config NVS flash: enabled I (157) wifi: config nano formating: disabled I (167) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (177) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (197) wifi: Init dynamic tx buffer num: 32 I (197) wifi: Init data frame dynamic rx buffer num: 32 I (197) wifi: Init management frame dynamic rx buffer num: 32 I (197) wifi: wifi driver task: 3ffd2898, prio:23, stack:4096 I (197) wifi: Init static rx buffer num: 10 I (207) wifi: Init dynamic rx buffer num: 32 I (207) wifi: wifi power manager task: 0x3ffd74d8 prio: 21 stack: 2560 I (257) phy: phy_version: 366.0, ba9923d, Oct 31 2017, 18:06:17, 0, 0 I (257) wifi: mode : sta (30:ae:a4:37:f1:74) I (267) asio: adding task:  I (267) wifi: received wifi event 2 I (267) asio: adding task: refresh_auth_token I (267) wifi: connected successfully W (277) alexa: 592: - RAM left 162356 I (287) asio: adding task: downchannel I (287) asio: adding task: send_initial_state W (297) led_ui: UI initialized on pin 4 I (297) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:1  E (317) led_ui: setColors 0=1, 1=0 I (387) wifi: n:6 0, o:1 0, ap:255 255, sta:6 0, prof:1 I (1377) wifi: state: init -> auth (b0) I (1387) wifi: state: auth -> assoc (0) I (1387) wifi: state: assoc -> run (10) I (1677) wifi: connected with UPC247731094, channel 6 I (1687) wifi: received wifi event 4 I (2617) event: sta ip: 192.168.192.54, mask: 255.255.255.0, gw: 192.168.192.1 I (2617) wifi: received wifi event 7 I (2627) sntp: Initializing SNTP I (2627) sntp: Waiting for system time to be set... (1/40) I (2827) nghttp2: new nghttp session, uri: https://alexa.boeckling.net/auth/refresh/MYAUTHCODE I (2867) nghttp2: Writing HTTP request... I (2867) nghttp2: Request headers: I (2877) nghttp2: :method: GET I (2877) nghttp2: :scheme: https I (2887) nghttp2: :authority: alexa.boeckling.net I (2887) nghttp2: :path: /auth/refresh/MYAUTHCODE

I (2937) nghttp2: created new stream: 1 W (2947) nghttp2: 859: - RAM left 139144 I (2947) asio: adding task: alexa.boeckling.net Algorithms: I (2957) asio: removing task: refresh_auth_token W (2957) asio: 96: - RAM left 131628 connecting to: 188.226.169.151 connected. WARNING: no configured trust anchor W (3027) led_ui: switching anim E (3027) led_ui: setColors 0=-2146289036, 1=1073545904 I (4387) wifi: pm start, type:0

Handshake completed version: TLS 1.2 cipher suite: ECDHE_RSA_WITH_AES_256_GCM_SHA384 ECDHE curve: secp384r1 (P-384) secure renegotiation: yes protocol name (ALPN): h2 I (4517) nghttp2: frame received: 4 I (4517) nghttp2: frame received: 8 I (4547) nghttp2: frame received: 4 I (5117) nghttp2: Response headers for stream ID=1: I (5117) nghttp2: :status: 200 I (5117) nghttp2: server: nginx/1.10.3 (Ubuntu) I (5117) nghttp2: date: Sat, 30 Dec 2017 00:29:44 GMT I (5127) nghttp2: content-type: text/plain; charset=utf-8 I (5127) nghttp2: content-length: 1169 I (5137) nghttp2: strict-transport-security: max-age=63072000; includeSubdomains I (5137) nghttp2: x-frame-options: DENY I (5147) nghttp2: x-content-type-options: nosniff

I (5147) nghttp2: All headers received I (5157) nghttp2: frame received: 0 I (5157) alexa: new auth_token: MYAUTHCODE I (5217) asio_http2: closed stream 1 with error_code=0 E (5217) asio_http2: no more open streams, terminating session E (5227) asio_http2: closing stream I (5227) asio_handler_ssl: asio_ssl_handle_close I (5237) nghttp2: freeing http2_session_data W (5237) nghttp2: 194: - RAM left 157984 W (5247) asio: 96: - RAM left 158044 I (5257) nghttp2: new nghttp session, uri: https://avs-alexa-eu.amazon.com/v20160207/directives I (5257) nghttp2: Writing HTTP request... I (5267) nghttp2: Request headers: I (5267) nghttp2: :method: GET I (5267) nghttp2: :scheme: https I (5277) nghttp2: :authority: avs-alexa-eu.amazon.com I (5277) nghttp2: :path: /v20160207/directives I (5287) nghttp2: authorization: Bearer MYAUTHCODE

I (5337) nghttp2: created new stream: 1 W (5347) nghttp2: 859: - RAM left 136620 I (5347) asio: adding task: avs-alexa-eu.amazon.com Algorithms: I (5357) asio: removing task: downchannel W (5357) asio: 96: - RAM left 130424 connecting to: 54.239.39.74 connected. WARNING: no configured trust anchor Handshake completed version: TLS 1.2 cipher suite: ECDHE_RSA_WITH_AES_256_GCM_SHA384 ECDHE curve: secp256r1 (P-256) secure renegotiation: yes protocol name (ALPN): h2 I (6127) alexa: frame received: 4 I (6157) alexa: frame received: 8 I (6187) alexa: frame received: 4 I (6217) nghttp2: Response headers for stream ID=1: :status: 200 access-control-allow-origin: * x-amzn-requestid: 06****ae-1 content-type: multipart/related; boundary=------abcde123; type=application/json I (6247) handler_directives: init multipart_parser: --------abcde123

I (6257) alexa: All headers received for stream 1 I (6267) alexa: setting DOWNCHAN_CONNECTED_BIT I (6267) nghttp2: new nghttp stream, uri: https://avs-alexa-eu.amazon.com/v20160207/events I (6277) nghttp2: Request headers: I (6277) nghttp2: :method: POST I (6287) nghttp2: :scheme: https I (6287) nghttp2: :authority: avs-alexa-eu.amazon.com I (6297) nghttp2: :path: /v20160207/events I (6297) nghttp2: authorization: Bearer MYAUTHCODE I (6357) nghttp2: content-type: multipart/form-data; boundary="nghttp2123456789"

I (6367) nghttp2: created new stream: 3 I (6367) nghttp2: new nghttp stream, uri: https://avs-alexa-eu.amazon.com/v20160207/events I (6377) nghttp2: Request headers: I (6377) nghttp2: :method: POST I (6387) nghttp2: :scheme: https I (6387) nghttp2: :authority: avs-alexa-eu.amazon.com I (6397) nghttp2: :path: /v20160207/events I (6397) nghttp2: authorization: Bearer MYAUTHCODE I (6447) nghttp2: content-type: multipart/form-data; boundary="nghttp2123456789"

I (6457) nghttp2: created new stream: 5 I (6467) audio_player: RAM left 94148 I (6467) mad_decoder: decoder start I (6477) audio_player: created decoder task: mp3_decoder_task I (7877) asio: removing task: send_initial_state W (7877) asio: 96: - RAM left 69040

--nghttp2123456789

Content-Disposition: form-data; name="metadata"

Content-Type: application/json; charset=UTF-8

{"context":[{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":false}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"ALEXA"}}],"event":{"header":{"namespace":"System","name":"SynchronizeState","messageId":"1"},"payload":{}}}

--nghttp2123456789--

--nghttp2123456789

Content-Disposition: form-data; name="metadata"

Content-Type: application/json; charset=UTF-8

{"event":{"header":{"namespace":"Settings","name":"SettingsUpdated","messageId":"2"},"payload":{"settings":[{"key":"locale","value":"en-US"}]}}}

--nghttp2123456789--

I (8397) nghttp2: Response headers for stream ID=5: :status: 204 access-control-allow-origin: * x-amzn-requestid: 06****ae-5

I (8427) alexa: All headers received for stream 5 I (8437) alexa: closed stream 5 with error_code=0 I (8437) asio_http2: closed stream 5 with error_code=0 I (8997) mad_decoder: decoder stopped I (8997) mad_decoder: MAD decoder stack: 528  W (9007) led_ui: switching anim E (9007) led_ui: setColors 0=-2146288040, 1=1073545920 I (9907) nghttp2: Response headers for stream ID=3: :status: 200 access-control-allow-origin: * x-amzn-requestid: 06****ae-1 content-type: multipart/related;boundary=------abcde123;start=metadata.1514429072123;type="application/json" I (9947) handler_events: init multipart_parser: --------abcde123

I (9947) alexa: All headers received for stream 3 events data: --------abcde123

Content-Type: application/json; charset=UTF-8

{"directive":{"header":{"namespace":"System","name":"SetEndpoint","messageId":"6d6afdf1-bec4-453a-840f-278a052f32f1"},"payload":{"endpoint":"https://avs-alexa-na.amazon.com"}}}

--------abcde123--

on_part_data_begin on_header_field Content-Type on_header_value application/json; charset=UTF-8 directive detected on_headers_complete on_part_data_end handle_directive: {"directive":{"header":{"namespace":"System","name":"SetEndpoint","messageId":"6d6afdf1-bec4-453a-840f-278a052f32f1"},"payload":{"endpoint":"https://avs-alexa-na.amazon.com"}}} on_body_end I (10057) alexa: frame received: 0 I (10097) alexa: frame received: 0 I (10097) alexa: closed stream 3 with error_code=0 I (10097) asio_http2: closed stream 3 with error_code=0 GPIO[0] intr, val: 1 I (33077) nghttp2: new nghttp stream, uri: https://avs-alexa-eu.amazon.com/v20160207/events I (33077) nghttp2: Request headers: I (33077) nghttp2: :method: POST I (33077) nghttp2: :scheme: https I (33087) nghttp2: :authority: avs-alexa-eu.amazon.com I (33087) nghttp2: :path: /v20160207/events I (33097) nghttp2: authorization: Bearer MYAUTHCODE I (33147) nghttp2: content-type: multipart/form-data; boundary="nghttp2123456789"

I (33157) nghttp2: created new stream: 7

--nghttp2123456789

Content-Disposition: form-data; name="metadata"

Content-Type: application/json; charset=UTF-8

{"context":[{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":false}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"ALEXA"}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"3","dialogRequestId":"1"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"TAP"}}}}

--nghttp2123456789

Content-Disposition: form-data; name="audio"

Content-Type: application/octet-stream

I (33257) renderer: changing sample rate from 44100 to 16000 I (33257) I2S: PLL_D2: Req RATE: 20000, real rate: 1262.000, BITS: 16, CLKM: 66, BCK: 60, MCLK: 66.667, SCLK: 40384.000000, diva: 64, divb: 42 bytes_out: 512 bytes_out: 512 W (33297) led_ui: switching anim E (33297) led_ui: setColors 0=0, 1=1073647076 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (33547) led_ui: setColors 0=687, 1=0 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (33797) led_ui: setColors 0=-2146288040, 1=1073545920 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 256 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 E (34047) led_ui: setColors 0=1071, 1=0 bytes_out: 512 bytes_out: 256 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (34297) led_ui: setColors 0=-2146288040, 1=1073545920 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 E (34547) led_ui: setColors 0=1071, 1=0 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (34797) led_ui: setColors 0=-2146288040, 1=1073545920 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (35047) led_ui: setColors 0=687, 1=0 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (35297) led_ui: setColors 0=-2146288040, 1=1073545920 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (35547) led_ui: setColors 0=687, 1=0 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (35797) led_ui: setColors 0=-2146288040, 1=1073545920 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (36047) led_ui: setColors 0=687, 1=0 bytes_out: 512 bytes_out: 256 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 256 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 E (36297) led_ui: setColors 0=0, 1=1073645408 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (36547) led_ui: setColors 0=-2146288040, 1=1073545920 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (36797) led_ui: setColors 0=-2146288040, 1=1073545920 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 E (37047) led_ui: setColors 0=943, 1=0 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 256 bytes_out: 512 bytes_out: 512 E (37297) led_ui: setColors 0=-2146288040, 1=1073545920 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (37547) led_ui: setColors 0=687, 1=0 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (37797) led_ui: setColors 0=0, 1=1073645152 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (38047) led_ui: setColors 0=687, 1=0 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 256 bytes_out: 512 bytes_out: 128 E (38297) led_ui: setColors 0=-2146288040, 1=1073545920 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 256 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 E (38547) led_ui: setColors 0=687, 1=0 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 512 bytes_out: 512 bytes_out: 384 bytes_out: 512 bytes_out: 128 E (38797) led_ui: setColors 0=-2146288040, 1=1073545920 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 128 bytes_out: 512 bytes_out: 256 directives data:

--------abcde123

Content-Type: application/json

{"directive":{"header":{"namespace":"SpeechRecognizer","name":"StopCapture","messageId":"27be99a3-76c9-4a5e-8758-72395294294e"},"payload":{}}}

--------abcde123

on_part_data_begin on_header_field Content-Type on_header_value application/json on_headers_complete on_multipart_data: {"directive":{"header":{"namespace":"SpeechRecognizer","name":"StopCapture","messageId":"27be99a3-76c9-4a5e-8758-72395294294e"},"payload":{}}} W (38887) handler_directives: StopCapture detected on_part_data_end on_part_data_begin I (38897) alexa: frame received: 0 W (38907) led_ui: switching anim E (38907) led_ui: setColors 0=216, 1=1073628241 E (38917) event_send_speech: DONE

I (39017) nghttp2: Response headers for stream ID=7: :status: 200 access-control-allow-origin: * x-amzn-requestid: 06****ae-1 content-type: multipart/related;boundary=------abcde123;start=metadata.1514430344234;type="application/json" I (39057) handler_events: init multipart_parser: --------abcde123

I (39057) alexa: All headers received for stream 7 events data: --------abcde123

Content-Type: application/json; charset=UTF-8

{"directive":{"header":{"namespace":"System","name":"SetEndpoint","messageId":"cf7568c5-df5e-482d-b210-1e67c476266c","dialogRequestId":"1"},"payload":{"endpoint":"https://avs-alexa-na.amazon.com"}}}

--------abcde123--

on_part_data_begin on_header_field Content-Type on_header_value application/json; charset=UTF-8 directive detected on_headers_complete on_part_data_end handle_directive: {"directive":{"header":{"namespace":"System","name":"SetEndpoint","messageId":"cf7568c5-df5e-482d-b210-1e67c476266c","dialogRequestId":"1"},"payload":{"endpoint":"https://avs-alexa-na.amazon.com"}}} on_body_end I (39177) alexa: frame received: 0 I (39207) alexa: frame received: 0 I (39207) alexa: closed stream 7 with error_code=0 I (39207) asio_http2: closed stream 7 with error_code=0 `

MrBuddyCasino commented 6 years ago

You can listen to the audio in the Alexa app. Does it sound right?

mano1979 commented 6 years ago

The app says it is not online. However, i saw that same message with AlexaPi on a raspberry pi, wich worked great.

Is the app supposed to see the alexa client by itself?

mano1979 commented 6 years ago

I managed to fix the "Offline" issue by changing the server location from europe to US. Nkw it shows online.

But that is it. I see no commands in the app (voice recordings)

mano1979 commented 6 years ago

Here is the output from booting:


rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5544
load:0x40078000,len:0
ho 12 tail 0 room 4
load:0x40078000,len:13716
entry 0x40078fb4
I (30) boot: ESP-IDF v3.1-dev-137-g4f44d16 2nd stage bootloader
I (30) boot: compile time 06:11:43
I (30) boot: Enabling RNG early entropy source...
I (36) boot: SPI Speed      : 40MHz
I (40) boot: SPI Mode       : DIO
I (44) boot: SPI Flash Size : 4MB
I (48) boot: Partition Table:
I (52) boot: ## Label            Usage          Type ST Offset   Length
I (59) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (67) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (74) boot:  2 factory          factory app      00 00 00010000 00200000
I (82) boot: End of partition table
I (86) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x72638 (468536) map
I (257) esp_image: segment 1: paddr=0x00082660 vaddr=0x3ffb0000 size=0x06244 ( 25156) load
I (267) esp_image: segment 2: paddr=0x000888ac vaddr=0x40080000 size=0x00400 (  1024) load
I (268) esp_image: segment 3: paddr=0x00088cb4 vaddr=0x40080400 size=0x0735c ( 29532) load
I (287) esp_image: segment 4: paddr=0x00090018 vaddr=0x400d0018 size=0xedb3c (973628) map
I (626) esp_image: segment 5: paddr=0x0017db5c vaddr=0x4008775c size=0x0b30c ( 45836) load
I (645) esp_image: segment 6: paddr=0x00188e70 vaddr=0x400c0000 size=0x00000 (     0) load
I (657) boot: Loaded app from partition at offset 0x10000
I (657) boot: Disabling RNG early entropy source...
I (658) cpu_start: Pro cpu up.
I (661) cpu_start: Starting app cpu, entry point is 0x40081060
I (0) cpu_start: App cpu up.
I (672) heap_init: Initializing. RAM available for dynamic allocation:
I (678) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (684) heap_init: At 3FFC1BD0 len 0001E430 (121 KiB): DRAM
I (691) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (697) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (703) heap_init: At 40092A68 len 0000D598 (53 KiB): IRAM
I (710) cpu_start: Pro cpu start user code
I (56) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (58) main: starting app_main()
W (58) main: 168: - RAM left 239196
E (58) main: MAC address: 30:ae:a4:38:81:2c
I (98) main: hardware initialized
I (98) renderer: init I2S mode 2, port 0, 16 bit, 44100 Hz
I (98) I2S: queue free spaces: 1
I (98) I2S: DMA Malloc info, datalen=blocksize=256, dma_buf_count=32
I (108) I2S: PLL_D2: Req RATE: 44100, real rate: 2777.000, BITS: 16, CLKM: 30, BCK: 60, MCLK: 30.234, SCLK: 88864.000000, diva: 64, divb: 14
I (118) I2S: DMA Malloc info, datalen=blocksize=512, dma_buf_count=32
I (128) I2S: PLL_D2: Req RATE: 16000, real rate: 16025.000, BITS: 32, CLKM: 39, BCK: 4, MCLK: 4096000.000, SCLK: 1025600.000000, diva: 64, divb: 4
W (138) main: 194: - RAM left 193168
I (138) alexa: 572: - RAM left 193168
I (148) asio: adding task: led_ui
I (158) wifi: wifi firmware version: 275023b
I (158) wifi: config NVS flash: enabled
I (158) wifi: config nano formating: disabled
I (168) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (178) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (188) wifi: Init dynamic tx buffer num: 32
I (188) wifi: Init data frame dynamic rx buffer num: 32
I (188) wifi: Init management frame dynamic rx buffer num: 32
I (188) wifi: wifi driver task: 3ffd2898, prio:23, stack:4096
I (198) wifi: Init static rx buffer num: 10
I (198) wifi: Init dynamic rx buffer num: 32
I (198) wifi: wifi power manager task: 0x3ffd74d8 prio: 21 stack: 2560
I (298) phy: phy_version: 366.0, ba9923d, Oct 31 2017, 18:06:17, 0, 0
I (298) wifi: mode : sta (30:ae:a4:38:81:2c)
I (298) asio: adding task: <unknown>
I (298) wifi: received wifi event 2
I (298) asio: adding task: refresh_auth_token
I (308) wifi: connected successfully
W (308) alexa: 592: - RAM left 162048
I (318) asio: adding task: downchannel
I (318) asio: adding task: send_initial_state
W (328) led_ui: UI initialized on pin 4
I (328) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:1 
E (348) led_ui: setColors 0=1, 1=0
I (428) wifi: n:6 0, o:1 0, ap:255 255, sta:6 0, prof:1
I (1408) wifi: state: init -> auth (b0)
I (1418) wifi: state: auth -> assoc (0)
I (1428) wifi: state: assoc -> run (10)
I (1798) wifi: connected with UPC247731094, channel 6
I (1808) wifi: received wifi event 4
I (2638) event: sta ip: 192.168.192.47, mask: 255.255.255.0, gw: 192.168.192.1
I (2638) wifi: received wifi event 7
I (2648) sntp: Initializing SNTP
I (2648) sntp: Waiting for system time to be set... (1/40)
I (2848) nghttp2: new nghttp session, uri: https://alexa.boeckling.net/auth/refresh/Atzr|IwEBIHgqSoHFysB4hdpjgvLrYOB_k7NngKJQnxYduwXrQhyintACbRqmbf5fA7io18Sje8LcNBm3NgPksMX1SrVE9HeCIAuzd_NhPXA2bbSFgw5HlM8SWAqDz6g4wDlCo-cic6AqIkPqH-FutksyecSK3zR_1rQMXo8cwzDmTWZQwTaOLoDWKq15nSN7Z8zTGm1cztPeRA69YCdq2FL2SuDHhHP7aJCm_KCu9TOGwCI65RviGYRbed9anWOO4KFgCAdpU27_Sg-njHqV8miaBKUVXBqPoOXOYHjdZEDjyMjb50IwQStK9Db_5cdWoQuGQLwBl5QvoT1KHPpnEv0dPZ1Ej1ShHjLHODcJEDJC_jKhn7ukXFfLg-yTmhvJV4hcZ2OJ4mS4KlK0SrblWQBYqrW6jU_jiFwsRUp2OLEVlhli_p-hvh9w4pigA_fa0sUbMYHMumJ3iHdz0g7mkocQNabNKs6fXO0qsorMJxNnX9cZJOHSDAQIQW3sNdfJvM20ImijsaqzlhxLZ_VOHUgOK3hx46mL
I (2888) nghttp2: Writing HTTP request...
I (2898) nghttp2: Request headers:
I (2898) nghttp2: :method: GET
I (2898) nghttp2: :scheme: https
I (2908) nghttp2: :authority: alexa.boeckling.net
I (2908) nghttp2: :path: /auth/refresh/Atzr|IwEBIHgqSoHFysB4hdpjgvLrYOB_k7NngKJQnxYduwXrQhyintACbRqmbf5fA7io18Sje8LcNBm3NgPksMX1SrVE9HeCIAuzd_NhPXA2bbSFgw5HlM8SWAqDz6g4wDlCo-cic6AqIkPqH-FutksyecSK3zR_1rQMXo8cwzDmTWZQwTaOLoDWKq15nSN7Z8zTGm1cztPeRA69YCdq2FL2SuDHhHP7aJCm_KCu9TOGwCI65RviGYRbed9anWOO4KFgCAdpU27_Sg-njHqV8miaBKUVXBqPoOXOYHjdZEDjyMjb50IwQStK9Db_5cdWoQuGQLwBl5QvoT1KHPpnEv0dPZ1Ej1ShHjLHODcJEDJC_jKhn7ukXFfLg-yTmhvJV4hcZ2OJ4mS4KlK0SrblWQBYqrW6jU_jiFwsRUp2OLEVlhli_p-hvh9w4pigA_fa0sUbMYHMumJ3iHdz0g7mkocQNabNKs6fXO0qsorMJxNnX9cZJOHSDAQIQW3sNdfJvM20ImijsaqzlhxLZ_VOHUgOK3hx46mL

I (2958) nghttp2: created new stream: 1
W (2968) nghttp2: 859: - RAM left 138992
I (2968) asio: adding task: alexa.boeckling.net
Algorithms:
I (2978) asio: removing task: refresh_auth_token
W (2988) asio: 96: - RAM left 131456
connecting to: 188.226.169.151
connected.
WARNING: no configured trust anchor
W (3048) led_ui: switching anim
E (3048) led_ui: setColors 0=-2146289036, 1=1073545904
I (4428) wifi: pm start, type:0

Handshake completed
   version:               TLS 1.2
   cipher suite:          ECDHE_RSA_WITH_AES_256_GCM_SHA384
   ECDHE curve:           secp384r1 (P-384)
   secure renegotiation:  yes
   protocol name (ALPN):  h2
I (4538) nghttp2: frame received: 4
I (4538) nghttp2: frame received: 8
I (4568) nghttp2: frame received: 4
I (5108) nghttp2: Response headers for stream ID=1:
I (5108) nghttp2: :status: 200
I (5108) nghttp2: server: nginx/1.10.3 (Ubuntu)
I (5108) nghttp2: date: Mon, 01 Jan 2018 13:44:34 GMT
I (5118) nghttp2: content-type: text/plain; charset=utf-8
I (5118) nghttp2: content-length: 1190
I (5128) nghttp2: strict-transport-security: max-age=63072000; includeSubdomains
I (5128) nghttp2: x-frame-options: DENY
I (5138) nghttp2: x-content-type-options: nosniff

I (5138) nghttp2: All headers received
I (5148) nghttp2: frame received: 0
I (5148) alexa: new auth_token: *********************************************************
I (5208) asio_http2: closed stream 1 with error_code=0
E (5208) asio_http2: no more open streams, terminating session
E (5218) asio_http2: closing stream
I (5218) asio_handler_ssl: asio_ssl_handle_close
I (5228) nghttp2: freeing http2_session_data
W (5228) nghttp2: 194: - RAM left 157636
W (5238) asio: 96: - RAM left 157696
I (5248) nghttp2: new nghttp session, uri: https://avs-alexa-na.amazon.com/v20160207/directives
I (5248) nghttp2: Writing HTTP request...
I (5258) nghttp2: Request headers:
I (5258) nghttp2: :method: GET
I (5258) nghttp2: :scheme: https
I (5268) nghttp2: :authority: avs-alexa-na.amazon.com
I (5268) nghttp2: :path: /v20160207/directives
I (5278) nghttp2: authorization: Bearer *********************************************************

I (5328) nghttp2: created new stream: 1
W (5338) nghttp2: 859: - RAM left 136476
I (5338) asio: adding task: avs-alexa-na.amazon.com
Algorithms:
I (5348) asio: removing task: downchannel
W (5348) asio: 96: - RAM left 130264
connecting to: 54.239.21.157
connected.
WARNING: no configured trust anchor
Handshake completed
   version:               TLS 1.2
   cipher suite:          ECDHE_RSA_WITH_AES_256_GCM_SHA384
   ECDHE curve:           secp256r1 (P-256)
   secure renegotiation:  yes
   protocol name (ALPN):  h2
I (6448) alexa: frame received: 4
I (6478) alexa: frame received: 8
I (6578) alexa: frame received: 4
I (6608) nghttp2: Response headers for stream ID=1:
:status: 200
access-control-allow-origin: *
x-amzn-requestid: 06c4defffe645d2e-00002200-0007b7b0-ec599f86d651de3a-c768d897-1
content-type: multipart/related; boundary=------abcde123; type=application/json
I (6638) handler_directives: init multipart_parser: --------abcde123

I (6648) alexa: All headers received for stream 1
I (6658) alexa: setting DOWNCHAN_CONNECTED_BIT
I (6658) nghttp2: new nghttp stream, uri: https://avs-alexa-na.amazon.com/v20160207/events
I (6668) nghttp2: Request headers:
I (6668) nghttp2: :method: POST
I (6678) nghttp2: :scheme: https
I (6678) nghttp2: :authority: avs-alexa-na.amazon.com
I (6688) nghttp2: :path: /v20160207/events
I (6688) nghttp2: authorization: Bearer *****************************************************************
I (6748) nghttp2: content-type: multipart/form-data; boundary="nghttp2123456789"

I (6748) nghttp2: created new stream: 3
I (6758) nghttp2: new nghttp stream, uri: https://avs-alexa-na.amazon.com/v20160207/events
I (6768) nghttp2: Request headers:
I (6768) nghttp2: :method: POST
I (6778) nghttp2: :scheme: https
I (6778) nghttp2: :authority: avs-alexa-na.amazon.com
I (6788) nghttp2: :path: /v20160207/events
I (6788) nghttp2: authorization: Bearer **************************************************
I (6838) nghttp2: content-type: multipart/form-data; boundary="nghttp2123456789"

I (6848) nghttp2: created new stream: 5
I (6858) audio_player: RAM left 93972
I (6858) mad_decoder: decoder start
I (6868) audio_player: created decoder task: mp3_decoder_task
I (8268) asio: removing task: send_initial_state
W (8268) asio: 96: - RAM left 68860

--nghttp2123456789

Content-Disposition: form-data; name="metadata"

Content-Type: application/json; charset=UTF-8

{"context":[{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":false}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"ALEXA"}}],"event":{"header":{"namespace":"System","name":"SynchronizeState","messageId":"1"},"payload":{}}}

--nghttp2123456789--

--nghttp2123456789

Content-Disposition: form-data; name="metadata"

Content-Type: application/json; charset=UTF-8

{"event":{"header":{"namespace":"Settings","name":"SettingsUpdated","messageId":"2"},"payload":{"settings":[{"key":"locale","value":"en-US"}]}}}

--nghttp2123456789--

I (8878) nghttp2: Response headers for stream ID=5:
:status: 204
access-control-allow-origin: *
x-amzn-requestid: 06c4defffe645d2e-00002200-0007b7b0-ec599f86d651de3a-c768d897-5

I (8908) alexa: All headers received for stream 5
I (8908) alexa: closed stream 5 with error_code=0
I (8918) asio_http2: closed stream 5 with error_code=0
I (9388) mad_decoder: decoder stopped
I (9388) mad_decoder: MAD decoder stack: 724

W (9398) led_ui: switching anim
E (9398) led_ui: setColors 0=-2146288040, 1=1073545920
I (9778) nghttp2: Response headers for stream ID=3:
:status: 204
access-control-allow-origin: *
x-amzn-requestid: 06c4defffe645d2e-00002200-0007b7b0-ec599f86d651de3a-c768d897-3

I (9808) alexa: All headers received for stream 3
I (9808) alexa: closed stream 3 with error_code=0
I (9818) asio_http2: closed stream 3 with error_code=0
MrBuddyCasino commented 6 years ago

Not sure about the "closed stream n with error_code=0", but the rest looks alright. What happens if you press GPIO0 and ask something?

mano1979 commented 6 years ago

When i press the button: Leds blink red and blue, and some noise is coming from the speaker. It seems to send something (see output first post) but nothing comes back. No answer, nothing.

mano1979 commented 6 years ago

Have you also seen the "204" response code? 204 means "no data". (Http error codes)

So that would mean there is nothing coming back from amazon?

mano1979 commented 6 years ago

I found the issue!! It works now!

On my board, gpio17 is not numbered. While searchin online, i found a refenrence that now, seems to be wrong. It said that gpio17 was named tx0. Now it seems that it accually should be tx2. So i changed the data pin to tx2 and it works!

Only issue is the voice is very fast. Chipmunk style! Can i change that somewhere?

mano1979 commented 6 years ago

I found the sample rate multiplier for the output sound. That is now set to 1 instead of 1.25.

But the recorded voice, my voice is still in chipmunk. (Listened back in the alexa app). Where can i change the sample rate of the mic input?

MrBuddyCasino commented 6 years ago

Hmm, your recorded voice shouldn't be high-pitched. AFAIK I'm using the two different I2S peripherals for that reason.

mano1979 commented 6 years ago

After listening again, it is not high pitched, just speed up.

What do you mean with "two different i2s peripherals"? Are you using 2 microphones?

On 4 January 2018 15:19:01 GMT+01:00, "Michael Böckling" notifications@github.com wrote:

Hmm, your recorded voice shouldn't be high-pitched. AFAIK I'm using the two different I2S peripherals for that reason.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/MrBuddyCasino/ESP32_Alexa/issues/11#issuecomment-355293223

MrBuddyCasino commented 6 years ago

No, but I2S is full-duplex interface. You can do playback and recording on the same port, but then the bitclock must be the same. Thats why I use the separate I2S_0 and I2S_1 periphs on the ESP32.

mano1979 commented 6 years ago

Aha! So if i understand correctly, i might be using the wrong i2s port?

Or is it just the bitclock that is wrong? Can this be fixed by switching around the pins i connect the microphone to?

On 4 January 2018 16:52:43 GMT+01:00, "Michael Böckling" notifications@github.com wrote:

No, but I2S is full-duplex interface. You can do playback and recording on the same port, but then the bitclock must be the same. Thats why I use the separate I2S_0 and I2S_1 periphs on the ESP32.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/MrBuddyCasino/ESP32_Alexa/issues/11#issuecomment-355318132

MrBuddyCasino commented 6 years ago

No, I was just explaining that the input & output are independent, this shouldn't happen. But I don't have the hardware with me right now to make tests.

mano1979 commented 6 years ago

Ok. No problem. Let me know when you know something.

My thoughts where that it might have something to do with the difference between the ics43434 and the sph0645 microphone. Since they seem to have slightly different outputs (24bit vs 32bit). But like i said, i am not a great programmer, and bit's and byte's are waaaay out of my league.

On 4 January 2018 17:43:48 GMT+01:00, "Michael Böckling" notifications@github.com wrote:

No, I was just explaining that the input & output are independent, this shouldn't happen. But I don't have the hardware with me right now to make tests.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/MrBuddyCasino/ESP32_Alexa/issues/11#issuecomment-355332746

MrBuddyCasino commented 6 years ago

I tested both ics43434 and sph0645, both were working fine for me (the ics43434 sounds better).

mano1979 commented 6 years ago

Yes. I use the ics43434 too.

Weirdly enough though, the commands i give are recognized most of the time. Even though the audio is about twice the speed.

Thank you for your help!

On 4 January 2018 17:56:11 GMT+01:00, "Michael Böckling" notifications@github.com wrote:

I tested both ics43434 and sph0645, both were working fine for me (the ics43434 sounds better).

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/MrBuddyCasino/ESP32_Alexa/issues/11#issuecomment-355336585

junTMUG commented 6 years ago

Modifying a line in send_speech_read_callback function in alexa_speech_recognizer.c will make better recoded sound quality and better recognition result for me.

In case AUDIO_DATA: I changed the line from "if(rounds > 1) {" to "if(rounds > 4) {"

mano1979 commented 6 years ago

Tried it, but this doesn't change the speed of the microphone audio. In the Alexa app, my voice still sounds sped up.

Don't know if the audio got better. I never had any issues with it recognizing my commands. (Except for the occasional time i slurry my words. English is not my native language)