Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/114.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 为什么在iPhone上使用NuGet package Plugin.AudioRecorder播放whisper会很安静?_Ios_Xamarin.forms_Avplayer_Volume - Fatal编程技术网

Ios 为什么在iPhone上使用NuGet package Plugin.AudioRecorder播放whisper会很安静?

Ios 为什么在iPhone上使用NuGet package Plugin.AudioRecorder播放whisper会很安静?,ios,xamarin.forms,avplayer,volume,Ios,Xamarin.forms,Avplayer,Volume,使用Xamarin Forms/iOS中的Plugin.AudioRecorder NuGet,我可以在iPhone8上录制音频,但在播放时声音很轻。如何增加音量 在AppDelegate.cs中,我有: AudioPlayer.RequestAVAudioSessionCategory (AVAudioSessionCategory.PlayAndRecord); 默认情况下,播放是通过手机的高音扬声器进行的。将输出定向到较低的扬声器解决了这个问题 在AppDelegate.cs中,添加:

使用Xamarin Forms/iOS中的Plugin.AudioRecorder NuGet,我可以在iPhone8上录制音频,但在播放时声音很轻。如何增加音量

在AppDelegate.cs中,我有:

AudioPlayer.RequestAVAudioSessionCategory (AVAudioSessionCategory.PlayAndRecord);

默认情况下,播放是通过手机的高音扬声器进行的。将输出定向到较低的扬声器解决了这个问题

在AppDelegate.cs中,添加:

AudioPlayer.OnPrepareAudioSession = x =>
            {
                // Route audio to the lower speaker rather than the upper speaker so sound volume is not minimal
                x.OverrideOutputAudioPort ( AVAudioSessionPortOverride.Speaker, out NSError error );
            };

非常奇怪为什么投票失败。我应该提到什么是隐含的,音量按钮设置为最大?我倒不是很烦