By using R packages like tuneR and seewave I generated sounds that I want to play with some software that is not Windows Media Player but I don't know how to set this up. This command
'C:/Program' is not recognized as an internal or external command, operable program or batch file.
Here's what works for me under OSX: assuming I've installed an app called 'play.app' ,
In your case it would appear that somewhere along the line your path string's space (in "Program[space]Files" ) is causing the string to be split up. That error message is pretty clearly coming from a CommandPrompt or similar shell. You may need to escape that space.