←back to thread

2039 points Gadiguibou | 1 comments | | HN request time: 0.287s | source
Show context
sovietswag ◴[] No.36494481[source]
Needs to mention afplay for playing audio! You can easily use this to make a command-line MP3 player.

Others have mentioned the “say” utility for speech synthesis. There is a lot you can do with it, it supports the TUNE format, which allows you to "shape the overall melody and timing of an utterance... for example ... to make an utterance sound as if it is spoken with emotion".

See: Apple's Speech Synthesis Programming Guide, https://josh8.com/blog/img/speech-synthesis.pdf

I also wrote more about this here: https://josh8.com/blog/commandline-audio-mac.html

replies(3): >>36495517 #>>36500311 #>>36544614 #
1. kaycey2022 ◴[] No.36544614[source]
Thank you for the article :) One small correction, the command to list the voices is `say -v '?'`