[Update]离线TTS支持语音播报完成的回调和停止语音播报

This commit is contained in:
chenfufeng
2022-03-04 16:05:10 +08:00
parent b382c54612
commit 02bdba7832
4 changed files with 51 additions and 16 deletions

View File

@@ -58,6 +58,10 @@ interface IMogoTTS extends IProvider {
*/
void speakTTSVoice( String tts, PreemptType type, IMogoTTSCallback callback );
void stopSpeakTts(String text);
void stopTts();
/**
* 注册问答指令,默认恢复:确认、取消
*

View File

@@ -71,6 +71,9 @@ interface IMogoTTSCallback {
default void onSpeakEnd( String speakText ) {
}
default void onSpeakError( String speakText, String errorMsg) {
}
/**
* 语音播报完临时命令选择超时
*