Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.43 KB

VoiceDoc_Mac.md

File metadata and controls

49 lines (31 loc) · 1.43 KB

Ohbot text to speech on a Mac

picoh.setSynthesizer(synth)

Allows override of default OSX say command.

picoh.setVoice(voice)

Use picoh.setVoice() to set the voice:

For Example:

picoh.setVoice("Oliver")
picoh.say("Hello this is Oliver")
picoh.setVoice("Kate")
picoh.say("Hello this is Kate")

Available voices can be found in System Preferences -> Accessibility -> Speech in the System Voice Menu. Click customize to view voices in other languages.

A full list of voices can also be displayed by entering the following command in Terminal:

say -v ?

picoh.setSpeechSpeed(params)

Use picoh.speechSpeed() to set speech rate in words per minute:

Range: (int) 90+

For Example:

picoh.setVoice("Oliver")
picoh.setSpeechSpeed(90)
picoh.say("Hello this is Oliver Slow")
picoh.setSpeechSpeed(400)
picoh.say("Hello this is Oliver Fast")