• Unity
  • Services
  • Made with Unity
  • Learn
  • 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
  • Forums
  • Answers
  • Feedback
  • Issue Tracker
  • Blog
  • Evangelists
  • User Groups

Navigation

  • Home
  • Unity
  • Industries
  • Made with Unity
  • Learn
  • Community
    • Forums
    • Answers
    • Feedback
    • Issue Tracker
    • Blog
    • Evangelists
    • User Groups
  • Get Unity
  • Asset Store

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 GardensTale · May 30, 2011 at 10:48 PM · inputaxismicrophonegetspectrumdatagetoutputdata

Microphone input volume to axis value translation

Hello everyone,

I want to make a voice chat program which features, amongst other things, mouths in the shape of simple circles, squares or triangles. I want these objects to scale up and down with the volume of the sound input. I looked into the reference for this, and all I found was AudioListener.GetOutputData and GetSpectrumData. The reference is terrible on these two, though, and I can't figure out how to translate the volume of whatever's being said to a simple Axis that'd control the mouth scaling. does anyone have any idea how to do this? Just a general idea would be nice to have.

Thanks in advance!

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by sneftel · May 30, 2011 at 11:32 PM

AudioListener is not a class for accessing a microphone. If you have Pro you can use a native plugin to read microphone input (and I assume there are existing plugins for this), but other than that, as far as I know there's no way to get access to audio input data.

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.

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

2 People are following this question.

avatar image avatar image

Related Questions

Use Canvas Buttons as Input Axis 1 Answer

Input.GetKeyUp for Axis input 2 Answers

Can Input.GetAxis be used without assigning via the Input Manager? 1 Answer

How do you change the joystick axis boundary from a circle to a square? 1 Answer

360 Trigger Pressing both Triggers at the same time 1 Answer

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