@SuppressWarnings("unchecked") @Test public void testInfo() { new JavaTestKit(system) { { final ActorRef observer = getRef(); tts.tell(new GetSpeechSynthesizerInfo(), observer); final SpeechSynthesizerResponse<SpeechSynthesizerInfo> response = this.expectMsgClass( FiniteDuration.create(30, TimeUnit.SECONDS), SpeechSynthesizerResponse.class); assertTrue(response.succeeded()); final Set<String> languages = response.get().languages(); assertTrue(languages.contains("ca")); assertTrue(languages.contains("zh-hk")); assertTrue(languages.contains("zh-tw")); assertTrue(languages.contains("da")); assertTrue(languages.contains("nl")); assertTrue(languages.contains("en-au")); assertTrue(languages.contains("en-ca")); assertTrue(languages.contains("en-gb")); assertTrue(languages.contains("en-in")); assertTrue(languages.contains("en")); assertTrue(languages.contains("fi")); assertTrue(languages.contains("fr-ca")); assertTrue(languages.contains("fr")); assertTrue(languages.contains("de")); assertTrue(languages.contains("it")); assertTrue(languages.contains("ja")); assertTrue(languages.contains("ko")); assertTrue(languages.contains("nb")); assertTrue(languages.contains("pl")); assertTrue(languages.contains("pt-br")); assertTrue(languages.contains("pt")); assertTrue(languages.contains("ru")); assertTrue(languages.contains("es-mx")); assertTrue(languages.contains("es")); assertTrue(languages.contains("sv")); } }; }
private SpeechSynthesizerInfo info() { return new SpeechSynthesizerInfo(men.keySet()); }
VoiceRSSSpeechSynthesizer extends RestcommUntypedActor { private SpeechSynthesizerInfo info() { return new SpeechSynthesizerInfo(men.keySet()); } }
VoiceRSSSpeechSynthesizer extends RestcommUntypedActor { private SpeechSynthesizerInfo info() { return new SpeechSynthesizerInfo(men.keySet()); } VoiceRSSSpeechSynthesizer(final Configuration configuration); }
VoiceRSSSpeechSynthesizer extends RestcommUntypedActor { private SpeechSynthesizerInfo info() { return new SpeechSynthesizerInfo(men.keySet()); } VoiceRSSSpeechSynthesizer(final Configuration configuration); @Override void onReceive(final Object message); }
VoiceRSSSpeechSynthesizer extends RestcommUntypedActor { private SpeechSynthesizerInfo info() { return new SpeechSynthesizerInfo(men.keySet()); } VoiceRSSSpeechSynthesizer(final Configuration configuration); @Override void onReceive(final Object message);  }