Shutdown TTS

pull/217/head
M66B 1 year ago
parent 4ac19592da
commit f378eff5b0

@ -93,6 +93,17 @@ public class TTSHelper {
public void onDone(String utteranceId) {
Log.i("TTS done=" + utteranceId);
report(utteranceId);
synchronized (lock) {
if (queue.isEmpty())
try {
Log.i("TTS shutdown");
instance.shutdown();
} catch (Throwable ex) {
Log.e(ex);
} finally {
instance = null;
}
}
}
@Override

Loading…
Cancel
Save