Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the audio format? #86

Open
fady-intelligencex opened this issue Dec 15, 2023 · 1 comment
Open

What is the audio format? #86

fady-intelligencex opened this issue Dec 15, 2023 · 1 comment

Comments

@fady-intelligencex
Copy link

Hello,

I am currently working with the Plugin.Maui.Audio plugin in a .NET MAUI application and have encountered a few queries regarding the audio format used by the plugin.

Audio Format: Could you please clarify the default audio format used when recording audio using Plugin.Maui.Audio? I've noticed that the recorded files are saved with extensions like .tmp and .binlog, but I'm uncertain about the actual audio format (sample rate, bit depth, codec, etc.).

Saving to Specific Formats: I am interested in saving the recorded audio in standard formats like .wav or .mp3. I can see from the sample that I can access the audio stream, but I'm unsure of the stream's format. I am considering using naudio to convert it. If you have other ideas, please share them.

@jfversluis
Copy link
Owner

Hi there!

Yeah we should probably add something to our readme. In the meantime you can find the information here.

iOS/macOS: https://github.com/jfversluis/Plugin.Maui.Audio/blob/main/src/Plugin.Maui.Audio/AudioRecorder/AudioRecorder.macios.cs#L84-L102

For Android it's a little less clear at a first glance, but the gist of it seems to happen here: https://github.com/jfversluis/Plugin.Maui.Audio/blob/main/src/Plugin.Maui.Audio/AudioRecorder/AudioRecorder.android.cs#L135-L149

On Windows we use the default settings: https://github.com/jfversluis/Plugin.Maui.Audio/blob/main/src/Plugin.Maui.Audio/AudioRecorder/AudioRecorder.windows.cs#L56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants