MixerVoice – Voice objects used with Mixer

Used to access and control samples with audiomixer.Mixer.

class audiomixer.MixerVoice

MixerVoice instance object(s) created by audiomixer.Mixer.

play(sample, *, loop=False)

Plays the sample once when loop=False, and continuously when loop=True. Does not block. Use playing to block.

Sample must be an audiocore.WaveFile, audiomixer.Mixer or audiocore.RawSample.

The sample must match the audiomixer.Mixer’s encoding settings given in the constructor.


Stops playback of the sample on this voice.


The volume level of a voice, as a floating point number between 0 and 1.


True when this voice is being output. (read-only)