SayLatte

public class SayLatte

text to speech

Author:cforster

Fields

AGNES

public static final String AGNES

ALBERT

public static final String ALBERT

ALEX

public static final String ALEX

BAD_NEWS

public static final String BAD_NEWS

BAHH

public static final String BAHH

BELLS

public static final String BELLS

BOING

public static final String BOING

BRUCE

public static final String BRUCE

BUBBLES

public static final String BUBBLES

CELLOS

public static final String CELLOS

DERANGED

public static final String DERANGED

FRED

public static final String FRED

GOOD_NEWS

public static final String GOOD_NEWS

HYSTERICAL

public static final String HYSTERICAL

JUNOR

public static final String JUNOR

KATHY

public static final String KATHY

PIPE_ORGAN

public static final String PIPE_ORGAN

PRINCESS

public static final String PRINCESS

RALPH

public static final String RALPH

TRINOIDS

public static final String TRINOIDS

VICKI

public static final String VICKI

VICTORIA

public static final String VICTORIA

WHISPER

public static final String WHISPER

ZARVOX

public static final String ZARVOX

Constructors

SayLatte

public SayLatte()

Methods

main

public static void main(String[] args)

say

public void say(String s)

use the mac tts generator to speak

setVoice

public void setVoice(String voice)

set voice Agnes en_US # Isn’t it nice to have a computer that will talk to you? Albert en_US # I have a frog in my throat. No, I mean a real frog! Alex en_US # Most people recognize me by my voice. Bad News en_US # The light you see at the end of the tunnel is the headlamp of a fast approaching train. Bahh en_US # Do not pull the wool over my eyes. Bells en_US # Time flies when you are having fun. Boing en_US # Spring has sprung, fall has fell, winter’s here and it’s colder than usual. Bruce en_US # I sure like being inside this fancy computer Bubbles en_US # Pull the plug! I’m drowning! Cellos en_US # Doo da doo da dum dee dee doodly doo dum dum dum doo da doo da doo da doo da doo da doo da doo Deranged en_US # I need to go on a really long vacation. Fred en_US # I sure like being inside this fancy computer Good News en_US # Congratulations you just won the sweepstakes and you don’t have to pay income tax again. Hysterical en_US # Please stop tickling me! Junior en_US # My favorite food is pizza. Kathy en_US # Isn’t it nice to have a computer that will talk to you? Pipe Organ en_US # We must rejoice in this morbid voice. Princess en_US # When I grow up I’m going to be a scientist. Ralph en_US # The sum of the squares of the legs of a right triangle is equal to the square of the hypotenuse. Trinoids en_US # We cannot communicate with these carbon units. Vicki en_US # Isn’t it nice to have a computer that will talk to you? Victoria en_US # Isn’t it nice to have a computer that will talk to you? Whisper en_US # Pssssst, hey you, Yeah you, Who do ya think I’m talking to, the mouse? Zarvox en_US # That looks like a peaceful planet.

wait

public void wait(int millis)

wait a given number of milliseconds

Parameters:
  • millis – the amount of time to wait