How to use channels in Phoenix to work with binary audio data?

This is the way I was able to receive and use the binary data for my speech recognition application.

def handle_in("file_chunk", {:binary, <<samples :: binary>>}, socket) do
end

The problem I’m having now is that I have a heap overflow from receiving too much data and that there are functions in my application that overlap

If anyone has any idea why this is happening I would really appreciate your input on this question:

1 Like