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

Sound playing via Receiver instead of phone speaker in IOS #42

Closed
Frosty92 opened this issue May 25, 2016 · 9 comments
Closed

Sound playing via Receiver instead of phone speaker in IOS #42

Frosty92 opened this issue May 25, 2016 · 9 comments

Comments

@Frosty92
Copy link

I have no problems with playing/manipulating the sound file in IOS, but the sound is coming from the receiver so it's not practical. I am using the latest version of this module, testing on Iphone 5s.

@nclaveeoh
Copy link

I'm experiencing the same thing, the sound does not play from the speaker. Also have 5s.

@wootwoot1234
Copy link

I'm having the same issue. I'm using react-native-audio and it only happens after I've recorded audio.

@wootwoot1234
Copy link

@zmxv any idea why this is happening?

@wootwoot1234
Copy link

For other people having this issue. Calling .setCategory("Playback"); right before .play(); fixed my issue.

@vaibhawc
Copy link

No, this doesn't work in my case.

@benvium
Copy link
Collaborator

benvium commented Feb 10, 2017

This sounds like a conflict between react-native-audio and this library.

EDIT: Yeah, it's setting the category to AVAudioSessionCategoryMultiRoute.
See https://github.com/jsierles/react-native-audio/blob/master/ios/AudioRecorderManager.m

Should be fixable by calling .setCategory('Playback') after react-native-audio has finished recording.

@benvium
Copy link
Collaborator

benvium commented Feb 10, 2017

I'm closing this issue for now. If this comes up again, let me know and I'll reopen.

@hemaliVadher
Copy link

hemaliVadher commented Jan 23, 2023

It didn't work after setting up setCategory('Playback'). Audio continuously comes from the microphone, not from the speaker. And I want to record audio and play that audio at the same time, not after react-native-audio has finished recording. Please help me if you have any solution.

@hemaliVadher
Copy link

Please give me suggestions if you have any. I have facing issues with iOS 16 particularly. So, it would be great if you share any suggestions asap @benvium .

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

6 participants