If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): PsychoPy v3.0.0b10
**Standard Standalone? (y/n) y
**What are you trying to achieve?: Stream a sound
**What did you try to make it work?: Try out different settings for audio library
, audio driver
and audio device
in Preferences
What specifically went wrong when you tried that?:
##### Running: D:\Experimente\task1.py #####
0.7472 ERROR Requested audio device 'Yamaha Steinberg USB ASIO' that is not available on this hardware. The 'audioDevice' preference should be one of ['Line (2- Steinberg UR22mkII )']
##### Running: D:\Experimente\task1.py #####
Traceback (most recent call last):
File "D:\Experimente\task1.py", line 80, in <module>
sound_1 = sound.Sound('A', secs=-1, stereo=True)
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\sound\backend_sounddevice.py", line 296, in __init__
hamming=self.hamming)
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\sound\backend_sounddevice.py", line 343, in setSound
blockSize=self.blockSize)
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\sound\backend_sounddevice.py", line 84, in getStream
blockSize=blockSize)
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\sound\backend_sounddevice.py", line 128, in _getStream
device=defaultOutput)
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\sound\backend_sounddevice.py", line 159, in __init__
callback=self.callback)
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\sounddevice.py", line 1373, in __init__
**_remove_self(locals()))
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\sounddevice.py", line 696, in __init__
extra_settings, samplerate)
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\sounddevice.py", line 2488, in _get_stream_parameters
device = _get_device_id(device, kind, raise_on_error=True)
File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\sounddevice.py", line 2634, in _get_device_id
for id, name in matches))
ValueError: Multiple output devices found for 'Line (2- Steinberg UR22mkII )':
[3] Line (2- Steinberg UR22mkII ), MME
[7] Line (2- Steinberg UR22mkII ), Windows DirectSound
[10] Line (2- Steinberg UR22mkII ), Windows WASAPI
Looks like the sound card offers to many possibilities. Ideally, I would like to present the sound using exclusive mode
via Windows WASAPI
to have the least possible lag. So far, the sound shows a delay of 100 ms (with a jitter of about 50 ms). Presentation and Psychtoolbox were at 5 ms and 8 ms (without any measurable jitter), respectively.
@jon, @matthias.geier Could you please have a look?