Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

Fix lint errors

grohith327ab3b9a404e36
diff --git a/Tests/FluidDictationIntegrationTests/Helpers/AudioFixtureLoader.swift b/Tests/FluidDictationIntegrationTests/Helpers/AudioFixtureLoader.swift
index e8b9a9ec..c6a1e46e 100644
--- a/Tests/FluidDictationIntegrationTests/Helpers/AudioFixtureLoader.swift
+++ b/Tests/FluidDictationIntegrationTests/Helpers/AudioFixtureLoader.swift
@@ -26,12 +26,14 @@ enum AudioFixtureLoader {
let inputFile = try AVAudioFile(forReading: url)
let inputFormat = inputFile.processingFormat
- let desiredFormat = AVAudioFormat(
+ guard let desiredFormat = AVAudioFormat(
commonFormat: .pcmFormatFloat32,
sampleRate: 16_000,
channels: 1,
interleaved: false
- )!
+ ) else {
+ throw LoaderError.unsupportedAudio("Could not create desired audio format (16kHz mono Float32).")
+ }
// Fast-path: already 16k mono float
if inputFormat.sampleRate == desiredFormat.sampleRate,