• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Philsko · Nov 25, 2014 at 03:45 PM · iosaudioiphonemicrophonespeaker

How to force audio through iPhone loudspeaker when microphone is being used?

I have come across the same question on various sites, such as here: http://answers.unity3d.com/questions/257240/microphonestart-stops-audio-from-playing-on-ios.html

But I have been unable to find a solution that works for me. My game uses the iPhone's microphone for most of it and the problem I have is that when the mic kicks in, the game's output audio switches from the loudspeaker to the ear-piece speaker, dramatically dropping in volume.

This is the only solution I have found: https://github.com/cbaltzer/UnitySpeakerFix but it seems to involve downloading a plugin. I have read that plugins are only usable in Unity Pro and I am using the free version, so I don't think I can use that fix.

I was thinking this would be an easy problem to fix but I'm not so sure now!

Does anyone have any ideas? And if the above fix can be used in Unity free, how would I go about getting it into my project?

Thanks in advance for any help! :-)

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Philsko · Nov 25, 2014 at 04:20 PM 0
Share

Thanks for your reply! I did see that link but don't understand the code. I'm fairly new to coding and am only familiar with C# & a bit of JavaScript as used in Unity. Do you know how I'd go about converting that code into something I could use in Unity?

avatar image RadianSmile Philsko · Feb 05, 2018 at 07:51 AM 0
Share

@philsko, you could download the package at the release tab

avatar image Baste · Nov 25, 2014 at 05:34 PM 0
Share

There's no restrictions on using plugins with Unity free, unless (very unlikely, by the way) the plugin includes calls to something that's not in Unity Free, like the profiler.

Just throw the scripts from the github page in your project, in the same folders as they're in the download, and follow the instructions.

avatar image Philsko · Nov 25, 2014 at 06:55 PM 0
Share

Wow. I did actually try that yesterday, but it wouldn't build properly through Xcode. I'd assumed it was to do with not being allowed to use plugins on Unity free as in the docs it says: "Note: On the desktop platforms, plugins are a pro-only feature." That must be referring to a different type of plugin though as I gave it another go after your suggestion and it's worked! I only imported the Assets folder in this time, have just realised where I went wrong initially, by importing the Project Settings folder in as well. Cheers Baste!

avatar image zeng_william5 · Mar 11, 2018 at 07:26 AM 0
Share

I got the same Need. I use android develop tools eclipse and android studio, write a little activity, but it is hard to co-work with unit. I think maybe Unity $$anonymous$$m should solve this problem.

1 Reply

· Add your reply
  • Sort: 
avatar image
3

Answer by daveHG · Jan 26, 2019 at 06:14 PM

Unity now has a "Player Setting" for iOS called "Force iOS Speakers when Recording" turn this on. Much easier than a plugin.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image orihq · 5 days ago 0
Share

Is this overwritten if you check Prepare iOS For Recording?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

compress recorded audio in an app? 0 Answers

Getting iOS device volume 1 Answer

How to use the Microphone class to record multiple AudioClip's 1 Answer

sound IOS recording 1 Answer

How to NOT play audio in silent mode with iOS? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges