Sound Component



Everything in a PsychoPy® experiment needs a unique name. The name should contain only letters, numbers and underscores (no punctuation marks or spaces).

startfloat or integer

The time that the stimulus should first play. See Defining the onset/duration of components for details.

stop :

For sounds loaded from a file leave this blank and then give the Expected duration below for visualisation purposes. See Defining the onset/duration of components for details.

sound :

This sound can be described in a variety of ways:

  • a number can specify the frequency in Hz (e.g. 440)

  • a letter gives a note name (e.g. “C”) and sharp or flat can also be added (e.g. “Csh” “Bf”)

  • a filename, which can be a relative or absolute path (mid, wav, and ogg are supported).


How should stimulus play? Speed, volume, etc.

volumefloat or integer

The volume with which the sound should be played. It’s a normalized value between 0 (minimum) and 1 (maximum).

hamming windowbool

Should there be a hamming window between stimuli?

See also

API reference for SoundPyo

Back to top