NateRickard / Plugin.AudioRecorder

Audio Recorder plugin for Xamarin and Windows
MIT License
164 stars 68 forks source link

Record OK, but share it to messenger not always play #49

Open evagelos21 opened 4 years ago

evagelos21 commented 4 years ago

Hi to you i am trying to share the audio recorded, but in some mobiles just cannot play. My code is just simple: `

        AudioRecorderService _recoder = new AudioRecorderService();

        await _recoder.StartRecording();
        await TextToSpeech.SpeakAsync(MainTextArea.Text, settings, cancelToken: cts.Token);
        await _recoder.StopRecording();

        await Share.RequestAsync(new ShareFileRequest
        {
            File = new ShareFile(_recoder.FilePath)
        });

`

In Whats'up it says "not supported audio file" In Facebook messenger in some mobiles can play in some others (included my own) not. Any ideas?

evagelos21 commented 4 years ago

As i figure, it not messenger or whats'up problem but, mobile problem. in some mobiles works and others not.

NateRickard commented 4 years ago

@evagelos21 are you using the latest nuget package or building from source? There was an accepted PR recently that aims to fix the WAV header to improve device support. I haven't been able to build a new package in a while that includes the fix, but I'll work on getting that done soon.

evagelos21 commented 4 years ago

i was using the nuget package. So i am waiting for your new build.

evagelos21 commented 3 years ago

Any news on this?