Output audio to AM radio #974
-
Hello, I'm interested to output audio to AM radio on esp32. This arduino library does that https://github.com/bitluni/ESP32AMRadioTransmitter I wonder if this is possible? If yes, if you point me in the right direction of how to connect these two libraries then I can have a go at writing the code. Just a hint at the basic approach would be a huge help. thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Did you test this? |
Beta Was this translation helpful? Give feedback.
-
You would redesign the ESP32AMRadioTransmitter to support a stream of data as input instead of an array. |
Beta Was this translation helpful? Give feedback.
-
As I saied I would start to redesign the RadioTransmitter to provide a write (const uint8_t *buffer, size_t size) method. It should support the buffer to be int16_t (bits_per_sample == 16). VolumeOutput (or any other class ending with Output) is a simple output only class. But I would redesign the current code in several steps: first I would change it to support the current int8_t data so that you can test your changes with the current data and then change it to int16_t in a second step. |
Beta Was this translation helpful? Give feedback.
You would redesign the ESP32AMRadioTransmitter to support a stream of data as input instead of an array.