Microphone Manual     Reference     Scripting  
Scripting > Runtime Classes > Microphone
Microphone

Use this class to record to an audio clip using a connected microphone.

To get a list of connected microphone(s) use Microphone.devices. To start a recording session, use Microphone.Start with a device name (or null/empty string to use the default device). To stop a recording, use Microphone.End with the device ID you used when starting a recording.

Class Variables
devices

Gives you a list microphone devices, identified by name.

Class Functions
Start

Start Recording with device

End

Stops recording

IsRecording

Query if a device is currently recording.

GetPosition

Get the position in samples of the recording.

GetDeviceCaps

Get the frequency capabilities of a device.