Skip to content

Commit

Permalink
CheckVoiceData.java: don't use the deprecated EXTRA_CHECK_VOICE_DATA_…
Browse files Browse the repository at this point in the history
…FOR value

This is used to filter the list of languages returned. However, the
filtering is not needed on the engine side as the client can simply
enumerate through all the available voices instead.
  • Loading branch information
rhdunn committed Jul 27, 2013
1 parent 7c0f855 commit 3d0364f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions android/src/com/reecedunn/espeak/CheckVoiceData.java
Expand Up @@ -27,7 +27,6 @@
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.speech.tts.TextToSpeech;
import android.speech.tts.TextToSpeech.Engine;
import android.util.Log;

Expand All @@ -39,7 +38,6 @@
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Set;
Expand Down Expand Up @@ -123,16 +121,6 @@ protected void onCreate(Bundle savedInstanceState) {
availableLanguages.add(voice.toString());
}

final ArrayList<String> checkFor = getIntent().getStringArrayListExtra(
TextToSpeech.Engine.EXTRA_CHECK_VOICE_DATA_FOR);

if (checkFor != null && !checkFor.isEmpty()) {
final Set<String> checkForSet = new HashSet<String>(checkFor);

availableLanguages = filter(availableLanguages, checkForSet);
unavailableLanguages = filter(unavailableLanguages, checkForSet);
}

returnResults(Engine.CHECK_VOICE_DATA_PASS, dataPath, availableLanguages,
unavailableLanguages);
}
Expand Down

0 comments on commit 3d0364f

Please sign in to comment.