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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user