1

I'm having problems finding a solution to play a mp4 file with psychopy. Should I put the file in a special folder? How can I find this folder? And is there a special function to open then the file when running the code?

I tried making a class, but I have problems when defining the path. Please taking in consideration that I just started programming. Probe-Code

Thanks in advance

nekomatic
  • 5,988
  • 1
  • 20
  • 27

1 Answers1

2
import playsound
playsound.playsound('sample.mp3')

Process to play this song: first create a file play.mp3 and copy the path of file and paste that code on the place of sample.mp3 in your code editor.

Henry Ecker
  • 34,399
  • 18
  • 41
  • 57