Announcement

Collapse
No announcement yet.

ANNOUNCE: Squeezelite-ESP32 (dedicated thread)

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Here is the output, DAC seems to be configured fine.

    Code:
    W (5930) console: Processing autoexec commands while wifi_manager active.  Wifi related commands will be ignored.
    I (5940) console: autoexec is set to perform auto-process
    I (5940) console: Running command autoexec1 = squeezelite -o I2S -b 500:2000 -d all=info -C 30 -W -n squeezelite-73f4d0
    W (5950) config: Value not found for key autoexec2
    I (5950) squeezelite_cmd: Calling squeezelite
    I (5960) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
    squeezelite-esp32> [00:00:04.312556] stream_init:387 init stream
    [00:00:04.313656] sb_controls_init:245 initializing audio (buttons/rotary/ir) controls (raw:0)
    I (5990) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
    [00:00:04.336402] sendSETD:423 sending dimension 0x0
    [00:00:04.337993] output_init_embedded:70 init device: I2S
    [00:00:04.349935] equalizer_init:42 initializing equalizer
    [00:00:04.351407] output_init_common:434 supported rates: 192000 176400 96000 88 200 48000 44100 32000 24000 22050 16000 12000 11025 8000
    [00:00:04.363280] output_init_embedded:90 init I2S/SPDIF
    I (6030) DAC core: DAC uses I2C port:0, sda:18, scl:23
    I (6040) DAC external: DAC on I2C @16
    I (6040) DAC external: Configuring MCLK on GPIO0
    I (6060) I2S: DMA Malloc info, datalen=blocksize=2048, dma_buf_count=12
    I (6060) I2S: APLL: Req RATE: 44100, real rate: 44099.988, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 11289597.000, SCLK: 1411199.625000, diva: 1, divb: 0
    [00:00:04.407380] output_init_i2s:318 ES8388 DAC using I2S bck:5, ws:26, do:25, mute:-1:0 (res:0)
    [00:00:04.418908] output_init_i2s:338 Initializing I2S mode normal with rate: 44100, bits per sample: 16, buffer frames: 512, number of buffers: 12
    [00:00:04.431167] set_amp_gpio:180 setting amplifier GPIO 21 (active:1)
    [00:00:04.432453] output_visu_init:75 Initialize VISUEXPORT 512 16 bits samples
    [00:00:04.32323] output_thread_i2s:452 Output state is -1
    [00:00:04.443767] output_init_embedded:98 init completed.
    [00:00:04.55482] decode_init:153 init decode
    [00:00:04.455524] output_thread_i2s:456 switching off amp GPIO 21
    [00:00:04.456222] register_alac:547 using alac to decode alc
    [00:00:04.467854] register_helixaac:686 using helix-aac to decode aac
    [00:00:04.478931] register_vorbis:385 using vorbis to decode ogg
    [00:00:04.479793] register_opus:329 using opus to decode ops
    [00:00:04.490740] register_flac:332 using flac to decode ogf,flc
    [00:00:04.491615] register_pcm:468 using pcm to decode wav,aif,pcm
    [00:00:04.502748] register_mad:417 using mad to decode mp3
    And here is the output when I press Play button in LMS:

    Code:
    [00:08:51.928458] stream_thread:264 headers: len: 491
    HTTP/1.1 200 OK
    Server: Logitech Media Server (8.1.1 - 1610364019)
    Connection: close
    Content-Type: audio/mpeg
    Set-Cookie: Squeezebox-albumView=; path=/
    Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
    Set-Cookie: Squeezebox-expanded-MY_MUSIC=0; path=/
    Set-Cookie: Squeezebox-expanded-FAVORITES=0; path=/
    Set-Cookie: Squeezebox-expanded-PLUGINS=0; path=/
    Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; path=/
    Set-Cookie: Squeezebox-expanded-RADIO=0; path=/
    
    
    [00:08:52.171789] _check_lame_header:163 gapless: skip: 2257 samples: 14901684 delay: 1105 padding: 635
    [00:08:52.174254] output_thread_i2s:452 Output state is 1
    [00:08:52.199231] mad_decode:247 setting track_start
    [00:08:52.313844] _output_frames:65 start buffer frames: 3503
    [00:08:52.316308] _output_frames:150 track start sample rate: 44100 replay_gain: 0
    [00:08:52.317740] output_thread_i2s:452 Output state is 2

    Comment


    • Originally posted by attz
      Just flashed my 2nd board with flash tool (erasing it before). Same story - noise.
      Yes, the board is ESP32 Audio Kit V2.2 2957 with ESP32-A1S 2974 on it.

      fw: I2S-4MFlash.16.710.master-cmake, flashed it, connected to my wlan, set_GPIO is set to 21=amp,22=green:0,39=jack:0 , dac_config is set to model=ES8388,bck=5,ws=26,do=25,sda=18,scl=23,i2c=1 6

      Oh, and red LED is blinking every 3 seconds, stays red when playing(guess that's normal).
      How can I view logs?
      I'm sorry, the dac_config I put there was wrong

      Code:
      model=ES8388,bck=5,ws=25,do=26,sda=18,scl=23,i2c=16
      LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

      Comment


      • Originally posted by philippe_44
        I'm sorry, the dac_config I put there was wrong

        Code:
        model=ES8388,bck=5,ws=25,do=26,sda=18,scl=23,i2c=16
        Woohoo, that worked! I've got the sound output! Thank you, I really appreciate your work <3

        Comment


        • Also is there a way to make both channels output to one(mono speaker)?

          Comment


          • Originally posted by attz
            Also is there a way to make both channels output to one(mono speaker)?
            LMS allows that if the player is synchronized with another one. I extended that a bit in LMS 8.2
            LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

            Comment


            • Originally posted by philippe_44
              LMS allows that if the player is synchronized with another one. I extended that a bit in LMS 8.2
              That is great! So in BT or AirPlay mode it's not rly possible, right?
              Hope you understood me correctly - instead of two stereo(R and L) chan outputs getting two or one mono(R and L combined) out.

              Comment


              • Originally posted by attz
                That is great! So in BT or AirPlay mode it's not rly possible, right?
                Hope you understood me correctly - instead of two stereo(R and L) chan outputs getting two or one mono(R and L combined) out.
                I think I did - It's not bridging the 2 outputs to a single speaker, but having the player playing the same (L+R)/2 on both outputs. This is the mod I did on LMS and in general squeezelite
                LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

                Comment


                • Working

                  Working here Thank you

                  is this the key line you recommend
                  [{"gpio":5,"normal":{"pressed":"ACTRLS_TOGGLE"}},{" gpio":18,"pull":true,"shifter_gpio":5,"normal":{"p ressed":"ACTRLS_VOLUP"}, "shifted":{"pressed":"ACTRLS_NEXT"}}, {"gpio":23,"pull":true,"shifter_gpio":5,"normal":{ "pressed":"ACTRLS_VOLDOWN"},"shifted":{"pressed":" ACTRLS_PREV"}}]

                  Comment


                  • Working great, thanks Philippe!

                    Comment


                    • ES8388 codec

                      I think the sound quality of ES8388 codec is very poor than AC101 with earphone . The earphone sound output has no bass sound.
                      But the sound output of the speakers is OK.
                      Last edited by ktdong; 2021-09-28, 05:49.

                      Comment


                      • Please share your dac_controlset

                        I now can incorporate dac_controlset directly inside the main I2S release, so if you want to share it with me, it will be built-in then. Only need to set codec model, GPIO & I2C.
                        LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

                        Comment


                        • Battery GPIO

                          Hi, how do I define a GPIO for 2 cells connected in parallel?
                          For example on the gpio 34. What will it look like in the NVS Editor?
                          Thank you

                          Comment


                          • Originally posted by micha86
                            Hi, how do I define a GPIO for 2 cells connected in parallel?
                            For example on the gpio 34. What will it look like in the NVS Editor?
                            Thank you
                            I don’t understand
                            LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

                            Comment


                            • I use google translator))
                              Do you have to take certain gpio for battery? or is it fixed?
                              I ask it about "bat_config" I did not find a configuration for it.

                              Comment


                              • Originally posted by micha86
                                I use google translator))
                                Do you have to take certain gpio for battery? or is it fixed?
                                I ask it about "bat_config" I did not find a configuration for it.
                                Do you have a SqueezeAMP or other
                                LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

                                Comment

                                Working...
                                X
                                😀
                                🥰
                                🤢
                                😎
                                😡
                                👍
                                👎