public void speak ( String text ) { if ( voice == null ) { throw new IllegalStateException ( "Cannot find a voice named " + voiceName ) ; } voice . speak ( text ) ; }
Synthesizes speech of the given text and plays immediately .