com.brysonian.parrot
Class Parrot

java.lang.Object
  extended by 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.
 
Method Summary
static com.apple.cocoa.foundation.NSDictionary attributesForVoice(java.lang.String attribs)
           
static com.apple.cocoa.foundation.NSArray availableVoices()
           
static java.lang.String defaultVoice()
           
 boolean isAnyApplicationSpeaking()
           
 boolean isSpeaking()
           
 boolean setVoice(java.lang.String voice)
           
 void speak(java.lang.String str)
           
 void stopSpeaking()
           
 java.lang.String version()
          return the version of the library.
 java.lang.String voice()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public final java.lang.String VERSION
See Also:
Constant Field Values
Constructor Detail

Parrot

public Parrot()
Constructor


Parrot

public Parrot(java.lang.String voice)
Alt Constructor. Pass voice to use

Method Detail

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