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 /
avatar image
0
Question by JimmyJJeeter · Feb 27, 2013 at 12:37 AM · inputaudiomicrophonedevicechannel

Can't get multiple microphone channels

I'm using an M-Audio Fast Track Ultra (USB interface) as input. I want to get and analyze two sound (presumably left and right channels?) simultaneously. I've tried a few things but I'm not getting anywhere. In fact, it LOOKS like Unity only recognizes ONE channel, and even the ONLY on the Built In Microphone (default I guess, the one in the documentation sample).

Is this a bug, or am I missing something? I would think 'channel' would be 0=left, 1=right (or vice versa), and if more channels are available (this device has 8) I should be able to get at those too. I can't get anything, unless I go back to the Built In Microphone, and then it's using the BUILT IN MICROPHONE which is useless to me.

Any insights would be great. Thanks.

Comment
Add comment · Show 2
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 DaveA · Feb 27, 2013 at 11:32 PM 0
Share

Exa$$anonymous$$e the 'channels' value on the AudioClip returned by $$anonymous$$icrophone. Start - how many does it say?

avatar image JimmyJJeeter · Mar 11, 2013 at 10:10 PM 0
Share

1! No matter what I plug in, audio.clip (having been set from microphone device) says 1 channel.

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by DaveA · Mar 09, 2013 at 07:04 AM

Looked into this a bit. It might be a Unity bug that it doesn't pick up more than one channel per device. Seems like a pretty bad oversight. That said, you can have multiple different devices (like built-in mic, line-in, USB mic(s)) and each of those, although supporting only one channel, can all be used at the same time. Is this enough of a work-around?

Comment
Add comment · Show 3 · 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 JimmyJJeeter · Mar 11, 2013 at 10:11 PM 0
Share

Not optimal but I can work with it for now. Looks like a unity bug then?

avatar image foyleman · Nov 20, 2014 at 07:53 PM 0
Share

How can this be used at the same time? When I attempt to record multiple devices simultaneously Unity throws an error.

avatar image dansav · Apr 29, 2015 at 11:04 PM 0
Share

I get an error also. Is there a way to record to an audio.clip channel? Also on mac audiomidi utility you can create an aggregate of two mics, but for that to work you'd have to have a left/right channel recording for audio.clip.

avatar image
0

Answer by GerryM · Feb 27, 2013 at 10:28 PM

Ok, some ideas:

First, I'd check if you can see all devices with this example from the manual.

Second, make sure you do create an audio clip with two channels for recording.

Third, use the proper device name when recording.

Good luck!

Edit:

I assume you are on a Mac. It seems you can't change the recording source from within Unity. After trying, I also couldn't record from anything else than the default input setting you did choose in "System Preferences" "Sound".

So in order to record from your external mic you need to activate it as the input source. Was working fine for me. It does set the selected mic as Microphone.devices[0];

However, this isn't what you would expect from Unity, as you can see all the other microphones. A real bummer.

Comment
Add comment · Show 3 · 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 JimmyJJeeter · Feb 27, 2013 at 10:53 PM 0
Share

Thanks.

First: yes, did that.

Second: $$anonymous$$icrophone.Start creates and returns an AudioClip and that's what I set on my AudioSource. How does creating another clip help?

Third: Yep, get the name from step 1 above, but that doesn't help. Only "Built-in $$anonymous$$icrophone" seems to work (that is, returns audio data) for me.

avatar image GerryM · Mar 01, 2013 at 05:42 PM 0
Share

Right, forget about "second", my bad.

avatar image sherry07 · Dec 08, 2016 at 06:56 AM 0
Share

Hello. I have same problem. But in the first step, it detected 2 device and the name is empty. So I can only use the default microphone. Could you please help me solve this problem? Thanks a lot.

avatar image
0

Answer by Lando1000 · Apr 09, 2013 at 02:13 PM

Hey JimmyJJeeter, I'm stuck with this exact issue, did you ever find a solution?

Comment
Add comment · 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

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

14 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 avatar image avatar image avatar image

Related Questions

Help Audio streaming from microphone to online url. Uploading only 4kb chunk at a time. 1 Answer

Record Audio for triggering something 0 Answers

Real time Microphone (line input) FFT analysis 2 Answers

MicInput Conversion to C# 0 Answers

can Unity utilize audio inputs? 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