Professional Documents
Culture Documents
Notes
Design Information for the Microsoft® Windows® Family of Operating Systems
Microsoft Corporation may have patents or pending patent applications, trademarks, copyrights, or other
intellectual property rights covering subject matter in this document. The furnishing of this document
does not give you any license to the patents, trademarks, copyrights, or other intellectual property rights
except as expressly provided in any written license agreement from Microsoft Corporation.
This is a preliminary document and may be changed substantially prior to final public release. This
document is provided for informational purposes only and Microsoft makes no warranties, either express
or implied, in this document. Information in this document, including URL and other Internet Web site
references, is subject to change without notice. The entire risk of the use or the results of the use of this
document remains with the user. Unless otherwise noted, the example companies, organizations,
products, people and events depicted herein are fictitious and no association with any real company,
organization, product, person or event is intended or should be inferred. Complying with all applicable
copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this
Analog Audio Classification Using Device Impedance Characteristics - 2
document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form
or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose,
without the express written permission of Microsoft Corporation.
Portions of this document specify software that is still in development. Some of the information in this
documentation may be inaccurate or may not be an accurate representation of the functionality of final
documentation or software. Microsoft assumes no responsibility for any damages that might occur
directly or indirectly from these inaccuracies.
Microsoft does not make any representation or warranty regarding specifications in this document or any
product or item developed based on these specifications. This document is provided to you on an AS IS
basis. Microsoft disclaims all express and implied warranties, including but not limited to the implied
warranties or merchantability, fitness for a particular purpose and freedom from infringement. Without
limiting the generality of the foregoing, Microsoft does not make any warranty of any kind that any item
developed based on these specifications, or any portion of a specification, will not infringe any copyright,
patent, trade secret or other intellectual property right of any person or entity in any country. It is your
responsibility to seek licenses for such intellectual property rights where appropriate. Microsoft shall not
be liable for any damages of any kind arising out of or in connection with the use of these specifications,
including without limitation, any direct, indirect, incidental, consequential (including any lost profits),
punitive or special damages, whether or not Microsoft has been advised of such damages. . Some states
do not allow the exclusion or limitation of liability or consequential or incidental damages; the above
limitation may not apply to you.
The information contained in this document represents the current view of Microsoft Corporation on the
issues discussed as of the date of publication. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot
guarantee the accuracy of any information presented. This document is for informational purposes only.
MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT.
Microsoft, Windows, and Windows NT are trademarks or registered trademarks of Microsoft Corporation
in the United States and/or other countries. Other product and company names mentioned herein may
be the trademarks of their respective owners.
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002
Analog Audio Classification Using Device Impedance Characteristics - 3
Introduction
Real-Time Communication (RTC) is a key scenario that will be enabled and
improved in future Microsoft® Windows® operating systems. In order to effectively
configure the audio resources and devices for RTC, a better model for audio device
enumeration and characterization needs to be in place. Audio devices that connect
to the PC using digital buses such as USB and IEEE 1394 can easily provide device
enumeration and characteristics to the operating system. On the other hand,
analog audio devices are typically directly connected to an audio CODEC, and don’t
have the capability to transmit audio device characteristics over the analog
interface.
In a PC, the most common CODEC is AC’97, and is typically implemented as part
of the motherboard. The AC’97 CODEC interfaces directly to an analog input or
output jack. Without the inclusion of additional sensing circuitry, there is nothing
that the operating system can do to query device characteristics, let alone
determine device attachment. For more information on the Intel AC’97
specification, see the URL provided at the end of this paper.
Problem Definition
As stated above, today it’s virtually impossible for an operating system to
automatically configure and control analog audio devices. However, in the future, it
may be possible to at least programmatically categorize connected analog audio
devices through revisions to the AC’97 spec along with new hardware. Microsoft
conducted an experiment with the goal of determining if there is a way to classify or
group the different types of analog audio devices based upon some electronic
property. The analog audio devices of interest are microphones, headsets, and
speakers. If a unique property was found, then it may be possible for the operating
system to use this information to configure the audio ports based upon device type.
Additionally, the operating system may configure the audio properties such as audio
port type (input or output), gain, and perhaps turn on/off echo cancellation. In this
experiment, Microsoft engineers focused on impedance measurements. The
balance of this paper reviews the impedance data from a selection of microphones
and speakers.
Dynamic
A dynamic microphone is much like a miniature loudspeaker. A flexibly-mounted
diaphragm is coupled to a coil of fine wire that is mounted in the air gap of magnet.
When sound strikes the diaphragm, the diaphragm surface vibrates in response. As
the diaphragm vibrates back and forth in the magnetic field, a small electrical
current is induced in the wire. The magnitude and direction of that current is directly
related to the motion of the coil; therefore, the current is an electrical representation
of the incident sound wave.
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002
Analog Audio Classification Using Device Impedance Characteristics - 4
Condenser
Another type of microphone is the classic capacitor (or condenser) microphone.
This transducer converts the sound energy by utilizing changes in capacitance due
to mechanical vibrations to produce voltage variations proportional to sound waves.
Condenser microphones require power to charge the capacitor. A variation of the
condenser microphone is the Electret microphone. The Electret has a built in
charge, and the few volts needed are to power a built-in FET buffer pre-amplifier.
A majority (over 90 %) of PC microphones are Electret. A typical Electret
condenser microphone capsule is a 2 terminal device (there are also 3 pin
capsules), which approximates to a current source when biased with around 1-9
volts. This small amount of current (typically, less than half a milliamp) is consumed
by a preamplifier built into the microphone capsule to make the conversion of very
high impedance source of the Electret element itself and the cable that needs to be
driven.
RL
Typical Electret Capsule +Vb
Term. 1
Output
ECM Unit C
Term. 2
Ground
Term. 1
Output
Headsets Ground
PC headsets comprise of a microphone and a small speaker section. The majority
of PC headsets utilize an Electret microphone.
Term. 2 The speakers are typically magnetic
coil and cone. The headset microphone is usually single channel, whereas the
speakers sections may be monophonic or stereophonic.
Electret Microphone
Speakers
Two varieties of speakers were measured – amplified, and non-amplified.
Passive
Passive speakers require amplification from the PC sound card or CODEC amplifier
circuitry.
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002
Analog Audio Classification Using Device Impedance Characteristics - 5
Amplified
Amplified speakers have built-in amplifiers in the speaker system. The devices
tested in this experiment are 2.1 or stereo speakers.
PC Sound System
The sound system implementation varies in PCs. Some are implemented on
separate sound add-on cards such as the Creative Labs cards, while others are
implemented with CODECs integrated on the motherboard. The following block
diagram illustrates an example sound system implemented with an AC’97 CODEC.
Stereo Headphone out
DAC
Registers
64x16 bits
MIC 1
MUX
ADC
MIC 2
GPIO
GPIO
The microphone jack circuit illustrated is considered the most universal jack. This
jack supports 2-pin dynamic microphones as well as 3-pin electrets (as shown in the
diagram.)
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002
Analog Audio Classification Using Device Impedance Characteristics - 6
There are two impedances associated with the microphone jack. The standard input
impedance illustrated as Zi and the bias impedance Rb. This input impedance (in
parallel with the bias impedance Rb) has a direct affect on the voltage sensitivity of
Electret microphones and should be as high as possible, typically greater than 20
kW (an order of magnitude greater than Rb) and no lower than 10 kΩ .
The bias impedance Rb has two components − an AC impedance and a DC
impedance. If Rb is a single resistor connected to a bias voltage Vb, then the AC and
DC impedance are identical. The DC impedance, along with the bias voltage will
determine the operating voltage for the Electret microphone.
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002
Analog Audio Classification Using Device Impedance Characteristics - 7
Impedance Characteristics
Impedance is an important parameter used to characterize electronic circuits,
components, and the materials used to make components. Impedance (Z) is
generally defined as the total opposition a device or circuit offers to the flow of an
alternative current (AC) at a given frequency. This opposition comes from the
combination of resistance, capacitive reactance and inductive reactance to the
alternating current. Reactance varies with the frequency of the alternating current.
Input Impedance
Input impedance is important for interoperability among different audio system
components. Input impedance is also critical to microphone inputs as impedance
has a direct correlation to Electret microphone sensitivity. Line-level inputs should
be designed with impedance higher than 10 kΩ , and preferably around 47 kΩ ,
which is the typical load level for consumer audio equipment.
Output Impedance
Outputs are designed to drive three types of loads: line-level, headphones, and
speakers. Outputs designed for line-level usually have minimal drive capability and
the load is set above 40 kΩ . Headphone impedance’s vary from 16 Ω to 92 Ω with
32 Ω being the most common. Speaker loading typically is set at 8 Ω .
Measurement Methodology
Equipment
The test equipment used for the measurements consisted of the following:
The Device Under Test (DUT) consisted of microphones, headsets, and speakers.
Test Setup
The following diagram illustrates the test setup. The test setup is schematically
described in the next diagram.
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002
Analog Audio Classification Using Device Impedance Characteristics - 8
In regards to the impedance tests, headset speakers were measured with a 400 Ω
non-inductive sense resistor. Headset speakers had a drive level of 100 mV at the
terminals of the speaker. All device impedance was measured at a frequency
response of 40 Hz to 20 KHz.
Data Analysis
The devices were randomly selected by going to a local computer retail store and
picking up at least 10 of each type of device. This strategy was selected to
approximate a data set that includes popular analog audio devices for the PC.
The next section shows a snapshot of the impedance measurement for two of each
device type − microphone, headset, and speaker (passive and amplified).
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002
Analog Audio Classification Using Device Impedance Characteristics - 9
Microphones
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002
Analog Audio Classification Using Device Impedance Characteristics - 10
Headsets
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002
Analog Audio Classification Using Device Impedance Characteristics - 11
Speakers
Passive
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002
Analog Audio Classification Using Device Impedance Characteristics - 12
Amplified
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002
Analog Audio Classification Using Device Impedance Characteristics - 13
Impedance Distribution
Microphone
100000
Speaker-Amplified
Speaker-Passive
10000
Headset-Speaker
section
Impedance Ohm (Log scale)
100
10
1
0 the graph,
As can be seen from 5 the impedance
10 15 fall into 20
buckets the following25ranges
for the tested frequency rangeDevices
of 40 Hz(min
to 20 KHz:
and max values taken)
• Microphones – 460 Ω to 1140 Ω .
• Amplified speakers – 3100 Ω to 11500 Ω . There is an exception for the
Radio Shack amplified speakers, which has a value of 100 Ω .
• Passive speakers – 4.5 Ω to 19 Ω.
• Headset (speaker section) – 25 Ω to 62 Ω with a special case 210 to
350 Ω measured on the Diva brand headset. The Diva headset is a more
expensive model used in commercial avionics applications versus standard PC
usage. In another case, the Jabra headset is a cell-phone headset with what
appears to be a 200 Ω resistor placed in series to reduce the gain output from
the cell phone. Our conjecture is that this resistor functioned as a fixed volume
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002
Analog Audio Classification Using Device Impedance Characteristics - 14
The following table lists the impedance measurements of each device tested.
Issues
During the experiment, we encountered the following issues that affected the
impedance measurements.
• Some headsets (microphone and speaker) have volume controls that cause
the impedance to vary to the high range (for example, 1000 Ω ). This could be
problematic. The data collected for these headsets were taken with the volume
control set to maximum to remove the effect of the volume control on the
impedance measurement.
• One amplified speaker (for example, Radio Shack) had relatively low
impedance in the 100 Ω versus above 3000 Ω .
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002
Analog Audio Classification Using Device Impedance Characteristics - 15
The data collected for Headset (speaker section) included impedance measured
above the 100 Ω range (Jabra cell-phone headset and Diva headset brands). Our
recommendation is for Headset devices to be designed to fit in the narrower 32
Ω to 100 Ω range.
© 2002 Microsoft Corporation. All rights reserved. Version 1.0 – April 16, 2002