Skip to content

How to access raw audio data (audioRaw) from MediaStream using WebRTC? #48

@umbala23

Description

@umbala23

Hi, thank you for your great work on this project.

I'm currently working on a voice processing application using WebRTC, and I need to access the raw audio data (PCM or any low-level audio buffer) from a MediaStream or an audio track.

Specifically, I want to capture the raw audio bytes (similar to audioRaw) while a WebRTC call is ongoing — ideally in real-time for processing or sending to another service.

I've reviewed the MediaStream and AudioTrack APIs, but I couldn't find a clear way to extract raw audio buffers from them directly.

Could you please advise:

  • Is it possible to get raw audio data from a local or remote audio track?
  • Do I need to tap into the audio renderer or capture device manually?
  • Any examples or code references would be greatly appreciated.

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions