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

Satisfy swiftformat on the code this branch adds

Erik Biebingerf6ec92526580
diff --git a/Sources/Fluid/Services/MeetingTranscriptionService.swift b/Sources/Fluid/Services/MeetingTranscriptionService.swift
index 282a1797..73150471 100644
--- a/Sources/Fluid/Services/MeetingTranscriptionService.swift
+++ b/Sources/Fluid/Services/MeetingTranscriptionService.swift
@@ -11,7 +11,9 @@ struct SpeakerTranscriptSegment: Identifiable, Sendable, Codable, Equatable {
let endSeconds: Double
let text: String
- var id: String { "\(self.speaker)-\(self.startSeconds)" }
+ var id: String {
+ "\(self.speaker)-\(self.startSeconds)"
+ }
enum CodingKeys: String, CodingKey {
case speaker, startSeconds, endSeconds, text
diff --git a/Sources/Fluid/Services/SpeakerDiarizationService.swift b/Sources/Fluid/Services/SpeakerDiarizationService.swift
index 3fd91b0c..e21c6de1 100644
--- a/Sources/Fluid/Services/SpeakerDiarizationService.swift
+++ b/Sources/Fluid/Services/SpeakerDiarizationService.swift
@@ -14,7 +14,9 @@ actor SpeakerDiarizationService {
let startSeconds: Double
let endSeconds: Double
- var durationSeconds: Double { self.endSeconds - self.startSeconds }
+ var durationSeconds: Double {
+ self.endSeconds - self.startSeconds
+ }
}
private let manager: OfflineDiarizerManager
@@ -123,7 +125,9 @@ actor SpeakerDiarizationService {
let startSeconds: Double
let endSeconds: Double
- var durationSeconds: Double { self.endSeconds - self.startSeconds }
+ var durationSeconds: Double {
+ self.endSeconds - self.startSeconds
+ }
}
init(expectedSpeakers: Int? = nil) {}
diff --git a/Sources/Fluid/UI/MeetingTranscriptionView.swift b/Sources/Fluid/UI/MeetingTranscriptionView.swift
index c79279e1..8e204aff 100644
--- a/Sources/Fluid/UI/MeetingTranscriptionView.swift
+++ b/Sources/Fluid/UI/MeetingTranscriptionView.swift
@@ -189,7 +189,7 @@ struct MeetingTranscriptionView: View {
Picker("", selection: self.$settings.fileTranscriptionExpectedSpeakerCount) {
Text("Auto").tag(0)
- ForEach(2 ... 8, id: \.self) { count in
+ ForEach(2...8, id: \.self) { count in
Text("\(count)").tag(count)
}
}
diff --git a/Tests/FluidDictationIntegrationTests/SpeakerTurnMergingTests.swift b/Tests/FluidDictationIntegrationTests/SpeakerTurnMergingTests.swift
index 1f1c0e60..35f9927d 100644
--- a/Tests/FluidDictationIntegrationTests/SpeakerTurnMergingTests.swift
+++ b/Tests/FluidDictationIntegrationTests/SpeakerTurnMergingTests.swift
@@ -11,7 +11,6 @@ import XCTest
// but the coupling should not be discovered again from scratch.
final class SpeakerTurnMergingTests: XCTestCase {
-
private typealias Turn = SpeakerDiarizationService.SpeakerTurn
private func turn(_ speaker: String, _ start: Double, _ end: Double) -> Turn {