<code>morshutalk-v2</code> dev thread I guess?

(Larger updates are prob going to be blog posts once things are off the ground and things are Allegedly Functional, but for now this'll do)

Today's "progress" (if I can even call it that) mostly just consists of getting the absolute basics down for how to structure things, refreshing myself on how to Python, and also pulling over the tiny bits of code that won't be changed from morshutalk-output (being the .wav file write). Still need to look into alternatives for a bunch of the packages, I want to try and use stuff that's up-to-date and doesn't rely on deprecated features like audioop.

I think I'm only going to have morshutalk-v2 support outputting the raw wav file, and/or convert it to opus (in an ogg container) or, failing that, aac. Whether I'll have it always do both or not IDK, it depends on whether I can skip writing the wav file and can pass the appropriate bytearray into the encoder.

On Linux that's fairly easy so long that opusenc is installed, since I can just use subprocess to do a system call within the python code. But I really want to try and avoid doing anything like that - if I can get a mostly-straightforward transcode into opus or aac or whatever I'd be much happier, I want to try and avoid any system-level dependencies if possible. Mostly as an exercise in portability, and also to avoid any weirdness that'd come with versioning outside of my control.

But "technically functional" is better than "not functional" at least. The actual morshu-v2 class and all that doesn't exist yet, since that all has to wait for me to identify what libs are viable replacements for what the OG version of morshutalk uses, and what I can wrap into native Python code (if possible and if not painful to do so).

#MorshuTalk_v2 #Python

0

If you have a fediverse account, you can quote this note from your own instance. Search https://gts.social.senil.me/users/senil/statuses/01KD1RZVW1WQQ125BK5MTNWT86 on your instance and quote it. (Note that quoting is not supported in Mastodon.)