fix(mac,asr): harden menu-bar delivery, chunk retry, and polish validator
Retain the external target app for menu-bar paste and polish context, retry failed middle ASR chunks once, and stop false-positive path/number violations.
This commit is contained in:
@@ -8,7 +8,14 @@
|
||||
|
||||
@preconcurrency import AVFoundation
|
||||
|
||||
final class MacAudioRecorder: @unchecked Sendable {
|
||||
protocol MacAudioRecording: Sendable {
|
||||
func level() -> Float
|
||||
func start() async throws
|
||||
func makeSnapshotStream() -> AsyncStream<AudioBufferSnapshot>
|
||||
func stop() -> [Float]
|
||||
}
|
||||
|
||||
final class MacAudioRecorder: MacAudioRecording, @unchecked Sendable {
|
||||
enum RecorderError: Error, LocalizedError {
|
||||
case converterUnavailable
|
||||
case microphoneAccessDenied
|
||||
|
||||
Reference in New Issue
Block a user