mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 14:04:27 +00:00
Fix updating the number of installed voices after installing them within the activity.
This commit is contained in:
@@ -51,6 +51,8 @@ import java.util.Locale;
|
||||
*/
|
||||
@SuppressLint("NewApi")
|
||||
public class TtsService extends TextToSpeechService {
|
||||
public static final String ESPEAK_INITIALIZED = "com.reecedunn.espeak.ESPEAK_INITIALIZED";
|
||||
|
||||
private static final String TAG = TtsService.class.getSimpleName();
|
||||
private static final boolean DEBUG = false;
|
||||
|
||||
@@ -95,6 +97,9 @@ public class TtsService extends TextToSpeechService {
|
||||
|
||||
mEngine = new SpeechSynthesis(this, mSynthCallback);
|
||||
mAvailableVoices = mEngine.getAvailableVoices();
|
||||
|
||||
final Intent intent = new Intent(ESPEAK_INITIALIZED);
|
||||
sendBroadcast(intent);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user