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
Smoothen the download progress
grohith3278c85c8ef4b7b
diff --git a/Sources/Fluid/UI/AISettingsView+SpeechRecognition.swift b/Sources/Fluid/UI/AISettingsView+SpeechRecognition.swiftindex 2dce538a..37fe7bcc 100644--- a/Sources/Fluid/UI/AISettingsView+SpeechRecognition.swift+++ b/Sources/Fluid/UI/AISettingsView+SpeechRecognition.swift@@ -355,23 +355,43 @@ extension VoiceEngineSettingsView {if self.viewModel.downloadingModel == model {// This specific model is currently being downloadedVStack(alignment: .trailing, spacing: 4) {- ProgressView(value: self.viewModel.downloadProgress)- .progressViewStyle(.linear)- .frame(width: 90)- Text("\(Int(self.viewModel.downloadProgress * 100))%")- .font(.caption2)- .foregroundStyle(.secondary)+ if self.viewModel.downloadProgress >= 0.82 {+ HStack(spacing: 6) {+ ProgressView()+ .controlSize(.mini)+ Text("Finalizing…")+ .font(.caption2)+ .foregroundStyle(.secondary)+ }+ } else {+ ProgressView(value: self.viewModel.downloadProgress)+ .progressViewStyle(.linear)+ .frame(width: 90)+ Text("\(Int(self.viewModel.downloadProgress * 100))%")+ .font(.caption2)+ .foregroundStyle(.secondary)+ }}} else if (self.viewModel.asr.isDownloadingModel || self.viewModel.asr.isLoadingModel) && isConfiguredActive && !self.viewModel.asr.isAsrReady {// Active model is loading/downloading (for Activate flow)VStack(alignment: .trailing, spacing: 4) {if let progress = self.viewModel.asr.downloadProgress, self.viewModel.asr.isDownloadingModel {- ProgressView(value: progress)- .progressViewStyle(.linear)- .frame(width: 90)- Text("\(Int(progress * 100))%")- .font(.caption2)- .foregroundStyle(.secondary)+ if progress >= 0.82 {+ HStack(spacing: 6) {+ ProgressView()+ .controlSize(.mini)+ Text("Finalizing…")+ .font(.caption2)+ .foregroundStyle(.secondary)+ }+ } else {+ ProgressView(value: progress)+ .progressViewStyle(.linear)+ .frame(width: 90)+ Text("\(Int(progress * 100))%")+ .font(.caption2)+ .foregroundStyle(.secondary)+ }} else {ProgressView().controlSize(.mini)@@ -468,9 +488,18 @@ extension VoiceEngineSettingsView {if (self.viewModel.asr.isDownloadingModel || self.viewModel.asr.isLoadingModel) && !self.viewModel.asr.isAsrReady {HStack(spacing: 8) {ProgressView().controlSize(.small)- Text(self.viewModel.asr.isLoadingModel ? "Loading model…" : "Downloading…")- .font(.caption)- .foregroundStyle(.secondary)+ if self.viewModel.asr.isDownloadingModel,+ let progress = self.viewModel.asr.downloadProgress,+ progress >= 0.82+ {+ Text("Finalizing download and loading model…")+ .font(.caption)+ .foregroundStyle(.secondary)+ } else {+ Text(self.viewModel.asr.isLoadingModel ? "Loading model…" : "Downloading…")+ .font(.caption)+ .foregroundStyle(.secondary)+ }}} else if self.viewModel.asr.isAsrReady {Image(systemName: "checkmark.circle.fill").foregroundStyle(Color.fluidGreen).font(.caption)diff --git a/Sources/Fluid/UI/WelcomeView.swift b/Sources/Fluid/UI/WelcomeView.swiftindex 35041154..85d18a73 100644--- a/Sources/Fluid/UI/WelcomeView.swift+++ b/Sources/Fluid/UI/WelcomeView.swift@@ -796,11 +796,21 @@ struct OnboardingFlowView: View {if self.isPreparingRecommendedModel {VStack(alignment: .leading, spacing: 6) {if self.asr.isDownloadingModel, let progress = self.asr.downloadProgress {- ProgressView(value: progress)- .tint(self.theme.palette.accent)- Text("Downloading \(Int(progress * 100))%")- .font(.caption)- .foregroundStyle(.secondary)+ if progress >= 0.82 {+ HStack(spacing: 8) {+ ProgressView()+ .controlSize(.small)+ Text("Finalizing download and loading model…")+ .font(.caption)+ .foregroundStyle(.secondary)+ }+ } else {+ ProgressView(value: progress)+ .tint(self.theme.palette.accent)+ Text("Downloading \(Int(progress * 100))%")+ .font(.caption)+ .foregroundStyle(.secondary)+ }} else {HStack(spacing: 8) {ProgressView()@@ -1191,11 +1201,21 @@ struct OnboardingFlowView: View {if isPreparing {if self.asr.isDownloadingModel, let progress = self.asr.downloadProgress {- ProgressView(value: progress)- .tint(self.theme.palette.accent)- Text("Downloading \(Int(progress * 100))%")- .font(.caption2)- .foregroundStyle(.secondary)+ if progress >= 0.82 {+ HStack(spacing: 6) {+ ProgressView()+ .controlSize(.mini)+ Text("Finalizing...")+ .font(.caption2)+ .foregroundStyle(.secondary)+ }+ } else {+ ProgressView(value: progress)+ .tint(self.theme.palette.accent)+ Text("Downloading \(Int(progress * 100))%")+ .font(.caption2)+ .foregroundStyle(.secondary)+ }} else {Text("Loading model...").font(.caption2)