Open HenryJFlynn opened 1 year ago
Just plugging the speakers in, they make no sound
how do they know to make a sound? is there a sound file somewhere?
It is likely we can't use the waveplayer, at least with the current rig. The plugin expects an audio input from the Bpod but the speakers are plugged into the PC, not the Bpod
the output action BNCState triggers sound. I do not know what sounds nor how
it seems that it maps to the firmware which is way beyond my current understanding
the matlab Sound Protocol
settings option is causing the sound. BNC ports by themselves don't seem to do anything
The sound file used is in the folder audstim
inside Mouse2AFC
. It may configure the sounds using audstim.py
in /Mouse2AFC/report/py_Mouse2AFC
. Not sure why its python, maybe something to do with Psychtoolbox
A library called PsychportAudio is used by Matlab. This library was written using GStreamer open source codes. I think that since we do not have the PsychportAudio library on the Python side, there is no sound coming from the computer. I guess it might be a challenging step, but I will look into this issue. If there is any development, I will write it as a comment.
There is a PsychPy library on the Python side, similar to the PsychportAudio library. I will try to apply it by downloading this library. Although they say in their statements that they do not support all sound cards, they say that they support most of the new sound cards. I will try using this library.
Experiments types auditory and sound intensity depend on the use of sound. Speakers have not yet been tested with pybpod. The goal is to enable the use of speakers so sound queues can be used during experimentation.
TODO: