Skip to content

Commit

Permalink
第二节
Browse files Browse the repository at this point in the history
整合语音识别
在本节中,您将通过在视图生命周期的特定点调用方法将语音识别器集成到会议视图中。
  • Loading branch information
mona-lisa-octo-ue5 committed Jan 6, 2021
1 parent 45de473 commit 8501127
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file not shown.
3 changes: 2 additions & 1 deletion SwiftUIPro/SwiftUIPro/MeetingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ struct MeetingView: View {
}
.onDisappear{
scrumTimer.stopScrum()
// speechRecognizer.stopReco
speechRecognizer.stopRecording()
isRecording=false
let newHistory=History(attendees: scrum.attendees, lengthInMinutes: scrumTimer.secondsElapsed/60)
scrum.history.insert(newHistory, at: 0)
}
Expand Down

0 comments on commit 8501127

Please sign in to comment.