re: morshutalk-v2 dev thread
Today's goal is to figure out audio transcoding in Python so I can always have this thing output a smaller file for uploading elsewhere. I don't want to rely on subprocess because that makes things too OS-specific (I at least want to know this works on Windows and Linux) and I don't want to deal with any kind of external calls that I can't guarantee will stay the same between systems or (major) versions.
I at least want to be able to output to one other audio format - and if I can get away with feeding the encoder the bytearray (and thus not writing a wav file), even better. Target bitrate is going to be "good enough for speech" (so Low) and sample rate is going to also be "good enough for speech" (still low).
I did wonder if it'd be possible to use a different bit-depth, but after digging into things yesterday it looks like Python doesn't like that - unless I went from 16-bit to 32-bit, but that's way more than I need and thus a much larger file than warranted.
Anyways. Y'all will find out what ends up happening today.