PsychPortAudio error when initializing 'beep'

OS (e.g. Win10): Debian 11

PsychoPy version : 2022 1.4

Hi there,

I need to play a ‘beep’ every time a button is pressed. The error I encounter is at the Begin experiment tab when I initialize : beep = Sound.sound(3500, secs=.0007)

The error I get is :

File “/home/fede/.local/lib/python3.9/site-packages/psychtoolbox/”, line 97, in init
self.handle = PsychPortAudio(‘Open’, device_id, mode,
Exception: Audio device unavailable. Most likely tried to open device multiple times.

The audio works fine for other auditory stimuli.

Many htanks


problem solved by using :

beep = sound.Sound('3500', secs=0.007, stereo=True, hamming=True, name='beep')