com.brysonian.parrot
Class Parrot
java.lang.Object
com.brysonian.parrot.Parrot
public class Parrot
- extends java.lang.Object
This is a simple class to wrap the features of NSSpeechSynthesizer
- Author:
- Chandler McWilliams
Field Summary |
java.lang.String |
VERSION
|
Constructor Summary |
Parrot()
Constructor |
Parrot(java.lang.String voice)
Alt Constructor. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION
public final java.lang.String VERSION
- See Also:
- Constant Field Values
Parrot
public Parrot()
- Constructor
Parrot
public Parrot(java.lang.String voice)
- Alt Constructor. Pass voice to use
stopSpeaking
public void stopSpeaking()
isSpeaking
public boolean isSpeaking()
isAnyApplicationSpeaking
public boolean isAnyApplicationSpeaking()
voice
public java.lang.String voice()
setVoice
public boolean setVoice(java.lang.String voice)
defaultVoice
public static java.lang.String defaultVoice()
availableVoices
public static com.apple.cocoa.foundation.NSArray availableVoices()
attributesForVoice
public static com.apple.cocoa.foundation.NSDictionary attributesForVoice(java.lang.String attribs)
version
public java.lang.String version()
- return the version of the library.
- Returns:
- String
speak
public void speak(java.lang.String str)
- Parameters:
str
- What to speak
processing library Parrot by Chandler McWilliams. 2009