mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-04 22:38:33 +00:00
SpeechSynthesisTest: skip testing voice data for missing voices.
This commit is contained in:
@@ -28,6 +28,7 @@ import com.reecedunn.espeak.SpeechSynthesis.Voice;
|
||||
import android.media.AudioFormat;
|
||||
import android.speech.tts.TextToSpeech;
|
||||
import android.test.AndroidTestCase;
|
||||
import android.util.Log;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.*;
|
||||
@@ -182,6 +183,12 @@ public class SpeechSynthesisTest extends AndroidTestCase
|
||||
{
|
||||
for (VoiceData.Voice data : VoiceData.voices)
|
||||
{
|
||||
if (mRemoved.contains(data.name))
|
||||
{
|
||||
Log.i("SpeechSynthesisTest", "Skipping the missing voice '" + data.name + "'");
|
||||
continue;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
final Voice voice = getVoice(data.name);
|
||||
|
||||
Reference in New Issue
Block a user