# Changelog of Speech to Text - Transcribe Audio & Video to SRT, VTT (`quietworkslab/audio-video-to-text`) Actor

- **URL**: https://apify.com/quietworkslab/audio-video-to-text/changelog.md
- **Full Actor documentation**: https://apify.com/quietworkslab/audio-video-to-text.md

## Changelog

### 0.1 (2026-11-24, Japanese line breaks, second step)

- The honorific prefixes お and ご stay with the word after them: 「ございましたら / お気軽に」, not 「お / 気軽に」; 「会議で / ご説明する」, not 「ご / 説明する」.
- A particle after a closing bracket stays with it: no line starts with the は of 「重要」は. When the bracket and its particle do not fit on the line, the subtitle is split at the nearest comma or sentence end.
- Checked against BudouX (Google's phrase splitter) on 41 Japanese sentences from our own articles: 43 of 45 line and subtitle breaks fall on a BudouX phrase boundary (39 of 43 in the 2026-11-23 version, 12 of 41 before it). The other two are after 、 and before ——.

### 0.1 (2026-11-23, Japanese line breaks)

- Japanese subtitle lines no longer break inside a word. Before, any two characters could be split, so a line could end in the middle of a word (「開始時 / 刻を」, 「動 / きやすい」). Lines now break after 、。 or a closing bracket, at a space, or between phrases (hiragana followed by kanji, katakana or a digit: 「木工教室の開始時刻を / 午前10時に変更します。」), and a break inside a word is used only when nothing else fits.
- Kinsoku: no line starts with 、。！？ー」 or a small kana (ゃ, ッ ...), and no line ends with 「 or （.
- A Japanese subtitle that could only be wrapped inside a word is split into two subtitles at the sentence end or comma nearest its middle.
- Chinese and English subtitles are unchanged. On 20,000 random Japanese texts: no characters lost, no line breaking these rules (4,255 did before).

### 0.1 (2026-11-21, AI model)

- The model is now Google Gemini 3.1 Flash-Lite (`google/gemini-3.1-flash-lite`). Since about 2026-11-20, Apify's OpenRouter account allows only zero-data-retention endpoints and none is left for Gemini 2.5 Flash-Lite: every file failed with `AI_MODEL_UNAVAILABLE` (HTTP 404), without charges. Requests now also list `google/gemini-3.5-flash-lite` as a fallback, which OpenRouter uses only when the first model cannot answer; `OUTPUT.aiUsage` has `fallbackModels` and `modelsUsed`.
- Japanese clean-up: no space between a digit and a Japanese letter (the new model writes "12 月 28 日").
- Measured on Apify (build 0.1.8): the 240-second test clip at a word error rate of 1.9% (3.4% before), segment starts 0.23 s after the sentence starts as before; the AI cost is about $0.0012 per audio minute on paid plans (README updated). The Japanese overview of the README described the old 3-minute parts and AI times; it now describes the pause-based times.

### 0.1 (2026-11-14, times from pauses)

- The audio is cut at its pauses into speech parts of about 10-30 seconds, and the AI writes only the words of each part. Every segment's start and end come from the pauses in the audio, so times no longer drift (before, the AI's own times could jump by tens of seconds inside a 3-minute part and some sentences were lost).
- Silence is never sent to the AI and never charged: a file without speech is `no-speech`; a part that is near silence is skipped; text returned for a mostly silent part is dropped; text far too long for a part is not used (`AI_IMPLAUSIBLE_TEXT`).
- SRT and VTT lines inside a part are placed by text length over its speech, with line breaks moved into pauses.
- The length used for the limits and the charge is the decoded length, never a file header's.
- The AI answers in plain text and its answer is used as it is (asked as JSON, many answers on Apify were not bare JSON and their parts failed). A code fence, quotes or a "Transcript:" label are taken off, `NO_SPEECH` or an empty answer means no speech, and an answer that declines is asked again once, with its first 160 characters in the log. `detectedLanguage` is null in this version.
- After a restart, the AI request and cost counters continue from saved state; the run log says where the plan setting (APIFY_USER_IS_PAYING) came from.

### 0.1 (2026-11-14, after the first review)

- A run moved or restarted in the middle of a file no longer sends the parts already transcribed to the AI again: each finished part is saved as it completes and used by the restarted run.
- Every request to the AI, retries included, is counted before it is sent (and saved), so a run never sends more than twice `maxMinutesPerRun` of audio, also over a restart.
- The charge count is saved before each charge, with it, so a restarted run can never pass your maximum cost.
- A restarted run that cannot read its saved progress stops without charging or calling the AI, and keeps that progress.
- ffmpeg is stopped above half of the run's memory (`TOO_LARGE_FOR_MEMORY`, not charged); files without a stored length are measured without holding their packet list in memory.
- The run's message notes that the Apify Free plan pays 10 times OpenRouter's price.

### 0.1 (2026-11-14, second build)

- Fixed: the transcript files could not be saved on Apify (the key-value store schema listed content types without "charset"); every file failed after it was transcribed. The schema now describes only OUTPUT.
- A file that cannot be saved no longer costs the transcript: the row keeps the text and segments, says which file was not saved (`saveWarning`), and counts as transcribed.
- README: the measured timestamp accuracy on the built-in sample.

### 0.1 (2026-11-14)

- First version: transcribe audio and video files from direct links, your key-value store or uploads to text, SRT, WebVTT and timestamped JSON segments.
- Audio is prepared with ffmpeg (mono 16 kHz), cut into parts of about 3 minutes at pauses with a small overlap, transcribed by `google/gemini-2.5-flash-lite` through Apify's OpenRouter Actor, checked and merged into one timeline.
- One event, `audio-minute`, per started minute transcribed; the sample, failed files, files without speech and failed parts are not charged. The AI model is billed to your account separately by apify/openrouter.
- AI cost limits: `maxMinutesPerFile` (default 60) and `maxMinutesPerRun` (default 120, 15 on the Apify Free plan).
- Built-in 9-second sample with a precomputed transcript (no AI call).
