mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-04 07:48:47 +00:00
Test and fix Java to IANA language code mapping.
This commit is contained in:
@@ -171,6 +171,14 @@ public class SpeechSynthesisTest extends TextToSpeechTestCase
|
||||
assertThat(synth.getBufferSizeInBytes(), is(22050));
|
||||
}
|
||||
|
||||
public void testJavaToIanaLanguageCode()
|
||||
{
|
||||
for (VoiceData.Voice data : VoiceData.voices)
|
||||
{
|
||||
assertThat(SpeechSynthesis.getIanaLanguageCode(data.javaLanguage), is(data.ianaLanguage));
|
||||
}
|
||||
}
|
||||
|
||||
public void testAddedVoices()
|
||||
{
|
||||
getVoices(); // Ensure that the voice data has been populated.
|
||||
|
||||
Reference in New Issue
Block a user