Warm tip: This article is reproduced from stackoverflow.com, please click
c# xamarin.forms

Audio recording in Xamarin.forms

发布于 2020-04-05 23:33:51

I have a xamarin.forms project which has to record the audio and save it localy on the app.

Is there any plugin / api which can be used to achieve this?

Also I would like to know the source of the recorind ie. whether it is being recorded from microphone or is it from handsfree (speaker) without using microphone.

Questioner
Arti
Viewed
57
GeertvdC 2016-02-23 22:58

There is no plugin that I know of that does this. you could create a generic service interface called IRecorder which has the functionality you need and then implement the IRecorder interface in the platform specific projects using called AndroidRecorder etc using the dependency service

when implementing your platform specific code you can use these samples