Code for fMRI Musical Study

Dear All,

I hope you are all doing well.

I am trying to develop a code for the fMRI study, there is a part where music needs to be played and I do not know why the sound does not play, I appreciate your help and would be very happy if you can send me some related codes that help me in comparing it with mine and find a solution. any other suggestions appreciated.

Thank you very much.