[Update]离线TTS支持语音播报完成的回调和停止语音播报
This commit is contained in:
@@ -58,6 +58,10 @@ interface IMogoTTS extends IProvider {
|
||||
*/
|
||||
void speakTTSVoice( String tts, PreemptType type, IMogoTTSCallback callback );
|
||||
|
||||
void stopSpeakTts(String text);
|
||||
|
||||
void stopTts();
|
||||
|
||||
/**
|
||||
* 注册问答指令,默认恢复:确认、取消
|
||||
*
|
||||
|
||||
@@ -71,6 +71,9 @@ interface IMogoTTSCallback {
|
||||
default void onSpeakEnd( String speakText ) {
|
||||
}
|
||||
|
||||
default void onSpeakError( String speakText, String errorMsg) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 语音播报完临时命令选择超时
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user