[Feat]TTS支持按优先级排队和打断机制

This commit is contained in:
chenfufeng
2022-10-21 11:18:51 +08:00
parent c0ab0408b1
commit 6e0e117e0e
3 changed files with 101 additions and 2 deletions

View File

@@ -90,6 +90,17 @@ public class AIAssist {
}
}
/**
* 等级由低到高为0、1、2、3分别对应p3、p2、p1、p0
* @param text
* @param level
*/
public void speakTTSVoiceWithLevel(String text, int level) {
if (mTTS != null) {
mTTS.speakTTSVoiceWithLevel(text, level);
}
}
/**
* 语音播报
*