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:
@@ -8,14 +8,14 @@ public protocol Transcribing: Sendable {
|
||||
|
||||
// MARK: Methods
|
||||
|
||||
/// Transcribes the given recorded audio into text, letting the service be called directly as a function.
|
||||
/// Transcribes the given recorded audio file into text, letting the service be called directly as a function.
|
||||
///
|
||||
/// - 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: The transcription of the recorded audio.
|
||||
func callAsFunction(
|
||||
_ audio: Data,
|
||||
_ audio: URL,
|
||||
locale: Locale
|
||||
) async throws -> Transcription
|
||||
|
||||
|
||||
Reference in New Issue
Block a user