2

I am using webrtc for create peerconnection and stream audio between browsers, but how can I visualize and play the audio stream with a visualizer(for example wave form) to both the transmitting and the receiving? Someone knows some example?

Thanks

  • This question was helpful for visualizing streaming audio https://stackoverflow.com/questions/44479560/creating-an-audio-visualizer-using-html5 – Barak Binyamin Jan 27 '23 at 05:26

1 Answers1

2

Take a look at @cwilso's excellent demos on webaudiodemos.appspot.com, in particular Audio Recorder (which inputs audio from getUserMedia to Web Audio, analyses the data and draws to a canvas element) and Live Input Effects (which does something similar but with WebGL for the visualisation).

@paul-lewis's Audio Room also uses WebGL.

Sam Dutton
  • 14,775
  • 6
  • 54
  • 64
  • I am using the example "Live Input Effects" and work fine but only I hear to myself. I don't hear audio stream added from other peerconnection. You know some example? – user2654557 Aug 14 '13 at 14:21
  • Using a stream from RTCPeerConnection as input to Web Audio is in progress (in Chrome at least) but not supported yet. – Sam Dutton Aug 15 '13 at 17:20
  • @SamDutton Has any progress been made on this? (peerConnection + webAudio) Is there somewhere I can follow for updates? – smith324 Sep 01 '13 at 04:55