Gemini API Quota Exceeded in Apps Script: Backoff Plan
Fix gemini app script quota exceeded errors in Apps Script with practical checks for API limits, retries, batching, and the right Gemini project.

If your Whisper subtitles start in sync but drift later, or each caption appears before or after its spoken line, you have a whisper srt timing off problem. The most common cause is that the audio used to create the transcript differs from the audio in the video, often because one file was trimmed, retimed, or replaced after transcription.
An SRT file stores fixed start and end times; it does not follow edits to the media. Whisper estimates word timing from the audio it receives, so even a good transcript can be out of sync when the source or timeline changes. AI assistants such as ChatGPT, Copilot, Claude, Gemini, and NotebookLM may help prepare text, but their generated text does not verify SRT timestamps against your actual audio.
Open the video and subtitle file in your editor, such as VLC Media Player: choose Media > Open File to load the video, then use Subtitle > Add Subtitle File to load the SRT. Compare the opening, middle, and ending speech. If the captions align with a separate audio file but not the video, check that Whisper processed the audio track in this exact video version. Re-export subtitles from the matching source before editing timestamps.
Check a spoken line near the beginning and another near the end. If both are late by about the same amount, the issue is a constant offset. If the first aligns but the last is increasingly early or late, the error accumulates over time. This distinction confirms whether to shift all captions or adjust timing progressively; do not stretch the whole file to correct a single misaligned section.
Look for an opening slate, silence, or a delayed audio start in the editor timeline. Compare the first audible word with the first caption. If the audio begins, for example, two seconds after the video starts, captions generated from audio that began at zero may also need a two-second shift. In a subtitle editor such as Subtitle Edit, open the SRT and use its synchronization or adjust-times function; menu wording can vary by version. Preview the opening and one later cue to confirm the shift.
Check the project or clip properties in your video editor for playback speed and frame rate, and make sure the media is not being interpreted differently from the source used for transcription. A speed change alters when speech occurs relative to the timeline. Restore the intended speed, then preview several captions. If the video was converted to a different frame rate or retimed, generate subtitles from the final exported audio or use your subtitle editor’s synchronization tools for that specific timeline.
For a constant delay, apply one offset to every subtitle rather than editing each cue. In Subtitle Edit, open the file and look under Synchronization for an adjust or shift-times option; the exact label can vary. Enter the measured delay and apply it to all lines, then save as SRT. If editing the file directly, timestamps use HH:MM:SS,mmm --> HH:MM:SS,mmm; change both times in each cue by the same amount and preserve the numbering and blank lines. Reopen the saved file and test speech at the start and end.
When the error grows across the clip, use two known sync points: a clear spoken word near the start and one near the end. In a subtitle editor, use its synchronization function to align those points or split the file into sections and adjust each section independently. Confirm that cues between the anchors now match speech. Avoid guessing a universal correction value; the required adjustment depends on the actual clip duration and timing difference.
If one caption is wrong after you edited text with an AI assistant, locate the corresponding cue in the SRT and compare it with the audio. Correct that cue’s start and end times in a subtitle editor, or adjust the timestamps directly while keeping them in chronological order. Preview the edited line and its neighboring cues. If Whisper missed or inserted speech across a longer passage, regenerate that section from the correct audio rather than forcing unrelated captions to fit.
| Cause | Symptom | Quick test |
|---|---|---|
| Opening trim or silence | Every caption has similar delay | Compare first spoken word to first cue |
| Speed or timeline change | Gap grows across the clip | Compare early and late speech cues |
| Text edit or missed phrase | One area is out of sync | Listen around the affected cue |
Whisper timestamps reflect the audio supplied for transcription. If the video was trimmed, retimed, or has a different audio track, those timestamps may no longer match its timeline. Check the beginning and end to see whether the issue is a fixed offset or growing drift.
For a constant offset, shift every cue by the measured amount in a subtitle editor. For gradual drift, align early and late sync points or correct separate sections. Preview several points after saving to verify the timing.
An assistant can help explain SRT timestamp formatting or suggest edits, but it cannot confirm sync unless timing is checked against the actual audio. Keep a copy of the original file and verify any proposed timestamp changes in a media or subtitle editor.
Once you identify whether the problem is a fixed offset, gradual drift, or a local transcript mismatch, apply the matching correction and preview the full clip. If nothing worked, export the final audio from the edited video and regenerate the subtitles from that exact file, then compare sync at the beginning, middle, and end.
Photo: Shixart1985 / CC BY 2.0 (Wikimedia Commons)
Fix gemini app script quota exceeded errors in Apps Script with practical checks for API limits, retries, batching, and the right Gemini project.
ChatGPT export conversation missing? Learn what the archive includes, why messages may be absent, and how to check account, chat history, and export settings.
Copilot Excel pivot table help: fix source data, check Copilot access, and build a reliable PivotTable manually when AI can’t create it.
Fix teams transcript not showing issues by checking meeting policy, organizer controls, licensing, transcript access, and where Teams stores completed transcripts.
Fix whisper srt timing off by checking audio alignment, transcript edits, export settings, and manual SRT timestamps so subtitles stay in sync.
Fix chatgpt pdf table extraction wrong results with six practical prompts, source checks, and export steps for cleaner tables in ChatGPT and other AI assistants.
Fix chatgpt canvas not saving by checking save status, connection, browser cache, extensions, and workspace access, then recover or copy your latest edits safely.
Fix gemini deep research not available by checking your account type, plan, region, age eligibility, administrator controls, and temporary usage limits.
Fix gemini in google sheets not showing by checking Workspace eligibility, admin controls, smart features, file format, account selection, and browser issues.
Hit the notebooklm source limit? Learn how to combine files, split notebooks by project, and check current limits so you can use 300+ work documents effectively.