What embedded speech commands work in recent versions of OS X?

I have recently needed to use the Mac's surprisingly good text-to-speech capability. In exploring its capabilities I did discover the use of embedded speech commands. Unfortunately, I also discovered that many of the ones listed in the (old) documentation no longer work, and there has been some chatter implying that happened with more recent versions of the OS and/or newer voices. In particular, I would like to have used phonetic pronunciation for some words and the ability to add emphasis, but neither of those commands, ([[emph +]] or [[inpt PHON]], seem to work. Emphasis does nothing with any voices; phonetic input seems to work on some, but not the ones I want to use. Is there any documentation anywhere of what commands (still) work, with what voices? At least [[slnc ...]] works!

MacBook Pro (Retina, 13-inch, Late 2012), OS X Mavericks (10.9.1)

Posted on Sep 7, 2015 7:56 AM

Reply
7 replies

Sep 8, 2015 5:41 PM in response to Theodore Lee

Please confirm which version OS X you are using. If you are still on Mavericks, be sure you are running 10.9.5


OS X Mavericks 10.9.5 Update (Combo)

http://support.apple.com/kb/DL1760


The following is for Yosemite.


Go to Apple menu > System Preferences > Dictation & Speech > Dictation tab > TICK "User Enhanced Dictation" (Dictation needs to be switched on for this option to be available).

NOTE: After you switch this feature on OS X will download and install the local Dictation services to your computer.

These are your options for Dictation in Yosemite.


User uploaded file

Sep 9, 2015 6:27 AM in response to dianeoforegon

Sorry, I haven't updated my profile recently! I am using Yosemite. In any case, my question isn't about dictation but about text-to-speech. I've only started to use it recently, but according to the older on-line documentation (circa 2007), which is the most recent available, there is/was the ability to embed commands into a text file (they take the form [[command parameters]] to exert considerable control over the text-to-speech process, including supplying phonetic pronunciations. Apparently with the introduction of a wider variety of voices since that date much of that functionality has been reduced for some voices. So, I'm asking, which embedded speech commands still work, for which voices?

Sep 14, 2015 6:34 AM in response to dianeoforegon

Thanks, but, no, those don't help. Let me try to repeat the question. According to the documentation for the speech engine, which hasn't been updated since about 2006, it would seem, one is supposed to be able to embed commands in text to affect the generation of speech. An embedded command looks like [[command params]]. There are (were?) commands to introduce silence, change rate, volume, or other parameters, to indicate the context of a word or phrase -- presumably to tell part of speech or tense -- supply a phonetic pronunciation, which includes stress, or even give something like a melody. What little discussion I've found on the topic indicates that most of those functions don't work with the newer voices, and possibly not even with the older ones any more -- so far, the only command I've been able to get to work with newer voices is the one to introduce a pause [[slnc <duration>]]. (Phonetic spelling does work with some voices.) So, my question is, which of the other commands in fact still work, and with which voices? A broader question would then be -- will the ones that don't work ever be brought back? I have a large document I convert to audio. I have been able to get almost all of it to be pronounced correctly by replacing the original spelling of a handful of words with "creative" respelling. The biggest problem is the speech engine can't tell the part of speech or tense of words, so a word like "read" will always come out as "reed", even when it should be "red." One word, for instance, that I can't get to come out right is "content" -- it is always treated as a noun, with the emphasis on the first syllable, and I can't force it to be treated as an adjective, with the emphasis on the second syllable, nor can I find any "respelling" that gives what I want. Does anyone know anything useful about all that?

Jul 7, 2016 11:26 AM in response to Theodore Lee

My native language is Mexican Spanish. I've used [[volume <number>]], [[rate <number>]], and [[pbas <number>]] and worked fine on Spanish voices. As a spanish speaking person, I've used Text To Speech with graphic accents ( ´ ), and used them even in english words to get the appropriate (or at least approximate) phonetic pronunciation. When some words don't get the right sound, writing them in UPPERCASE or joining two sepparate word helps, with mixed results.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

What embedded speech commands work in recent versions of OS X?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.