Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 /
This question was closed Dec 11, 2012 at 03:12 PM by Eeppi for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by Eeppi · Dec 11, 2012 at 02:19 PM · errorstartmicrophonemic

Start is not a member of Microphone

Some reason my script is giving me this error: BCE0019: 'Start' is not a member of 'Microphone'.

My script is like this atm:

 function Update () {
 if (Input.GetButtonDown("Mic")){
     audio.clip = Microphone.Start("Built-in Microphone", true, 10, 44100);
     networkView.RPC("Speak", RPCMode.Others); 
 }
 }
 @RPC
 function Speak(){
 audio.Play();
 }

What could be the problem? Microphone.Start should work.. ( http://docs.unity3d.com/Documentation/ScriptReference/Microphone.Start.html ).

Comment
Add comment · Show 4
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 Landern · Dec 11, 2012 at 02:26 PM 0
Share

what version of Unity are you using?

avatar image Eeppi · Dec 11, 2012 at 02:33 PM 0
Share

Unity 4 indie version.

avatar image Landern · Dec 11, 2012 at 02:41 PM 0
Share

Inside the rest of your script, do you have any variable called $$anonymous$$icrophone?

avatar image Eeppi · Dec 11, 2012 at 02:44 PM 0
Share

No, I dont have any variables yet. I just started making this script, but then this problem came :/.

1 Reply

  • Sort: 
avatar image
2
Best Answer

Answer by Bunny83 · Dec 11, 2012 at 03:06 PM

Not a variable, a class. You probably called one of your own scripts "Microphone" so it's hiding the class in the UnityEngine namespace. Rename your class.

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 Eeppi · Dec 11, 2012 at 03:11 PM 0
Share

Thanks! :)

Follow this Question

Answers Answers and Comments

11 People are following this question.

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

Related Questions

What causes Microphone Start to not work, giving error result = 25? 0 Answers

Multiple Microphone Inputs 0 Answers

Microphone doesn't record (or save) sometimes Android Unity 20.1.10f1 0 Answers

Return Enemy To Start Position 1 Answer

Dictionary within a dictionary? 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