Skip to content

Record Mic in and RTP packet streams in a stereo wav file #1447

@mjalil

Description

@mjalil

Hi dear @sipsorcery Aaron,
I'm trying to modify the Softphone example to record both sending and receiving voices of a SIP call.
I used the RecordCall Example to record calls, but unfortunately, the recorded wave file only contains the voice of the calling side, not my voice (microphone)

I also Googled it and used AI chat to find out how to do it. Then, I searched for this in the issues, documentation, and project articles with no success.
They proposed to directly use NAudio WaveInEvent to get raw samples of the microphone and write them to a wav file, and use RtpPacket to write another wav file, then merge them using NAudio in a stereo wav file.
May you please guide me, if there is a better solution?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions