You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I put the .wav file in flash, then read it using LittleFS, and played the file using i2s's playWAV.
It prompted esp32-hal-periman.c:122] perimanSetPinBus(): Invalid pin: 255, using max98357A.
The audio files are placed in the compressed package audio.zip
After commenting, it can work normally now. Thank you for your answer. May I ask about the timing of using end()? The role of end().
By the way, what happens when the sound is too low and how can I adjust it. thank you
You should call the end() if you no longer want to play anything and free resources + the i2s peripheral.
I have opened a fix for the error that you were getting.
About the volume, we have no software control implemented in the I2S library.
You may need to control the volume on HW layer by using some amplifier.
Board
esp32s3-wroom-1u-n16r8
Device Description
max98357A, esp32s3
Hardware Configuration
#define SPEACKER_LRC_NUM 1
#define SPEACKER_CLK_NUM 2
#define SPEACKER_DATA_NUM 42
Version
v3.1.0
IDE Name
vscode+pio
Operating System
mac
Flash frequency
80Mhz
PSRAM enabled
yes
Upload speed
921600
Description
I put the .wav file in flash, then read it using LittleFS, and played the file using i2s's playWAV.
It prompted esp32-hal-periman.c:122] perimanSetPinBus(): Invalid pin: 255, using max98357A.
The audio files are placed in the compressed package
audio.zip
The same situation occurs when playing MP3
[D][ESP_I2S.cpp:1011] playWAV(): Play WAV: rate:16000, bits:16, channels:1, size:51840
[ 14499][E][esp32-hal-periman.c:122] perimanSetPinBus(): Invalid pin: 255
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: