simultaneous, advanced use case #1376
Replies: 9 comments 19 replies
-
If file size should be an issue you can try to use ADPCM which does not add too much overhead. Maybe something for a future release, after you have it working with WAV(PCM). I have never built something so complex, so I don't know where the limit is. If things get too slow you might need to go down with the sample rate... |
Beta Was this translation helpful? Give feedback.
-
? is there somethign special about wav files i'm not aware of? |
Beta Was this translation helpful? Give feedback.
-
WAV format 0 does not exist: 1 is PCM! So it seems that this is not a valid header in your WAV file... |
Beta Was this translation helpful? Give feedback.
-
still... [E] CodecWAV.h : 460 - WAV format not supported: 0 tried both signed 16bit pcm and MS adpcm... i must have something else wrong... |
Beta Was this translation helpful? Give feedback.
-
adpcm is not supported by this decoder, just pcm. |
Beta Was this translation helpful? Give feedback.
-
ok, something else is wrong - it gives me the same error without even opening a file. |
Beta Was this translation helpful? Give feedback.
-
great hint. the first 44 bytes are trash. i see from google that the first 4 bytes should be ascii riff, size, ascii wave etc... |
Beta Was this translation helpful? Give feedback.
-
Thought about this some more, i'm getting the ASCII values for RIFF... |
Beta Was this translation helpful? Give feedback.
-
Hi Weow147, Are you willing to share some of your code as I am looking to setup something like your "black graph" in the initial picture, but then I want to route it to ESPNow and render it on a 2nd device to I2S. If you can share your setup, then I have a huge headstart. Thanks, John. |
Beta Was this translation helpful? Give feedback.
-
Mr Schatzmann-
Once again i'll start by expressing my appreciation for your work. I'm glad to see this project gathering attention. Big thanks from myself and others - buy this man a coffee!
Now, my question. Thankyou in advance for your opinion, thoughts and insight.
BLACK block diagram works flawlessly, and as I'm waiting for my custom hardware to arrive from easyeda/JLCPCB, my thoughts are turning to version 2.0 of this project.
I'm wondering if it's possible to implement the RED pieces...
I'm sure i can go from sd card to i2s (playback) looks like it needs an encodedAudioStream. Plenty of examples showing that. trivial.
But i have some unknowns...
I'm NOT sure i can go from (eq to SD, record) and (eq to i2s_out) simultaneously. This is critical because you will want to hear yourself sing through the speakers as you record. Can i add another 'multi' to eq? i guess not, it would need a second copier? I might be able to add another multi-output and 'record' to SD, but it would not have the effects i want.
NOT sure i can go from (SD Card to i2s_out, playback) and (eq to i2s_out) simultaneously. I think i would need to use an OutputMixer, which is PCM only. i can force mp3/wav into pcm, but not sure what format is 'record'. simultaneous record and playback is important, and must be cumulative.
NOT sure i can PLAYBACK two files from SD simultaneously. The design goal is something like a "looper" where you can build up a mutli-part harmony (with pitch correction and other effects) singing solo, adding one part at a time, always recording the latest input. AND, it would be slick if you could build up that harmony on top of an mp3 backing trackor WAV drum sample.
Thoughts from Mr Schatzmann and the community?
Beta Was this translation helpful? Give feedback.
All reactions