Mac OS can't play sound because command not found

Hello, can someone help me ? I can't play the sound by Rstudio. I installed the package TuneR et set the wave player but it can't play and the info is below :

library("tuneR")
setWavPlayer("VLC")
filename<-"sr_phrases_10.wav"
son<-readWave(filename)
play(son)
sh: VLC: command not found
Warning message:
In system(paste(player, ..., object)) :
erreur lors de l'exécution d'une commande

I'm having a similar problem as you.

setWavPlayer("/Applications/VLC.app/Contents/MacOS/VLC")

sort of works, but generates warning messages and you have to manually stop the command after the sound is done by clicking the red stop sign.

Did you find any other way?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.