How to develop call recording program with xamarin.forms?

钢 屈 371 Reputation points
2021-10-26T07:07:48.493+00:00

How to develop call recording program? How to record the audio of a call as MP3?

Developer technologies .NET Xamarin
0 comments No comments
{count} votes

Accepted answer
  1. JarvanZhang 23,971 Reputation points
    2021-10-27T03:19:06.783+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    For this function, we need to write the logic on each native platform. However due to security & performance reasons, all active Audio sessions are put on halt when the call is active on iOS platform. It's not supprted to record the call on iPhone.

    To record the phone call on Android, try using MediaRecorder to record the audio. Set OutputFormat to MPEG_4 and AudioEncoder to AAC to make play the sound file with a .mp3 extension.

    You could refer to the following links to get the native function code:
    https://stackoverflow.com/a/39723913/11083277
    https://stackoverflow.com/a/33054794/11083277

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.