Repository navigation
Conversation
…llows. gpt-4o-transcribe-diarize refuses audio past 1400 seconds, and a 42-minute mix at 64 kbit/s is only about 20 MB, so the size check sent it whole.
… 6.2. The property-listener block is @sendable, and capturing the recorder in a main-actor closure is rejected. The hop is the same next-turn checkRoute.
3 of 4 tasks
This was referenced Oct 19, 2026
ekho
added a commit
to ekho/verbemo
that referenced
this pull request
Oct 21, 2026
Cut OpenAI audio by the tighter byte or defensive 1390-second duration ceiling, validate encoded parts, and key cached responses by actual source ranges. Preserve source audio and successful responses across retries. Adapted from Dmitry Tsoy's gsamat/amanu#18, source 31b8ec434224ad6ead27c37dec8db51694a1b757, reviewed at 101b41816fe7cd359a453d3d4653a19df028e20b. Keep upstream links in provenance records. Validation: CI run 39682864995 completed successfully on 46b5ce6, including macOS, Windows, release-script tests, independence guard, and shared preview validation. Closes #6 Co-Authored-By: Dmitry Tsoy <hd.deman@gmail.com> Co-Authored-By: OpenAI Codex <noreply@openai.com>
Owner
|
Thank you very much for diagnosing the 1400-second OpenAI limit and putting this fix together, and sorry it took us so long to review it! This has now been superseded by the newer streaming & pause-aligned slicing implementation (#60, with additional fixes integrated for 0.6.6), so we're closing this PR. Really appreciate the contribution! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gpt-4o-transcribe-diarizerefuses audio longer than 1400 seconds even when the file is under 25 MB. A 42-minute mix at 64 kbit/s is about 20 MB, so the size check sent it whole and the API answered HTTP 400 (2530 seconds, 21 September).@Sendableblock captured the recorder in a main-actor closure. The same next-turncheckRoutenow goes through a method.Test plan
swift test --filter OpenAIEngineTestsswift test --filter MicRestartTests2026.09.21-1449 PSF Deep Archive Flow Introduction (zoom.us). The archive is still there;transcription_failedhas to be cleared first (Re-transcribe does that).