Repository navigation
Fix local API file transcription limits - #906
Conversation
Greptile SummaryThis PR raises the Local API request-body limit and replaces the five-minute decoding cutoff with bounded chunked transcription while preserving normalization, provider serialization, short-audio padding, and temporary-file cleanup.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a9b6708e29
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| self.fileTranscriptionOperation = fileTranscriptionOperation ?? { fileURL in | ||
| let service = MeetingTranscriptionService(asrService: AppServices.shared.asr) | ||
| return try await service.transcribeFile(fileURL) |
There was a problem hiding this comment.
Keep sub-second API audio transcribable
When the selected provider does not implement native file transcription—including the default Parakeet TDT provider—routing through MeetingTranscriptionService causes every chunk shorter than one second to be skipped at MeetingTranscriptionService.swift:619-623, so a valid short path or upload returns HTTP 200 with an empty transcript. The removed API path deliberately padded nonempty input to 16,000 samples before transcription; preserve equivalent padding or handle the final short chunk instead of dropping it.
Useful? React with 👍 / 👎.
| let result = try await self.fileTranscriptionOperation(fileURL) | ||
| return LocalAPI.json( | ||
| TranscribeResponse( | ||
| text: result.text, | ||
| confidence: result.confidence, | ||
| sampleCount: Self.sampleCount(forDuration: result.duration), |
There was a problem hiding this comment.
Preserve API transcription post-processing
The TranscriptionResult.text returned by the meeting pipeline is raw provider output, while both removed API transcription methods applied filler-word removal, custom-dictionary replacements, and spoken-punctuation formatting. Consequently /v1/transcribe now ignores those configured transformations for every provider; apply the same API post-processing before placing result.text in the response.
Useful? React with 👍 / 👎.
| self.fileTranscriptionOperation = fileTranscriptionOperation ?? { fileURL in | ||
| let service = MeetingTranscriptionService(asrService: AppServices.shared.asr) | ||
| return try await service.transcribeFile(fileURL) |
There was a problem hiding this comment.
Avoid persisting API transcripts in file history
Every successful nonempty API transcription now reaches one of the unconditional FileTranscriptionHistoryStore.shared.addEntry calls in MeetingTranscriptionService, which stores the transcript in UserDefaults and changes the selected UI history entry. The former API-specific methods had no persistence side effect, so automation can now silently retain sensitive API output and fill the user's 50-entry file history; the API path should disable history insertion.
Useful? React with 👍 / 👎.
| self.fileTranscriptionOperation = fileTranscriptionOperation ?? { fileURL in | ||
| let service = MeetingTranscriptionService(asrService: AppServices.shared.asr) | ||
| return try await service.transcribeFile(fileURL) |
There was a problem hiding this comment.
Keep API requests out of meeting usage metrics
Each API request now executes AnalyticsService.shared.recordUsage(mode: .meeting, ...) at MeetingTranscriptionService.swift:475-478. The removed API-specific path recorded no meeting usage, so clients that automate /v1/transcribe will inflate daily meeting and meeting-model counts even though no meeting workflow was used; pass an API/no-analytics context into the shared pipeline or suppress this event for API calls.
Useful? React with 👍 / 👎.
FluidVoice PR build readyDownload FluidVoice-PR-906-f8c8d7706538 The artifact contains the ad-hoc-signed app ZIP, Xcode archive, build manifest, and installation instructions. It expires 5 days after the build. Install the app
This build has its own app identity, so its permissions are separate from the release version of FluidVoice. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5a372cff99
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 400667311f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7d952f381f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Description
Raises the local API HTTP request-body cap from 25 MB to 500 MB and removes the 300-second decoder limit. Long path, raw-body, and base64 requests are routed through bounded 20-minute chunks for providers without native file transcription, preserving existing normalization, short-audio padding, and provider coordination without Meeting history or analytics side effects.
Type of Change
Related Issue or Discussion
Closes #876
Testing
swiftlint --strict --config .swiftlint.yml Sourcesswiftformat --config .swiftformat SourcesInstalled private FI app runtime proof:
Screenshots / Video
Notes
The 500 MB cap remains bounded because the existing HTTP server buffers request bodies. Uploaded audio is written to a temporary file off the main actor, decoded in bounded chunks, and removed after both success and failure.