Generating Audio file periodically with PI 3 and HiFiBerry


I have created an audio file (300ms length = 10ms signal + 290ms silence) and want to run it periodically without any jitter. What I am doing now is that I have created a bash script and execute the command aplay in a while loop.

I checked on the oscilloscope and found that there is approx.1 ms of jitter between the first and second sound file and so on. I want the file to be played at exactly the same periodic interval.

Any ideas?



Please sign in to leave a comment.