Extracted the error types in the Recording package target into the Errors folder.

This commit is contained in:
2026-07-04 19:17:18 +02:00
parent beb4f7b4cc
commit 9949c94490
5 changed files with 20 additions and 25 deletions
@@ -1,13 +0,0 @@
import Foundation
/// An error of the recording flow, surfaced to the user by ``RecordingView``.
public enum RecordingError: Error, Equatable, Sendable {
/// The speech model assets for the locale to transcribe could not be reserved or installed.
case assetsUnavailable
/// The audio capture failed to start, resume, or stop.
case captureFailed
/// The user denied the app permission to record audio from the microphone.
case permissionDenied
/// The recorded audio failed to transcribe.
case transcriptionFailed
}