How to record audio input along with AppRecordingManager?

MG Bhadurudeen 626 Reputation points

Hi, I am able to record my app's screen as a video using AppRecordingManager. Now I want to add the audio input of my pc, for example, a mic. so that the result should be the video of my app + audio input from the mic. How to do this? Sorry, I could not find a sample to record the audio. Any help is greatly appreciated.

var manager = AppRecordingManager.GetDefault();
Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,846 Reputation points

    Hello, Welcome to Micorosoft Q&A,

    I'm afraid you can't implement this with AppRecordingManager, Currently, it has not provide audio input, for your scenario, we suggest you use mediaCapture to capture audio at same time, and use media editing to merge audio video file. And you could also post your requirements with windows feed back hub that ask more features for AppRecordingManager .

    If the response is helpful, please click "Accept Answer" and upvote it.
    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 comments No comments

2 additional answers

Sort by: Most helpful
  1. Singh Wong 51 Reputation points

    You can use API MediaComposition (media-compositions-and-editing) to merge video and audio files. Below is the sample code.

    var composition = new MediaComposition();  
    var clip = await MediaClip.CreateFromFileAsync(video_file);  
    var backgroundTrack = await BackgroundAudioTrack.CreateFromFileAsync(audio_file);  
    var saveOperation = await composition.RenderToFileAsync(saveFilePath,   
                            .AsTask(new Progress<double>(p =>  
                                progressBar.Value = p;  
    2 people found this answer helpful.
    0 comments No comments

  2. MG Bhadurudeen 626 Reputation points

    Thank you so much. From your answer, I have implemented the audio recording feature in my app with the mediaCapture. Now the 2nd part,

    use media editing to merge audio video file.

    What do you mean by this? What API should I use? Could you please share the Link? So far, I have created both the Video(.mp4) & Audio(.mp3) files.