LAAC-LSCP / ChildProject

Python package for the management of day-long recordings of children.
https://childproject.readthedocs.io
MIT License
13 stars 5 forks source link

audio conversion should have a default 'standard' conversion #442

Closed LoannPeurey closed 7 months ago

LoannPeurey commented 11 months ago

Is your feature request related to a problem? Please describe. The audio processor pipeline gives a lot of feature that allow people to handle their audio the way they want. But for the vast majority of the time, we just convert them to the standard format. So people have to figure out what the standard is and then apply it to the raw recordings (including multiple operations if the number of channels and sample rate need to be changed)

Describe the solution you'd like Create a call in audio processor that just takes the raw audio and converts it to the standard format without any other option, so 16kHz, pcm_s16le , mono, wav format. (An interesting thing would also be that if the raw audio is exactly in this format already, just copy it to the converted standard folder without doing conversions (this will allow git-annex to consider raw and standard as the same file, removing the duplication of the same file in the annex (as a conversion will slightly change the RIFF header))