Updated the Capturing procotol in the Recording package target to pass captured audio as a file URL instead of data.

This commit is contained in:
2026-07-04 15:06:55 +02:00
parent 2fe240de1a
commit 6a0e7698a5
10 changed files with 116 additions and 119 deletions
@@ -11,11 +11,11 @@ struct DummyTranscribing: Transcribing {
/// Simulates the transcription of the given recorded audio with a two-second delay.
///
/// - Parameters:
/// - audio: The recorded audio to transcribe.
/// - audio: The location of the recorded audio file to transcribe.
/// - locale: The locale of the spoken language to transcribe.
/// - Returns: A dummy transcription.
func callAsFunction(
_ audio: Data,
_ audio: URL,
locale: Locale
) async throws -> Transcription {
try await Task.sleep(for: Constant.Delay.transcribing)