Volume of sound on CPX using circuitPython

This is a special forum devoted to educators using Adafruit and Arduino products for teaching.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
amybrudin
 
Posts: 1
Joined: Tue May 24, 2022 1:41 pm

Volume of sound on CPX using circuitPython

Post by amybrudin »

I have a variety of CPXs that are all emitting sound (start_tone) at different volumes.
Is there a command that we can use to set the volume? We are using CircuitPython and NOT makecode (& never have.)
I'm unsure WHY different CPXs would have different volumes, since we don't seem to know how to change it!

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Volume of sound on CPX using circuitPython

Post by mikeysklar »

Are all of your CPXs running the same Firmware and CircuitPython version?

Are they using the equivalent power supplies?

audiomixer has volume support within CircuitPython.

https://circuitpython.readthedocs.io/en ... oice.level

Code: Select all

mixer.voice[0].level = .1

Locked
Please be positive and constructive with your questions and comments.

Return to “For Educators”