|
|
@@ -3,7 +3,6 @@ package com.sheep.gamegroup.util;
|
|
|
import android.speech.tts.TextToSpeech;
|
|
|
import android.text.TextUtils;
|
|
|
|
|
|
-import com.bumptech.glide.Glide;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
|
|
|
@@ -24,7 +23,7 @@ public class TextToSpeechUtil {
|
|
|
*/
|
|
|
public static TextToSpeechUtil get() {
|
|
|
if (instance == null) {
|
|
|
- synchronized (Glide.class) {
|
|
|
+ synchronized (TextToSpeechUtil.class) {
|
|
|
if (instance == null) {
|
|
|
instance = new TextToSpeechUtil();
|
|
|
}
|
|
|
@@ -168,6 +167,7 @@ public class TextToSpeechUtil {
|
|
|
public static void stopTTS(){
|
|
|
if(instance != null){
|
|
|
instance.stopAndShutdownTTS();
|
|
|
+ instance = null;
|
|
|
}
|
|
|
}
|
|
|
}
|