I am working on an Arduino project using the Wave Too Easy with UART commands. When sending the command to play a sound as in this example:
WaveTooEasy.playFile(“beep.wav”, 2, PLAY_MODE_NORMAL);
There is very noticeable latency created in the whole program, assuming that it is stalling out while the command is being sent by serial. Removing the command clears the latency and the code runs normally without interuptions.
Buad rate is 115200
My assumption is that calling the files by “name” (instead of by number like other boards), is creating the blocking in translating the file name/path to binary.
Do you have any tips to reduce latency? Or is there a way to call the files by number? I have more than 10 sound files, so mapping the files by channel in the configuration file is not an option.