Renamed the RecordingService protocol in the Recording package target as Capturing.

This commit is contained in:
2026-07-04 13:41:56 +02:00
parent 69e30a9947
commit be130eb05f
8 changed files with 57 additions and 57 deletions
@@ -21,18 +21,18 @@ public struct RecordingView: View {
/// Creates a recording view in the not-recording state, attached to the given recording and transcribing services.
///
/// - Parameters:
/// - recorder: The service that captures the audio from a microphone.
/// - capturer: The service that captures the audio from a microphone.
/// - transcriber: The service that transcribes the recorded audio into text.
/// - locale: The binding to the locale of the spoken language to transcribe.
/// - onTranscription: The closure invoked with the transcription of every processed recording. Defaults to a closure that does nothing.
public init(
recorder: any RecordingService,
capturer: any Capturing,
transcriber: any Transcribing,
locale: Binding<Locale>,
onTranscription: @escaping (Transcription) -> Void
) {
self.model = .init(
recorder: recorder,
capturer: capturer,
transcribe: transcriber,
locale: locale
)
@@ -132,7 +132,7 @@ private enum Constant {
"Recording view"
) {
RecordingView(
recorder: DummyRecordingService(),
capturer: DummyCapturing(),
transcriber: DummyTranscribing(),
locale: .constant(.current)
) { _ in