Robot36-encoder
This is a simple encoder of images into audio samples by using the Robot 36 encoding. It is based on the C implementation of Ahmet. You can use his decoder to decode this image.
It works as a library so you can use in your rust project. You encode a Robot36Image into an iterator of i16 representing each sample of the audio. You can then use this sample to write to an audio file or directly into the audio output. There is an optinal feature image
, that can be enabled to add a conversion function from DynamicImage into the Robot36Image.
Bear in mind that breaking changes may and probably will happen in next versions!
Example using Hound
use ;
use env;
/** Simple exmaple.
* encode-image /path/to/image-input.png /path/to/audio-output.wav
*/