Once that command was run, the -a 37 works now too. Let's see if they can point us to a missing step or if it's really just needing for the say program to get a patch.Īfter seeing the other answer by markhunte, I tried using say -a "AirPlay" "hello" and it worked for me to have AirPlay output spoken. I agree this would be fun to use and have filed a bug with Apple. Devices 47 and 64 work correctly, but when I send any audio to AirPlay (either before or after selecting one of the several AppleTV and AirPlay receivers that are otherwise workable) - the say command errors with error -50.
On my MacBook Pro, I have 37 for AirPlay, 47 for internal speakers and 64 for the DisplayPort cinema display speakers. The way this is supposed to work is that you simply execute the say command and point the output to the desired device. Yes - I am not getting this to work and conclude that it's not your or my setup, but perhaps a bug or deficient documentation in the man page.