mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
CheckVoiceData.java: don't use the deprecated EXTRA_CHECK_VOICE_DATA_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.
This commit is contained in:
@@ -27,7 +27,6 @@ import android.app.Activity;
|
||||
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;
|
||||
|
||||
@@ -39,7 +38,6 @@ import java.io.FileInputStream;
|
||||
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;
|
||||
@@ -123,16 +121,6 @@ public class CheckVoiceData extends Activity {
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user