Dev

Speech-to-text now aligns speech intervals with actual audio length

We improved speech recognition result handling. If a model returns timestamps beyond the submitted clip, the system now clips them to the real audio duration. Useful text is preserved, while completely incompatible intervals are still excluded.

Speech recognition services can sometimes return inaccurate time boundaries: a phrase may start before zero seconds or end after the file finishes. Previously, such cases could produce a partial result and lose useful text near the edges. Now, before storage, each interval is aligned with the actual audio limits: from 0 to the real file duration. For example, in a 30-second clip, a 25–60 second interval becomes 25–30, and a −1–5 second interval becomes 0–5. If an interval lies completely outside the clip, it is excluded. The same logic is applied to word timings inside a preserved phrase. The system does not request retranscription; it processes the response that has already been received. If useful content remains after correction and nothing significant is removed, processing succeeds. If phrases or word sets are missing entirely, the result is marked as partial.

← Back to news