[[self.receiverSwitch rac_signalForControlEvents:UIControlEventValueChanged] subscribeNext:^(__kindof UIControl * _Nullable x) {
//切换为听筒播放
if (self.receiverSwitch.on == YES) {
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];
[MBProgressHUD bcz_showSuccess:@"切换为听筒模式"];
} else {
//切换为扬声器播放
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];
[MBProgressHUD bcz_showSuccess:@"切换为扬声器模式"];
}
}];