Browse Source

SpeechSynthesisTest: skip testing voice data for missing voices.

master
Reece H. Dunn 12 years ago
parent
commit
5a2cfb2e7c

+ 7
- 0
android/eSpeakTests/src/com/reecedunn/espeak/test/SpeechSynthesisTest.java View File

import android.media.AudioFormat; import android.media.AudioFormat;
import android.speech.tts.TextToSpeech; import android.speech.tts.TextToSpeech;
import android.test.AndroidTestCase; import android.test.AndroidTestCase;
import android.util.Log;


import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;
{ {
for (VoiceData.Voice data : VoiceData.voices) for (VoiceData.Voice data : VoiceData.voices)
{ {
if (mRemoved.contains(data.name))
{
Log.i("SpeechSynthesisTest", "Skipping the missing voice '" + data.name + "'");
continue;
}

try try
{ {
final Voice voice = getVoice(data.name); final Voice voice = getVoice(data.name);

Loading…
Cancel
Save