@Test public void testGetStatus() { NSSpeechSynthesizer ss = NSSpeechSynthesizer.synthesizerWithVoice(null); SynthesizerDelegate sd = new SynthesizerDelegate(ss); NSSpeechStatus status = ss.getStatus(); assertEquals(status.isOutputBusy(), ss.isSpeaking()); assertFalse(status.isOutputPaused()); assertEquals("Should have no characters left", 0, status.getNumberOfCharactersLeft()); assertEquals(0, status.getPhonemeCode()); ss.startSpeakingString("Status check"); status = ss.getStatus(); assertEquals(status.isOutputBusy(), ss.isSpeaking()); assertFalse(status.isOutputPaused()); assertTrue("Should have characters left", status.getNumberOfCharactersLeft() > 0); sd.waitForSpeechDone(TIME_TO_WAIT, true); }
public NSSpeechStatus getStatus() { return new NSSpeechStatus(Rococoa.cast(getProperty(SpeechProperty.StatusProperty), NSMutableDictionary.class)); }
NSSpeechSynthesizer extends NSObject { public NSSpeechStatus getStatus() { return new NSSpeechStatus(Rococoa.cast(getProperty(SpeechProperty.StatusProperty), NSMutableDictionary.class)); } }
NSSpeechSynthesizer extends NSObject { public NSSpeechStatus getStatus() { return new NSSpeechStatus(Rococoa.cast(getProperty(SpeechProperty.StatusProperty), NSMutableDictionary.class)); }  }
NSSpeechSynthesizer extends NSObject { public NSSpeechStatus getStatus() { return new NSSpeechStatus(Rococoa.cast(getProperty(SpeechProperty.StatusProperty), NSMutableDictionary.class)); }  static NSSpeechSynthesizer synthesizerWithVoiceIdentifier(String voiceIdentifer); static NSSpeechSynthesizer synthesizerWithVoice(NSVoice voice); static NSVoice defaultVoice(); static List<NSVoice> availableVoices(); static boolean isAnyApplicationSpeaking(); synchronized void setDelegate(final NSSpeechSynthesizerDelegate delegate); synchronized NSSpeechSynthesizerDelegate getDelegate(); String opcodeToPhoneme(short opcode); static String createSyncPoint(int marker); NSObject getProperty(SpeechProperty property); void setProperty(SpeechProperty property, NSObject value); void addSpeechDictionary(NSSpeechDictionary dictionary); NSSpeechStatus getStatus(); NSSpeechError getError(); NSSpeechMode getInputMode(); void setInputMode(NSSpeechMode mode); NSSpeechMode getCharacterMode(); void setCharacterMode(NSSpeechMode mode); NSSpeechMode getNumberMode(); void setNumberMode(NSSpeechMode mode); NSSpeechSynthesizerInfo getSynthesizerInfo(); float getPitchBase(); void setPitchBase(float baselinePitch); float getPitchMod(); void setPitchMod(float modulation); List<NSSpeechPhonemeInfo> getPhonemeInfo(); int getRecentSync(); boolean setVoice(NSVoice voice); NSVoice getVoice(); void setCommandDelimiter(NSSpeechCommand delimiters); void reset(); void setOutputToFileURL(URI uri); boolean startSpeakingStringToURL(String text, URI uri); abstract void continueSpeaking(); abstract boolean isSpeaking(); abstract void pauseSpeakingAtBoundary(NSSpeechBoundary boundary); abstract String phonemesFromText(String text); abstract float rate(); abstract void setRate(float rate); abstract void setUsesFeedbackWindow(boolean useFeedbackWindow); abstract boolean setVoice(String voiceIdentifier); abstract void setVolume(float volume); abstract boolean startSpeakingString(String text); abstract void stopSpeaking(); abstract void stopSpeakingAtBoundary(NSSpeechBoundary boundary); abstract boolean usesFeedbackWindow(); String getVoiceIdentifier(); float getVolume(); }
NSSpeechSynthesizer extends NSObject { public NSSpeechStatus getStatus() { return new NSSpeechStatus(Rococoa.cast(getProperty(SpeechProperty.StatusProperty), NSMutableDictionary.class)); }  static NSSpeechSynthesizer synthesizerWithVoiceIdentifier(String voiceIdentifer); static NSSpeechSynthesizer synthesizerWithVoice(NSVoice voice); static NSVoice defaultVoice(); static List<NSVoice> availableVoices(); static boolean isAnyApplicationSpeaking(); synchronized void setDelegate(final NSSpeechSynthesizerDelegate delegate); synchronized NSSpeechSynthesizerDelegate getDelegate(); String opcodeToPhoneme(short opcode); static String createSyncPoint(int marker); NSObject getProperty(SpeechProperty property); void setProperty(SpeechProperty property, NSObject value); void addSpeechDictionary(NSSpeechDictionary dictionary); NSSpeechStatus getStatus(); NSSpeechError getError(); NSSpeechMode getInputMode(); void setInputMode(NSSpeechMode mode); NSSpeechMode getCharacterMode(); void setCharacterMode(NSSpeechMode mode); NSSpeechMode getNumberMode(); void setNumberMode(NSSpeechMode mode); NSSpeechSynthesizerInfo getSynthesizerInfo(); float getPitchBase(); void setPitchBase(float baselinePitch); float getPitchMod(); void setPitchMod(float modulation); List<NSSpeechPhonemeInfo> getPhonemeInfo(); int getRecentSync(); boolean setVoice(NSVoice voice); NSVoice getVoice(); void setCommandDelimiter(NSSpeechCommand delimiters); void reset(); void setOutputToFileURL(URI uri); boolean startSpeakingStringToURL(String text, URI uri); abstract void continueSpeaking(); abstract boolean isSpeaking(); abstract void pauseSpeakingAtBoundary(NSSpeechBoundary boundary); abstract String phonemesFromText(String text); abstract float rate(); abstract void setRate(float rate); abstract void setUsesFeedbackWindow(boolean useFeedbackWindow); abstract boolean setVoice(String voiceIdentifier); abstract void setVolume(float volume); abstract boolean startSpeakingString(String text); abstract void stopSpeaking(); abstract void stopSpeakingAtBoundary(NSSpeechBoundary boundary); abstract boolean usesFeedbackWindow(); String getVoiceIdentifier(); float getVolume(); static final _Class CLASS; }