I wanted to play a .wav file, without using external modules, and i read i could do that using this:
def play(audio_file_path):
subprocess.call(["ffplay", "-nodisp", "-autoexit", /Users/me/Downloads/sample.wav])
I however get:
SyntaxError: invalid syntax
If i use os.path.realpath
to get the absolute path of the file, i get just the same thing. (The path i see at get info)
Environment is OSX, Python 2.7 Can someone tell me what i am doing wrong? I am new to Python (and to Programming).