Skip to content

Commit 56696fd

Browse files
committed
Add RecordUrl
1 parent d76aea2 commit 56696fd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/SmartTalk.Core/Services/AiSpeechAssistant/AiSpeechAssistantService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public async Task ReceivePhoneRecordingStatusCallbackAsync(ReceivePhoneRecording
181181
record.TranscriptionText = completion.Content.FirstOrDefault()?.Text;
182182

183183
if (agent.SourceSystem == AgentSourceSystem.Smarties)
184-
await _smartiesClient.CallBackSmartiesAiSpeechAssistantRecordAsync(new AiSpeechAssistantCallBackRequestDto { CallSid = command.CallSid, RecordAnalyzeReport = record.TranscriptionText }, cancellationToken).ConfigureAwait(false);
184+
await _smartiesClient.CallBackSmartiesAiSpeechAssistantRecordAsync(new AiSpeechAssistantCallBackRequestDto { CallSid = command.CallSid, RecordUrl = record.Url, RecordAnalyzeReport = record.TranscriptionText }, cancellationToken).ConfigureAwait(false);
185185

186186
if (!string.IsNullOrEmpty(agent.WechatRobotKey))
187187
await _phoneOrderService.SendWorkWeChatRobotNotifyAsync(audioFileRawBytes, agent.WechatRobotKey, "錄音分析報告:\n" + record.TranscriptionText, cancellationToken).ConfigureAwait(false);

src/SmartTalk.Messages/Dto/AiSpeechAssistant/AiSpeechAssistantCallBackRequestDto.cs

+2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ public class AiSpeechAssistantCallBackRequestDto
44
{
55
public string CallSid { get; set; }
66

7+
public string RecordUrl { get; set; }
8+
79
public string RecordAnalyzeReport { get; set; }
810
}

0 commit comments

Comments
 (0)