0
$\begingroup$

I have loaded a wav file into a Python Numpy array.

I would like to "perturb the signal" such that the audio sounds akin to audio streamed over a poor internet connection.

How can I mutate the array to imitate that crackly, choppy sound? I was thinking about trying to simulate packet loss, but I am not sure how to proceed.

$\endgroup$
1
  • 1
    $\begingroup$ what about you compress that audio file using a common audio codec (MP3?), then hack it up into sensible UDP packet sizes (1200 B?), then randomly drop some of these, then feed that back through a decoder? That would actually simulate the phenomenon that you're trying to simulate. $\endgroup$ – Marcus Müller Apr 4 '20 at 1:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.