@Test public void testAvailableVoices() { assertEquals(NSSpeechSynthesizer.CLASS.availableVoices().count(), NSSpeechSynthesizer.availableVoices().size()); assertTrue(NSSpeechSynthesizer.availableVoices().size() > 0); assertNotNull(NSSpeechSynthesizer.availableVoices().get(0).getName()); assertTrue(NSSpeechSynthesizer.availableVoices().get(0).getName().length() > 0); }
public static List<NSVoice> availableVoices() { NSArray availableVoices = CLASS.availableVoices(); List<NSVoice> result = new ArrayList<NSVoice>(availableVoices.count()); for (int i=0; i < availableVoices.count(); i++) { result.add(new NSVoice(CLASS.attributesForVoice(availableVoices.objectAtIndex(i).toString()))); } return result; }
NSSpeechSynthesizer extends NSObject { public static List<NSVoice> availableVoices() { NSArray availableVoices = CLASS.availableVoices(); List<NSVoice> result = new ArrayList<NSVoice>(availableVoices.count()); for (int i=0; i < availableVoices.count(); i++) { result.add(new NSVoice(CLASS.attributesForVoice(availableVoices.objectAtIndex(i).toString()))); } return result; } }
NSSpeechSynthesizer extends NSObject { public static List<NSVoice> availableVoices() { NSArray availableVoices = CLASS.availableVoices(); List<NSVoice> result = new ArrayList<NSVoice>(availableVoices.count()); for (int i=0; i < availableVoices.count(); i++) { result.add(new NSVoice(CLASS.attributesForVoice(availableVoices.objectAtIndex(i).toString()))); } return result; }  }
NSSpeechSynthesizer extends NSObject { public static List<NSVoice> availableVoices() { NSArray availableVoices = CLASS.availableVoices(); List<NSVoice> result = new ArrayList<NSVoice>(availableVoices.count()); for (int i=0; i < availableVoices.count(); i++) { result.add(new NSVoice(CLASS.attributesForVoice(availableVoices.objectAtIndex(i).toString()))); } return result; }  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 static List<NSVoice> availableVoices() { NSArray availableVoices = CLASS.availableVoices(); List<NSVoice> result = new ArrayList<NSVoice>(availableVoices.count()); for (int i=0; i < availableVoices.count(); i++) { result.add(new NSVoice(CLASS.attributesForVoice(availableVoices.objectAtIndex(i).toString()))); } return result; }  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; }