Skip to content

Fix local API file transcription limits - #906

Merged
altic-dev merged 5 commits into
mainfrom
B/fix-api-file-transcription
Aug 28, 2026
Merged

altic-dev merged 5 commits into
mainfrom
B/fix-api-file-transcription

Conversation

@altic-dev

@altic-dev altic-dev commented Aug 27, 2026 •

Copy link
Copy Markdown
Owner

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

  • 🐞 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 🧹 Chore
  • 📝 Documentation update

Related Issue or Discussion

Closes #876

Testing

  • Tested on Intel Mac
  • Tested on Apple Silicon Mac
  • Tested on macOS version: 27.0
  • Ran linter locally: swiftlint --strict --config .swiftlint.yml Sources
  • Ran formatter locally: swiftformat --config .swiftformat Sources
  • Ran tests locally: 7 focused audio/chunk/temp-file tests

Installed private FI app runtime proof:

  • 20-minute-and-1-second Parakeet path request returned HTTP 200 with all 19,216,000 samples
  • 20-minute-and-1-second extensionless raw upload returned HTTP 200 with all 19,216,000 samples and cleaned its temporary file
  • 301-second path request returned HTTP 200
  • 0.5-second extensionless raw upload returned HTTP 200

Screenshots / Video

  • No UI/visual changes; screenshots/video are not applicable.

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.

@greptile-apps

greptile-apps Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

Greptile Summary

This 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.

  • Raises the accepted request-body size from 25 MB to 500 MB.
  • Streams non-native file transcription through bounded 20-minute decoded chunks.
  • Writes byte-backed uploads to temporary files and supplies .wav for extensionless filenames.
  • Routes all provider work through the shared ASR transcription executor.
  • Adds focused coverage for chunk boundaries and extensionless temporary uploads.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (5): Last reviewed commit: "fix: preserve short native api uploads" | Re-trigger Greptile

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +33 to +35
self.fileTranscriptionOperation = fileTranscriptionOperation ?? { fileURL in
let service = MeetingTranscriptionService(asrService: AppServices.shared.asr)
return try await service.transcribeFile(fileURL)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment on lines +75 to +80
let result = try await self.fileTranscriptionOperation(fileURL)
return LocalAPI.json(
TranscribeResponse(
text: result.text,
confidence: result.confidence,
sampleCount: Self.sampleCount(forDuration: result.duration),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment on lines +33 to +35
self.fileTranscriptionOperation = fileTranscriptionOperation ?? { fileURL in
let service = MeetingTranscriptionService(asrService: AppServices.shared.asr)
return try await service.transcribeFile(fileURL)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +33 to +35
self.fileTranscriptionOperation = fileTranscriptionOperation ?? { fileURL in
let service = MeetingTranscriptionService(asrService: AppServices.shared.asr)
return try await service.transcribeFile(fileURL)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@github-actions

github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

FluidVoice PR build ready

Download 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

  1. Extract the downloaded artifact, then extract FluidVoice-PR-906.app.zip.

  2. Move FluidVoice Fix local API file transcription limits #906.app into the /Applications folder.

  3. Open Terminal and remove the download quarantine marker:

    xattr -dr com.apple.quarantine "/Applications/FluidVoice #906.app"
    
  4. In Applications, Control-click FluidVoice Fix local API file transcription limits #906.app and choose Open.

  5. If macOS still blocks it, open System Settings → Privacy & Security, click Open Anyway, and confirm.

This build has its own app identity, so its permissions are separate from the release version of FluidVoice.

View workflow run

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread Sources/Fluid/Services/ASRService.swift Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@altic-dev
altic-dev merged commit 8087b39 into main Aug 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Remove API upload time & size limits

1 participant