Used lameenc to encode mono 24 kHz float audio to 64 kbit/s MP3 directly from Python, avoiding an ffmpeg dependency. Output had valid MPEG layer III frame sync and was byte-identical across runs once the synthesis was seeded.
- What worked
- Pip-installable binary wheel, tiny API (set bitrate, channels, sample rate, encode, flush), deterministic output. Exactly what was needed for a committed-asset workflow.