Closed fluxxion82 closed 2 years ago
Sounds like the SPIFFS filesystem has not been uploaded. This is done separately from uploading the firmware and it's slightly hidden away on PlatformIO. Pretty much impossible to explain in words so I made a video :)
Awesome, that did the trick! Still working through your videos :)
Great! It's really annoying that they've hidden the upload file system as it's used a lot!
I have another random question...how would you add volume control to the project? I've attached a pot to one of the ADC pins and was trying to read the analog value in the WavReader getFrames function and then trying to apply the value to the audio data but it seems that having just the analog read call (without using the value) stops the audio from being played. I don't see any errors. Any thoughts? Thanks.
so I don't think this is actually an issue with your code. It's more of a general esp32 question that I'm hoping you can give some insight on.
I've got the project running and working except I'm having trouble playing the .wav files. In one of the projects I was running before I was getting a 'SPIFFS failed to mount' error, but when I run this project, I don't get that error. However, I get some errors when trying to load the wave files:
I get the exact same messages for every wav file that the app attempts to open. I've called SPIFFS.format() but that doesn't do much to help. I am getting a value returned when I check for the total size (~1.3MB). I thought the esp32 has 4MB of SPI flash, and I don't see this spiff size in the spiffs config anywhere so I haven't verified if this is the correct value yet. I've tried running the project on two different dev boards so far but both behave the same way.
I just tried out this esp32 data uploader for the arduino ide, was able to upload one of the joke files and the app successfully played the file. It seems like it's only able to play the file once though. Maybe it's a platform.io issue?
Anyways, if you have any insight, I would love to hear it. thanks.