• 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 /
  • Help Room /
avatar image
0
Question by sunfish_kumano · Nov 26, 2017 at 11:32 PM · microphonedevices

I want to acquire by not default recording device.

I am sorry in incomprehensible English.
I use Unity 5.60f3.

Can a default device not use the recording device which I do not set in Unity?

Specifically, it is in condition to output a sound for the recording device that outside synthetic sound software is not the default device.
I acquire it in Microphone.Start and convert it into AudioSouce.
I am going to perform lip-sync of the character that I made in Live2D based on AudioSouce in real time.

void Start () { var audio = GetComponent();

 audio.clip = Microphone.Start(null, true, 10, 44100),

 while (Microphone.GetPosition(null) 0 <=) {}

     audio.Play();
 }

}

I was able to arrive to the one step this side of the movement to demand in such a script.
But Unity freezes when I appoint the thing except an default device in an object of Microphone.Start in this state.


I can acquire the sound that I output by synthetic sound software if I destroy all the remaining devices as AudioSouce after having made only the device which synthetic sound software outputs it effectively.

But the Microphone with the headset is in condition not to be able to destroy the device unexpectedness that synthetic sound software outputs at the same time because I record it.

I must let a sound for lip-sync become independent. The output of the synthetic sound has to output it near the device which is not an default device to the last.

Should I think about a totally different hand?

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

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

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

Related Questions

Usb microphone help!!! 0 Answers

Trying to use derive pitch and db from realtime microphone input 0 Answers

How to use local network devices? (e.g printer) 0 Answers

can not get DeviceCaps by Microphone. 0 Answers

Create a new audioclip from GetData result in a muted sound 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges