mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-18 10:48:54 +00:00
Test and fix Java to IANA country code mapping.
This commit is contained in:
@@ -179,6 +179,14 @@ public class SpeechSynthesisTest extends TextToSpeechTestCase
|
||||
}
|
||||
}
|
||||
|
||||
public void testJavaToIanaCountryCode()
|
||||
{
|
||||
for (VoiceData.Voice data : VoiceData.voices)
|
||||
{
|
||||
assertThat(SpeechSynthesis.getIanaCountryCode(data.javaCountry), is(data.ianaCountry));
|
||||
}
|
||||
}
|
||||
|
||||
public void testAddedVoices()
|
||||
{
|
||||
getVoices(); // Ensure that the voice data has been populated.
|
||||
|
||||
Reference in New Issue
Block a user