maxkrieger / voiceliner

Braindump better.
https://a9.io/voiceliner
GNU Affero General Public License v3.0
627 stars 42 forks source link

FR: Store recordings in Opus or AAC to save space #104

Open shvchk opened 1 year ago

shvchk commented 1 year ago

If I understand correct, WAV is what Vosk requires, so initial recording could be left as is, but after speech recognition it could be encoded with Opus or AAC. This could save quite some space for heavy users.

In WAV, 12 seconds recording is ~1 MB. In Opus (free and open format), this could be ~140 KB (at 96 kb/s, which is more than enough for mono, even if this is a music recording) or ~96 KB (at 64 kb/s, which is ok for mono voice recordings).

At first glance on code, AAC is already used on iOS.