Deal with audiotools player to choose which file to play by name #1913
-
Hello, I continue my dev to make HAM repeater with esp32 and the powerfull audiotools library. I success to play wav present on internal flash memory using SPIFFS but I need to start playing one by one the wav file by name for example : announce.wav, rogerbeep.wav and end.wav |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If you use the AudioPlayer you can implement your custom AudioSource or use the AudioSourceCallback. If you don't use the AudioPlayer, you can use the CatStream class to concatenate Files: just make sure that you set the initial position so that the header is skipped or remove the headers from the wav files so you don't need to bother about this. |
Beta Was this translation helpful? Give feedback.
-
Hello @pschatzmann , whaoo thanks for the fastened response :) I will explore your suggestion and back to you to confirm I success ! |
Beta Was this translation helpful? Give feedback.
If you use the AudioPlayer you can implement your custom AudioSource or use the AudioSourceCallback.
If you don't use the AudioPlayer, you can use the CatStream class to concatenate Files: just make sure that you set the initial position so that the header is skipped or remove the headers from the wav files so you don't need to bother about this.