3

Is there any way to add a pronunciation to OSX text to speech service? I've google for the last few hours without a solution.

  • Are you selecting text and running the contextual menu Start Speaking command? You could create an Automator service that replaces text within a selection before passing it on to be spoken. See http://apple.stackexchange.com/questions/204299/french-narrator/204301#204301 for a service that speaks. – Graham Miln Aug 10 '16 at 12:41
  • I'm currently doing it with automator, just wondering if there's a more natural way. – Harrison Tran Aug 10 '16 at 12:46

1 Answers1

1

Yes, you can affect macOS's text to speech pronunciation. Everything you need to know is in Apple's Speech Synthesis in OS X.

Try these two commands in Terminal.app:

say "cat"

Now to have the individual letters spelt out:

say "[[char LTRL]] cat [[char NORM]]"

See Use Embedded Speech Commands to Fine-Tune Spoken Output for a long list of modifiers.

If you need to speak in another language, be sure to use an appropriate voice.

Graham Miln
  • 43,776