# Mission 13: sample rate error

**URL:** <https://community.firialabs.com/t/mission-13-sample-rate-error/93>\
**Category:** Support\
**Created:** [March 6, 2025, 6:24pm UTC](https://community.firialabs.com/t/mission-13-sample-rate-error/93 "2025-03-06T18:24:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MissyJ](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.firialabs.com/missyj/32/59_2.png) [@MissyJ](https://community.firialabs.com/u/MissyJ)\
**Post date:** [March 6, 2025, 6:24pm UTC](https://community.firialabs.com/t/mission-13-sample-rate-error/93/1 "2025-03-06T18:24:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![JillJones](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.firialabs.com/jilljones/32/12_2.png) [@JillJones](https://community.firialabs.com/u/JillJones)\
**Post date:** [March 6, 2025, 7:45pm UTC](https://community.firialabs.com/t/mission-13-sample-rate-error/93/2 "2025-03-06T19:45:32Z")

</div>

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](https://www.youtube.com/watch?v=hlAC-nSxgtM)

---

<div class="post-metadata">

**Author:** ![MissyJ](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.firialabs.com/missyj/32/59_2.png) [@MissyJ](https://community.firialabs.com/u/MissyJ)\
**Post date:** [March 6, 2025, 8:11pm UTC](https://community.firialabs.com/t/mission-13-sample-rate-error/93/3 "2025-03-06T20:11:15Z")

</div>

Thanks Jill, I completely forgot about the Youtube channel.
