Skip to content

Select assemblyai-stt-3-7 for Blurt pre-recorded file and meeting transcriptions (Fixes #444) - #446

Closed
toufiqfarhan0 wants to merge 2 commits into
AssemblyAI:mainfrom
toufiqfarhan0:fix/file-transcriber-speech-models
Closed

toufiqfarhan0 wants to merge 2 commits into
AssemblyAI:mainfrom
toufiqfarhan0:fix/file-transcriber-speech-models

Conversation

@toufiqfarhan0

Copy link
Copy Markdown
Contributor

What & why

Fixes #444.

FileTranscriber (Sources/BlurtAssemblyAI/FileTranscriber.swift) uses AsyncTranscriptionClient (Sources/AssemblyAI/Async/AsyncTranscriptionClient.swift), whose TranscriptRequest only encoded audio_url and speaker_labels. Leaving speech_models omitted on POST /v2/transcript routes Blurt's dropped files and recorded meetings to universal-3-5-pro instead of assemblyai-stt-3-7.

Following the SDK/provider boundary in Sources/AssemblyAI/README.md:

  • TranscriptRequest and AsyncTranscriptionClient accept an optional speechModels: [String] = [] (omitted from the request JSON when empty, keeping the SDK defaultless).
  • FileTranscriber selects ["assemblyai-stt-3-7", "universal-2"], so all pre-recorded file and meeting transcriptions run assemblyai-stt-3-7 while falling back to universal-2 for languages outside 3.7's 32-language set.
  • Updated Sources/BlurtAssemblyAI/README.md and added unit test FileTranscriptionTests.fileTranscriberSpeechModels().

How it was tested

Verified live against POST https://api.assemblyai.com/v2/transcript:

  • Omitting speech_models completed with speech_model_used: "universal-3-5-pro".
  • Passing speech_models: ["assemblyai-stt-3-7", "universal-2"] completed with speech_model_used: "assemblyai-stt-3-7".

Locally (Windows host — cannot run macOS/Swift builds locally):

  • scripts/check-invariants.sh, scripts/check-swift-size.sh, scripts/check-test-clock.sh, and scripts/check-swift-lint-lite.sh on modified Swift files all passed; CI will verify Swift build, swiftlint, swift-format, and tests on macOS/iOS.

  • scripts/check.sh passes (or CI will, if I'm not on a Mac)

  • I read AGENTS.md and this doesn't reintroduce anything deliberately removed

  • Docs updated if behavior changed

@alexkroman
alexkroman added this pull request to the merge queue Nov 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 27, 2026
@alexkroman
alexkroman enabled auto-merge November 27, 2026 13:58

Copy link
Copy Markdown
Collaborator

Thanks for this fix! This PR conflicted with main, and since it comes from a fork we can't push the resolution to your branch. So it continues in #448, which keeps both of your commits unchanged and adds one merge of main.

The only conflict was the table in Sources/BlurtAssemblyAI/README.md. #448 keeps your FileTranscriber row and the RealtimeTranscriber row from #442.

If you'd rather land it here, run git pull https://github.com/AssemblyAI/blurt claude/magical-cori-t1crxw on your branch and push. Otherwise #448 will carry it.


Generated by Claude Code

@alexkroman alexkroman closed this Nov 27, 2026
auto-merge was automatically disabled November 27, 2026 20:05

Pull request was closed

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.

FileTranscriber omits speech_models, routing file and meeting transcriptions to universal-3-5-pro instead of assemblyai-stt-3-7

2 participants