mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
SpeechSynthesisTest: check the number of voices against the length of the test data array (VoiceData.voices) instead of hard coding it.
This commit is contained in:
@@ -108,7 +108,7 @@ public class SpeechSynthesisTest extends AndroidTestCase
|
||||
final SpeechSynthesis synth = new SpeechSynthesis(getContext(), mCallback);
|
||||
mVoices = synth.getAvailableVoices();
|
||||
assertThat(mVoices, is(notNullValue()));
|
||||
assertThat(mVoices.size(), is(78));
|
||||
assertThat(mVoices.size(), is(VoiceData.voices.length));
|
||||
}
|
||||
return mVoices;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user