Giter VIP home page Giter VIP logo

Comments (3)

pschatzmann avatar pschatzmann commented on August 19, 2024

Have you already looked at this: #45

from arduino-audiokit.

andrewwakeling avatar andrewwakeling commented on August 19, 2024

I tried setting AI_THINKER_ES8388_VOLUME_HACK to 2 but it just made the volume very low again.

My main issue here is that I'm only getting audio from 1 channel (the left).

Here's my code:

#include <Arduino.h>
#include "AudioTools.h"
#include "AudioLibs/AudioKit.h"
#include "AudioCodecs/CodecFLAC.h"
#include "Password.h"

URLStream url(WIFI_SSID, WIFI_PASSWORD);
FLACDecoder dec;
AudioKitStream i2s;

void setup() {
  esp_wifi_set_ps(WIFI_PS_NONE);
  auto cfg = i2s.defaultConfig(TX_MODE);
  cfg.sample_rate = 44100;
  cfg.channels = 2;
  i2s.begin(cfg);
  i2s.setVolume(100);

  url.begin("http://192.168.1.1:8080/44100-stereo.flac");
  dec.setInputStream(url);
  dec.setOutputStream(i2s);
  dec.begin();
}

void loop() {
  dec.copy();
}

This currently isn't an urgent issue for me, but this might be good to resolve for others that have the 3378 board.

I also have 2762 board and the above code works perfectly.

from arduino-audiokit.

owsis avatar owsis commented on August 19, 2024

Try this, after kit.begin();
es8388_write_reg(ES8388_DACCONTROL7, 0x1C);

from arduino-audiokit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.