I have a couple of students that when they bring in their own mp3 file, the error below occurs.
ValueError: The sample’s sample rate does not match the mixer’s (soundlib.py line 208)
The line that gets flagged for one student is:
heartcound = soundmaker.get_mp3(‘sounds/heart’)
Any suggestions will be greatly appreciated.
Thank you.
Thanks for asking the question! AnMP3 file needs to be saved with the proper sample rate (8000Hz default in CodeX). Take a look at our YouTube video on preparing MP3 files using Audacity: https://www.youtube.com/watch?v=hlAC-nSxgtM