提交
This commit is contained in:
parent
7cf247a873
commit
f99f4e1b4a
|
|
@ -413,6 +413,8 @@ namespace ShengShengBuXi.Hubs
|
|||
|
||||
_logger.LogInformation($"结束音频流: {Context.ConnectionId}");
|
||||
|
||||
// 结束音频处理
|
||||
await _audioProcessingService.EndAudioStreamAsync(Context.ConnectionId);
|
||||
|
||||
var _speechsession = _speechToTextService.GetSessionStatus(Context.ConnectionId);
|
||||
if (_speechsession.HasSavedText && !_speechsession.IsSentToDisplay)
|
||||
|
|
@ -420,9 +422,9 @@ namespace ShengShengBuXi.Hubs
|
|||
|
||||
AddRecognizedTextToDisplay(_speechsession.FinalText, true, Context.ConnectionId, _speechsession);
|
||||
_speechsession.IsSentToDisplay = true;
|
||||
_logger.LogInformation($"结束音频流: {Context.ConnectionId}");
|
||||
}
|
||||
// 结束音频处理
|
||||
await _audioProcessingService.EndAudioStreamAsync(Context.ConnectionId);
|
||||
|
||||
|
||||
// 结束语音识别会话
|
||||
await _speechToTextService.EndSessionAsync(Context.ConnectionId);
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
"needVad": true
|
||||
}
|
||||
},
|
||||
"displayType": 0,
|
||||
"displayType": 1,
|
||||
"minDisplayText": 3,
|
||||
"maxDisplayText": 60
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user