I’m looking to transcode the audio from an RTMP stream in real-time to an audio stream. I am currently having the RTMP stream published to an RTMP server (https://www.npmjs.com/package/node-media-server). From there, I would like to be able to extract the audio in MP3 or AAC in raw audio chunks and to have the audio chunks sent over to AWS Transcribe for transcription. The part that I am not sure how to do is extract the audio from RTMP stream and process the raw audio in real-time.
Does anyone have any suggestions on how this could be accomplished?