Audio Tools with AI Thinker v 2.2 A252 #1427
-
I am at a loss at the moment as to how to set up this board. I bought it thinking it would be easier to use only to find its a bit of a nightmare of weird versions. using this code below I can get sound coming out BUT there is def something wrong with it (improper pin or clocking would be my guess)as it is distorted and crackly. `/**
*/ #include "AudioTools.h" #include "AudioLibs/AudioBoardStream.h" AudioBoardStream kit(AudioKitEs8388V2); void actionKeyOn(bool active, int pin, void* ptr){ void actionKeyOff(bool active, int pin, void* ptr){ // We want to play some notes on the AudioKit keys void setup() { // Setup output // Setup sound generation based on AudioKit settins // activate keys } // copy the data I also tried the other driver options but this was the only one that gave any sound at all THANKS for any help |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
https://github.com/pschatzmann/arduino-audio-tools/wiki/It's-not-working Serial output is slow and therefore can have an impact on audio: This is described in multiple places in the documentation! |
Beta Was this translation helpful? Give feedback.
-
Ahh I was so focused on it possibly being one of the AI thinker boards with issues I did not even think to switch to warning or error (which I have read about before )thanks Sent from my iPhoneOn Mar 7, 2024, at 10:22 AM, Phil Schatzmann ***@***.***> wrote:
https://github.com/pschatzmann/arduino-audio-tools/wiki/It's-not-working
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
https://github.com/pschatzmann/arduino-audio-tools/wiki/It's-not-working
Serial output is slow and therefore can have an impact on audio: This is described in multiple places in the documentation!
So just switch the logging to warning (by using AudioLogger::Info) or lower the sample rate( cfg.sample_rate = 22050;).