diff options
| author | yum <yum.food.vr@gmail.com> | 2023-07-08 18:55:41 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2023-07-08 19:06:45 -0700 |
| commit | a602bfb95665697b15a2de58694c6ac064af2916 (patch) | |
| tree | 79cba0aeda47cd5829202d82f2644364d27b655d /Animations | |
| parent | 80f46a7a346e73c94a3bb8ae01099743020ef2a4 (diff) | |
Preserve audio chunk length when dropping samples
When we commit a transcription, we drop the corresponding audio data.
Audio data is represented as a list of chunks. Each chunk contains a few
hundred samples of audio data, representing O(10ms) of audio.
If we want to drop a few seconds of data, this means simply deleting
many chunks of audio. There's usually a chunk where we want to drop some
portion of audio data.
Instead of slicing away that part of the chunk, which would change its
length, this change zeroes it out. This preserves the assumption that
each chunk has the same temporal length.
Diffstat (limited to 'Animations')
0 files changed, 0 insertions, 0 deletions
