A robot’s voice must leave a speaker the size of a coin. Most of a 120 Hz voice never makes it out. Pick a speaker and watch which parts survive.
Choose a speaker, then drag the voice pitch. Teal sticks are the real voice. Orange sticks are what the speaker plays. Then we build, piece by piece, the driver, the box, the port, the microphone and the head around them.
You need a feel for a decibel (a number that says how many times louder, on a log scale) and a little algebra. We build the rest from zero.
Built from primary sources, not slides: Small’s loudspeaker papers, vendor application notes from InvenSense, PUI, Infineon and TI, and a microphone datasheet. Every source is linked in the Field Guide. It pairs with Mic Arrays and Beamforming and Acoustic Echo Cancellation.
The three speakers are illustrative, with typical orders of magnitude for each size (Fs, Qts, Vas, Sd and a sealed box below), not a real part. The response comes from the model of Chapters 1 to 3, which ignores voice-coil inductance and cone break-up. The voice is a toy: harmonics at whole multiples of the pitch, each 5 dB lower per octave.
Chapter 0
See what a talking robot asks of a speaker and a microphone in a noisy room, and why the first sounds to go missing are the warm ones
Picture a small robot on a kitchen counter. A kettle boils behind it and a radio plays in the next room. You ask it a question from two metres away, and it answers. You hear every word, but the voice sounds thin and buzzy, like a voice on an old telephone.
Nothing is wrong with the software. The words are right and the timing is right. The thin sound comes from the last two parts of the chain: the part that turns an electrical signal into air movement, and the part that turns air movement back into a signal. Those two parts are called transducers. A transducer converts one kind of energy into another. This lesson is about both of them, and about what a robot head does to them.
Air presses on your skin all the time. A sound wave makes that pressure rise and fall a tiny amount, many times a second. We measure the size of the change in pascals (Pa), the unit of pressure. The faintest sound a young ear can hear swings about 0.00002 Pa, which is 20 micropascals. Loud speech at arm’s length swings about 1 Pa. Normal air pressure is about 101,000 Pa, so even loud speech is a change of one part in a hundred thousand.
Those numbers cover a huge range: loud speech is 50,000 times the faintest sound. People use a log scale for that reason. The decibel (dB) says how many times bigger one thing is than another, counted in factors of ten. Every 20 dB means a factor of 10 in pressure. Every 6 dB means about a factor of 2.
The sound pressure level (SPL) is the decibel scale with a fixed starting point: 20 micropascals counts as 0 dB SPL. In symbols, SPL = 20 × log10(p / 20 µPa). Then 1 Pa is 94 dB SPL, which is why 94 dB SPL becomes the standard test level for microphones in Chapter 6.
A loudspeaker turns a voltage into moving air. It is the robot’s mouth. A microphone turns moving air into a voltage. It is the robot’s ear. Both are tiny in a small robot, and both sit a few centimetres apart inside the same head. That closeness is the root of most of the trouble in this lesson.
Now add the room. Sound spreads out as it travels. In open air, every time you double the distance from a small source, the level falls by 6 dB. A robot that speaks at 80 dB SPL at 1 m gives only 74 dB at 2 m and 68 dB at 4 m. Meanwhile the kettle and the radio do not care how far you stand from the robot. They set a floor. Try it below.
The orange line is the robot’s voice. The dashed yellow line is the noise in the room. The teal marker is where you stand. Drag the distance, then raise the robot’s level.
Free-field rule: level falls by 20 × log10 of the distance ratio, 6 dB per doubling. A real room adds reflections, so the true fall is gentler. The 60 dB SPL room is a toy number for a busy kitchen, not a measurement.
Two facts fall out. First, the robot must be loud enough to rise above the noise at the listener. Second, a small speaker finds loud sound hard to make, especially low sound. Chapter 5 shows why with a short calculation.
A phone is held near the face, and a stereo sits in a big box on a shelf. An expressive robot is neither. It talks to people who stand two or three metres away, in rooms that are not quiet. Its head is perhaps ten centimetres wide, so the speaker is small. Its neck and arms carry motors, which make noise and shake the shell. And it must sound alive: a warm laugh, a low whisper, a sharp surprise. All of those lean on the low and the high ends of the voice at once.
Small speaker, small microphone, one tiny head, noisy room, long distance. Each piece is easy to buy. Putting them together is the hard part, and the chapters ahead treat it in that order: first the speaker alone, then the microphone alone, then both in one head.
A human voice is a stack of pure tones. The lowest tone is the fundamental. For an adult man it sits near 120 Hz, and for many women near 210 Hz. Above it come the harmonics: copies at 2, 3, 4 and more times the fundamental. The fundamental and the first few harmonics carry the body and warmth of a voice. The harmonics between 1 kHz and 4 kHz carry the consonants that make words clear.
A small speaker cannot move enough air at low frequency. Below its own resonance, the output falls very fast. The fundamental and first harmonics go missing, and only the thin upper part reaches you. That is the whole meaning of tinny: the body of the sound is gone and the bright top is left. The hero at the top of this page shows it. At 120 Hz, the 20 mm speaker drops the fundamental by about 37 dB, which is a factor of nearly 70 in pressure.
The cure is not one trick. It is a chain of decisions about the driver, the box, the port, the microphone and the head. Each decision trades one thing for another, and each has a number you can calculate. We calculate them in order.
Chapter 1
Follow one voltage sample from the amplifier to the air, and see why a mass on a spring decides which sounds a speaker can play
Take a small speaker in your hand and press the middle of its cone gently with a fingertip. The cone moves in a little, then springs back when you let go. Now flick it. It rocks a few times and settles. You have just found the two things that decide everything in this chapter: the cone has weight, and something pushes it back to the middle.
A moving-coil loudspeaker, also called a driver, has four main parts. A magnet makes a strong field in a narrow ring-shaped gap. A voice coil, a short tube wound with thin wire, sits in that gap. The coil is glued to a cone (the diaphragm that pushes the air). A flexible suspension, made of a ring called the surround and a corrugated disc called the spider, holds the cone in place and lets it move in and out.
Put a current through a wire in a magnetic field and the wire feels a push. The size of the push is the field strength times the length of wire in the field times the current. The first two are fixed by the build of the driver, so engineers fold them into one number, the force factor Bl. It has units of tesla metres, which is the same as newtons per amp.
Here is the full path for one moment of speech. A 16-bit number leaves the robot’s software at 48,000 numbers a second. A DAC (digital-to-analog converter) turns each number into a voltage. An amplifier makes that voltage large enough to drive the coil. The coil’s resistance turns the voltage into a current. The magnet turns the current into a force. The force moves the cone, and the cone moves the air.
samples (48 kHz, 16 bit) → DAC → amp (volts) → I = V / Re → F = Bl · I → cone motion → air pressure
The lesson’s head speaker is a worked example, with typical numbers (Chapter 2 gives them all). Its Bl is about 2.6 N/A. An amplifier that pushes 2 volts through its 4 ohm coil makes 0.5 A, so the force is about 1.3 N. That is the weight of a small apple, applied to a cone that weighs a gram or so.
Now treat the moving parts as one lump. The cone, the coil and the thin layer of air that moves with them have a total mass Mms. The suspension acts as a spring. Engineers describe a spring by its opposite, compliance Cms: how far it moves per newton, in metres per newton. A soft suspension has high compliance.
Every mass on a spring has a natural rhythm. Flick it, and it rocks at one frequency again and again. That is the resonance frequency Fs. A heavier cone rocks slower. A stiffer spring rocks faster.
Worked: Mms = 1.2 g = 0.0012 kg and Cms = 6.47 × 10−4 m/N (a spring of 1,546 N/m). Then √(Cms · Mms) = √(7.76 × 10−7) = 8.81 × 10−4, and Fs = 1 / (6.283 × 8.81 × 10−4) = 180 Hz.
Here is the key step, and it needs one fact: the sound a cone makes is set by its acceleration, not by how far it moves. Sudden speed changes squeeze the air. A cone that moves slowly and smoothly does very little.
Feed the driver a force of fixed size and sweep the frequency from low to high. Below Fs, the spring wins. The cone moves a fixed distance, F divided by the spring constant, and the acceleration is that distance times the frequency squared. Output rises with the square of frequency: 12 dB for each doubling. Above Fs, the mass wins. Acceleration equals force divided by mass, a constant, so the output is flat. At Fs itself the cone swings widest and the output peaks.
So a driver behaves like a high-pass filter: it passes high frequencies and cuts low ones, with its corner near Fs. A small speaker has a small, light cone on a stiff spring, so its Fs is high, near 600 Hz for a phone speaker. A voice whose fundamental sits at 120 Hz falls in the zone where output drops 12 dB per octave. Try the two knobs.
Warm line: the sound the cone makes for a fixed push. Purple line: how far the cone travels. The yellow dashed line marks Fs. Make the cone heavier and the spring softer, and watch Fs slide down.
A second-order model with total damping fixed at Q = 0.7 for a clean picture. Output and travel are drawn relative to their own flat parts. The formula Fs = (1 / 2π) √(k / m) is exact; the Q is a toy choice.
Move the mass slider to 0.2 g and the stiffness to 4,000 N/m. Fs jumps to about 710 Hz. That is a phone speaker. Move to 3 g and 800 N/m, and Fs falls to 82 Hz. That is a small woofer. The price of a low Fs is a bigger, heavier, softer driver, and a robot head has no room for one.
One more force acts on the cone, and it helps. A coil that moves through a magnetic field makes its own voltage, which opposes the amplifier. This back EMF eats part of the current when the cone moves fast, so it acts like a brake. The brake is strongest at Fs, where the cone moves fastest. Chapter 2 measures how strong it is with a number called Qes.
Chapter 2
Read a driver datasheet, and see how a handful of measured numbers let you predict the sound before you build a box
You need a speaker for a robot head. A supplier sends a datasheet with a table of strange abbreviations: Fs, Qts, Vas, Xmax. You cannot hear a table. Yet an engineer can read it and say how the driver will sound in a box of a given size, before cutting any plastic.
That power comes from two engineers, Neville Thiele and Richard Small, who worked in the early 1970s. Thiele showed that a driver in a box behaves like a standard electrical filter. Small turned that into a set of measurable numbers and clear design steps (Small published them in the Journal of the Audio Engineering Society in 1972 and 1973). We call the numbers the Thiele-Small parameters. Chapter 1 gave you two of them. Here is the full list.
Some numbers describe the moving parts. Fs is the resonance frequency. Mms is the moving mass. Cms is the suspension compliance. Sd is the effective piston area, the area of the cone plus part of the surround, which decides how much air it pushes for each millimetre of travel.
Some numbers describe the motor. Re is the DC resistance of the voice coil. Bl is the force factor from Chapter 1.
Some numbers describe damping. A resonance needs friction to calm it down, and the Q factor says how much. A high Q rings for a long time and gives a tall peak at Fs. A low Q is heavily damped and gives no peak. Qms counts only the friction in the suspension. Qes counts only the electrical brake from the back EMF of Chapter 1. Qts counts both together. Think of two brakes on one wheel: the total braking is the sum of their strengths, so the Q values combine like resistors in parallel.
One number links the driver to the air in a box: Vas, the equivalent air volume. Imagine a sealed container of air that is exactly as stiff as the driver’s suspension when you push the cone. Vas is the volume of that container. It equals the air density times the speed of sound squared, times Sd squared, times Cms. A soft suspension on a big cone gives a large Vas. Last comes Xmax, the farthest the cone can travel from rest while staying linear. Chapter 5 uses it.
Here is the lesson’s 40 mm robot-head speaker. These are illustrative, typical for a driver of this size. Take them as given: Fs = 180 Hz, Re = 4 Ω, Sd = 9 cm², Qes = 0.80, Qms = 4.0, Vas = 74 cc, Xmax = 1.5 mm.
Step 1, the total Q: Qts = (4.0 × 0.80) / (4.0 + 0.80) = 3.2 / 4.8 = 0.667. Step 2, the compliance, from Vas = ρc²Sd²Cms with ρc² = 1.2 × 343² = 141,000 Pa: Cms = 74 × 10−6 / (141,000 × 8.1 × 10−7) = 6.5 × 10−4 m/N. Step 3, the mass, from Fs: Mms = 1 / ((2π × 180)² × 6.5 × 10−4) = 1.2 g. Step 4, the force factor, from Qes: Bl = √(2π × 180 × 0.0012 × 4 / 0.80) = 2.6 T·m.
So a datasheet of seven numbers gives a full picture: the mass, the spring, the motor and the air stiffness. A supplier usually prints Fs, Re, Qms, Qes, Qts, Vas, Sd and Xmax, and you derive the rest. Practical note: Vas is the hardest to measure, because it depends on air pressure, temperature and humidity.
| Number | Describes | Unit | Head speaker |
|---|---|---|---|
| Fs | Free-air resonance | Hz | 180 |
| Qes | Electrical braking | none | 0.80 |
| Qms | Suspension friction | none | 4.0 |
| Qts | Total damping | none | 0.667 |
| Vas | Air as stiff as the spring | litres | 0.074 |
| Sd | Piston area | cm² | 9 |
| Xmax | Linear travel, one way | mm | 1.5 |
Q controls the shape of the corner near Fs. At Q = 0.707 the corner is the flattest possible: the output is down 3 dB exactly at Fs and has no bump. Above 0.707, a peak grows at Fs, and the speaker sounds boomy. Below 0.707, the corner rolls off early and the speaker sounds a little thin. At Fs the level is always 20 × log10(Q) dB against the flat part. Change the motor and watch.
Choose a driver. The warm curve is its response in free air. The grey dashed curve is the flat Q = 0.707 reference. Drag the force factor and see how a stronger motor flattens the peak.
The three drivers are illustrative, with typical orders of magnitude, not real parts. Free-air response is a second-order high-pass at Fs with Q = Qts. Bl changes Qes by 1 / Bl2 and leaves every other number alone.
Set the robot-head driver to 0.5×. Qes rises to 3.2, Qts to 1.78, and the level at Fs is up 5 dB: a loud, ringing peak. Set it to 2×. Qes falls to 0.20, Qts to 0.19, and the corner droops 14 dB at Fs: a driver that sounds dry and thin in free air. A designer picks Bl, mass and box together so that the finished system lands near Q = 0.7.
Chapter 3
Put the driver in a closed box and watch the trapped air stiffen the spring, raising the resonance and changing the damping
Hold a bare speaker driver in the air and play a bass note. You hear almost nothing. Yet the cone is clearly moving. The reason is simple. When the cone moves forward it pushes air in front and pulls air behind. The two sides make opposite pressure waves, and at long wavelengths the air just flows around the edge from the high-pressure side to the low-pressure side. The waves cancel. Engineers call this an acoustic short circuit.
The cure is to keep the back wave away from the front. Mount the driver in a large flat wall, or, in a robot head, in a sealed enclosure (also called a closed box): a cavity with no hole. Now the back wave has nowhere to go. It pushes on the air in the box. That makes the box a part of the system, and it changes everything we learned about Fs.
Air in a closed box is springy. Push the cone in and you squeeze the air, and the air pushes back. A small box gives a stiff spring, and a large box gives a soft one. The box spring sits on top of the suspension spring. Two springs acting together are stiffer than either alone, and their stiffnesses add.
Chapter 2 gave a way to measure the suspension stiffness in air terms: Vas, the volume of air that is exactly as stiff as the suspension. So comparing the box with the suspension is simple. A box of volume Vb has stiffness in proportion to 1 / Vb. The suspension has stiffness in proportion to 1 / Vas. The ratio of box stiffness to suspension stiffness is therefore Vas / Vb.
Total stiffness is the suspension stiffness times (1 + Vas / Vb). The mass is unchanged. Chapter 1 showed that Fs grows with the square root of stiffness, so the new resonance Fc is Fs times the square root of that factor. Damping works the same way: Q scales with the square root of stiffness when the mass and the friction stay the same, so the new total Q, Qtc, grows by the same factor.
Worked, for the head speaker (Fs = 180 Hz, Qts = 0.667, Vas = 74 cc) in a 150 cc box: Vas / Vb = 0.493. The factor is √1.493 = 1.222. So Fc = 180 × 1.222 = 220 Hz and Qtc = 0.667 × 1.222 = 0.815.
Two more boxes for the same driver. With 50 cc the factor is √(1 + 1.48) = 1.575, so Fc = 283 Hz and Qtc = 1.05. The corner is higher, and it peaks. With 1 L (1,000 cc) the factor is √1.074 = 1.036, so Fc = 187 Hz and Qtc = 0.69. The box is now almost invisible, and the corner is close to the flat Q = 0.707. Smaller boxes cost bass. That is the whole trade.
Below Fc the sealed box gives a smooth, gentle drop of 12 dB for each halving of frequency, the same slope as the free-air driver. The phase and timing of the bass stay clean, because nothing else resonates. This is why a sealed box is the simplest and most forgiving choice. The system is a second-order high-pass filter with corner Fc and quality Qtc, which is the same hp2 shape used in the hero.
The sealed box also protects the driver. The trapped air pushes back and limits how far the cone travels at low frequency. Chapter 4 shows the opposite choice, where a hole in the box gives more bass and lets the cone run free at some frequencies.
For a robot head the real question runs the other way. The industrial design gives you a volume, often tiny. You then pick a driver whose Vas is close to that volume, or smaller, so the factor stays small. Rules of thumb in supplier notes say a driver with Qts between about 0.4 and 0.7 suits a sealed box. Treat that as a start only. The device below shows why.
The warm curve is the finished system. The grey dashed curve is the same driver in free air. Shrink the box and watch the corner climb and grow a peak.
The curve is solved from the full driver-and-box circuit, not drawn from the shortcut formula; the two agree. Drivers are illustrative. The slider spans 0.1 to 10 times the driver’s Vas.
Slide the head speaker to its smallest box, 7.4 cc. The factor is √11 = 3.3, so Fc is 597 Hz and Qtc is 2.2: a sharp peak near 600 Hz, and the output at 200 Hz is down 18 dB. That is what a coin-sized box does to a 40 mm driver. Moving to the largest box, 740 cc, gives Fc = 189 Hz and the curve almost matches free air. No box choice can bring back sound below Fs, because the box only ever stiffens the spring.
Chapter 4
Cut a hole in the box and let the back wave help, then count what that costs in steepness, length and noise
Blow across the top of an empty bottle. It hums at one pitch. The air in the neck acts like a small plug, and the air in the body acts like a spring. The plug bounces on the spring and the bottle sings. Make the bottle bigger and the pitch drops. Make the neck longer and the pitch drops too.
That bottle is a Helmholtz resonator, named after the physicist who described it. A ported enclosure (also called a bass-reflex box or a vented box) puts one inside the speaker box on purpose. The designer cuts a hole, or fits a short tube, called a port. The air in the port is the plug. The air in the box is the spring.
The pitch of the bottle is the tuning frequency Fb. It depends on three things: the cross-section area of the port Sp, the volume of the box Vb, and the effective length of the port. The effective length Leff is a little longer than the physical tube, because air just outside each end also moves with the plug.
Worked, for the 0.15 L head box tuned to 140 Hz with a 12 mm round port (Sp = 1.13 × 10−4 m²): Leff = Sp / ( Vb · (2πFb/c)² ) = 1.13 × 10−4 / ( 1.5 × 10−4 × 6.58 ) = 0.115 m. Subtract the end correction πD/2 = 19 mm and the tube must be 96 mm long.
Follow the back wave. At low frequency the plug cannot keep up, so the port barely moves air and the box acts as if it had no spring at all. The cone then moves freely and the front and back waves cancel. Below Fb, the output drops very fast: 24 dB per octave, twice as steep as a sealed box. That is a fourth-order roll-off.
Near Fb, something clever happens. The plug swings with the right timing to reinforce the front wave, and it radiates much of the sound. The cone itself nearly stops, because the box pressure holds it. So around Fb the port adds output, and the cone works less. Above Fb the port output turns away from the cone output and fades. The result is extra bass in a narrow zone, a lower -3 dB point than a sealed box of the same size, and a cone that moves less at that zone, which Chapter 5 shows is a gift.
The device below solves this circuit for the head speaker in its 0.15 L box. Drag the tuning and the port width. The second panel shows how fast the air rushes through the port.
Top: the ported response (warm) against the sealed box (grey dashed). Bottom: peak air speed in the port, with a yellow ceiling. Lower the tuning, narrow the port, raise the drive, and see what breaks first.
Lossless port model solved from the driver circuit; real ports add friction and an organ-pipe resonance higher up. The 17 m/s ceiling is a common rule of thumb (about 5 percent of the speed of sound) for avoiding audible port noise, not a standard. A 60 mm port limit stands for the depth of a robot head and is a toy number.
At the default settings the port needs a 96 mm tube, so it will not fit a 60 mm head. A designer then raises the tuning, or swaps the tube for a passive radiator: a second cone with no coil, loaded with a weight, that plays the part of the plug. Passive radiators are common in small speakers because they are short.
The air also gets fast. At 2 V the air in the default port peaks near 15 m/s around 120 Hz. Narrow the port to 6 mm, which cuts its area to a quarter, and the speed climbs to about 60 m/s, far past the ceiling. Fast air in a narrow tube makes a hiss and a chuff, called port noise, and the microphone a few centimetres away will hear it. A ported box also rings: after a sudden sound, the port keeps swinging for a few cycles, which smears the start of a drum hit or a hard consonant.
So which box suits a robot head? Count the costs side by side. A sealed box is simple, forgiving, and short on bass below its corner. A ported box reaches lower and plays louder near its tuning, but it needs a long tube or a passive radiator, it can chuff, it rings after a sudden sound, and it falls twice as fast below Fb. In a head with a speaker the size of a coin, and with a microphone a few centimetres away that will hear every puff of port air, a sealed box with careful equalisation is the usual starting point. A port earns its place only when the head is large enough to hold it and quiet enough to forgive it.
Chapter 5
Count how far a cone must move to play a low note at a useful level, and see why a coin-sized speaker cannot do it
Ask a small speaker to play a 100 Hz note as loudly as it plays a 1 kHz note. You can hear what happens. The sound turns rough and buzzy, and the cone may even rattle against its frame. The speaker did not break. It ran out of room to move.
Chapter 2 introduced Xmax, the farthest the cone can travel from rest while its motion stays linear, which means that twice the current still gives twice the push. Past Xmax the suspension stiffens, the coil leaves the even part of the magnetic field, and the motion bends out of shape. The bent motion adds new frequencies that were not in the signal. We call that distortion, and Chapter 8 measures it.
Chapter 1 said the sound depends on the cone’s acceleration. Put that into numbers. A piston of area Sd that moves with peak travel x at frequency f moves a peak volume of air equal to Sd times x, and does so f times a second. The acceleration of that volume goes with the frequency squared. The pressure it makes at a distance r, with the speaker on a flat wall that radiates into half of space, follows from that.
Read the formula the other way. At a fixed level, the travel you need is inversely proportional to the frequency squared. Halve the frequency and the cone must travel four times as far for the same loudness. That is why bass is hard for small speakers.
Worked, for the head speaker (Sd = 9 cm², Xmax = 1.5 mm) at 100 Hz and r = 1 m: ρ (2πf)² = 1.2 × 3.95 × 105 = 4.74 × 105. Times Sd = 4.26 × 102. Times x = 1.5 mm gives 0.64. Divide by 2π√2 = 8.89 and p = 0.072 Pa, which is 71 dB SPL.
So at its travel limit this speaker plays 71 dB SPL at 100 Hz. But a voice at normal volume is about 80 dB SPL at 1 m. To reach 80 dB at 100 Hz the cone must travel 1.5 mm × 10(80 − 71)/20 = 4.2 mm, nearly three times Xmax. At 400 Hz the same limit gives 95 dB, because (400/100)² is 16, which is 24 dB. There is no problem up there.
Travel is not the only limit. The voice coil is a resistor, and the current turns into heat. Push the amplifier harder and the coil gets hot, its resistance rises, and the output falls. A small coil with little metal to soak up the heat has a low power rating. So a small speaker has two ceilings. At low frequency the travel sets the limit. At high frequency the heat sets it. The usable loudness is the lower of the two.
Engineers handle the low-frequency ceiling with excursion protection. A small processor in the amplifier chain models the speaker, estimates the cone travel from the audio it is about to play, and turns the level down only when the estimate passes Xmax. Texas Instruments describes this in a tuning guide for its smart amplifier family (SLAAE48). Its example sweep moves the cone 2.75 mm without protection and 1.66 mm with it. The guide also notes a trade: a very fast attack saves the driver but can cost loudness on music with big dynamics, and the look-ahead for a 48 kHz flow is about 2.67 ms.
Notice what protection removes. The sounds that need the most travel are the lowest ones. So a protected speaker plays the fundamental of a voice at a lower level than the harmonics. That is the same effect you saw in the hero, now caused on purpose to save the driver.
The warm curve is the loudest clean level the speaker can reach at 1 m: the lower of the travel limit (rising 12 dB per octave) and the heat limit (flat above the box corner). The teal line is the voice level you want. Raise it and watch the red zone grow.
Travel limit from the formula above, using each driver’s Sd and Xmax. Heat limit is the flat level for the chosen power into Re, shaped by the sealed-box corner of Chapter 3; real power ratings also depend on how long the signal lasts. Drivers are illustrative.
Switch to the phone speaker. At 80 dB and 2 W, the curve crosses the voice line near 740 Hz, so all the warmth of a man’s voice lies below the clean region. The robot-head driver crosses near 207 Hz, still above the 120 Hz fundamental. Only the 80 mm desk driver, crossing near 91 Hz, covers it. Size is not a detail. It is the first law of the field: bass needs cone area times travel.
Chapter 6
Follow sound into a part the size of a rice grain, and learn what sensitivity, noise and overload mean for a voice three metres away
The robot’s ear is a metal can about 3 mm wide with a hole in it. You could lose it in the cap of a pen. Yet it must hear a whisper from across a room and survive the robot’s own voice shouting a few centimetres away. A datasheet for it lists three numbers that matter most: sensitivity, SNR and AOP. This chapter makes each one concrete.
A MEMS microphone (MEMS stands for micro-electro-mechanical system, a machine etched into silicon like a chip) holds two thin plates close together. One plate is a stiff, perforated backplate. The other is a very thin, flexible diaphragm. Together they form a capacitor, a part that stores charge, whose value depends on the gap. A sound wave pushes the diaphragm, the gap changes, and the capacitance changes by a tiny amount.
A small companion chip, an ASIC, turns that change into a signal. Many robot designs use a digital microphone. Its ASIC runs a fast one-bit converter and sends a stream of ones and zeros, called PDM (pulse-density modulation), at about 1 to 3 million bits a second. Where the ones are dense, the sound pressure is high. A codec or processor then low-pass filters the stream and keeps one sample in every 64. That step is decimation.
pressure → diaphragm gap → capacitance → ASIC → PDM, 1 bit at 3.072 MHz → decimate by 64 → PCM, 24 bit at 48 kHz
The numbers fit: 3,072,000 divided by 64 is 48,000 samples a second. A slower clock costs SNR: the Infineon IM69D130 datasheet lists 69 dB(A) SNR at a 3.072 MHz clock, and 64 dB(A) at 768 kHz.
Sensitivity is the output you get for a standard test sound: 1 pascal, which is 94 dB SPL, at 1 kHz. An analog microphone states it in volts, in dBV. A digital one states it in dBFS, decibels below full scale, where 0 dBFS is the largest number the output can hold. The IM69D130 lists −36 dBFS, with a tolerance of ±1 dB.
Read that as a ruler. If 94 dB SPL gives −36 dBFS, then each extra decibel of sound adds one decibel of output. Full scale arrives at 94 + 36 = 130 dB SPL. The part is designed so that its output tops out right where its overload point sits.
Every microphone makes a little hiss of its own, called self noise. It comes from the electronics and the diaphragm itself. The signal-to-noise ratio (SNR) compares the test sound with that hiss. InvenSense defines it as the difference between a 94 dB SPL, 1 kHz reference and the self-noise level, usually A-weighted over a 20 kHz bandwidth. A-weighting adjusts the measure to the way an ear hears, so it counts mid frequencies more than extreme ones.
Worked, for the IM69D130: EIN = 94 − 69 = 25 dB SPL(A). AOP is 130 dB SPL. So DR = 130 − 25 = 105 dB, the same figure Infineon quotes. For comparison, InvenSense wrote in 2013 that early MEMS parts sat near 58 to 60 dB SNR, and its low-noise parts then reached 65 dB (29 dB EIN).
AOP is the loud end. A robot has a reason to worry: its own speaker may sit only a few centimetres from the microphone. Chapter 10 sizes that. For now note a data-flow trap. A 105 dB span needs about 17.5 bits, because each bit adds about 6 dB. A 16-bit chain gives about 98 dB between its quietest and loudest value. Infineon says that a design needing both high AOP and high SNR must use a 20-bit or 24-bit signal chain, or the converter hides the microphone’s quiet end.
Try the whole ladder. A person speaks normally, about 60 dB SPL at 1 m (a typical figure). The level at your microphone falls as you move away, 6 dB each time the distance doubles.
The bar runs from silence to 140 dB SPL. Grey is below the noise floor, green is usable, red is above the overload point. The teal marker is a talker at the distance you choose. Compare the two microphones and the two converter depths.
The low-noise part uses the Infineon IM69D130 datasheet figures (SNR 69 dB(A), AOP 130 dB SPL at 10 percent THD, −36 dBFS). The budget part is a toy at SNR 62 and AOP 120, typical of the 58 to 65 dB range InvenSense quoted. A 16-bit chain is taken as about 98 dB below full scale, which equals the AOP here; noises add as power. Speech at 60 dB SPL at 1 m is a typical value.
With the low-noise part and a 24-bit chain, a talker at 3 m arrives at 50.5 dB SPL, 25.5 dB above the 25 dB floor. Swap to the budget part: its EIN is 32 dB, so the same voice is only 18.5 dB above the floor, and a noise-removal stage later must work harder. Go back to the low-noise part, switch to the 16-bit chain and move out to 8 m. The talker falls to 41.9 dB SPL, and the chain floor of about 32.7 dB leaves only 9 dB. Quiet far speech dies in the converter, not in the microphone.
Chapter 7
Trace the path from the room to the diaphragm, and find the hidden resonator that a careless gasket builds around it
A team builds the first robot head. The microphone sits on a board behind a 1 mm hole in the plastic shell. On the bench, the board alone records clean speech. Inside the head, the same microphone makes a honky voice with a sharp whistle on the letter S. Nothing is wrong with the part. The head changed the sound before the sound reached it.
A MEMS microphone has a single acoustic port, a tiny hole that lets sound reach the diaphragm. In a bottom-ported part the hole is on the side that faces the board, so the board needs a matching hole. In a top-ported part it faces up. Between the outside air and that port lies a sound path: the hole in the shell, a gap or gasket, and the hole in the board. The shape of that path is part of the microphone.
Sound travels at about 343 m/s. A tone of frequency f has a wavelength of c / f. At 1 kHz the wavelength is 343 mm. At 10 kHz it is 34 mm, a figure InvenSense uses in its mounting note. A feature of the sound path matters when it is a noticeable fraction of the wavelength, and for voice work the top of the band is near 8 kHz, where the wavelength is 43 mm. A 1 mm hole is far smaller, so the exact geometry of a short, straight hole does not matter. InvenSense says the response does not change with the hole size, as long as the hole is not smaller than 0.25 mm, and a hole of 0.5 to 1 mm is typical.
Then why did the head sound wrong? Because one thing matters even when it is much smaller than the wavelength: a Helmholtz resonator, from Chapter 4. InvenSense states it plainly: a wide gasket between the board and the case, with a narrow vent in the case, builds a cavity with a neck. The shape is the same as a bottle.
The cavity is the air in the oversized gasket space. The neck is the hole in the shell. The same tuning formula as Chapter 4 applies, and InvenSense prints it for this exact case. Here the cavity volume V is in cubic millimetres, the vent has diameter D and length L in millimetres, and the end correction is πD/2.
Worked: a 1 mm hole (D) in a 2 mm shell (L) over a gasket space 4 mm wide and 1 mm thick. A = 0.785 mm², V = 12.6 mm³, L + πD/2 = 3.57 mm. Then A / (V · 3.57) = 0.0175, the square root is 0.132, and fH = 54,600 × 0.132 = 7.2 kHz. Change the gasket space to 8 mm wide: V = 50.3 mm³ and fH = 3.6 kHz, in the middle of the voice band.
That explains the whistle on the letter S: a resonance just where the sibilant energy sits. Test it below. The peak height depends on the losses in the vent, which this device models with a toy value.
The blue curve is the microphone response behind the gasket. The shaded band is the voice, up to 8 kHz. Widen the gasket and watch the peak slide down into the voice. Then match the gasket to the hole.
Frequency from the InvenSense AN-1003 estimate with a 1 mm gasket thickness. The gasket space cannot be narrower than the hole; at that point there is no cavity and the path is direct. The peak height uses a toy loss value (Q rising with hole size from 1.5 to 6); PUI reports that a bad channel can put a peak between 10 kHz and 15 kHz.
With the gasket as wide as the hole (1 mm), there is no cavity and the response is flat. With the default 8 mm gasket the peak sits at 3.6 kHz. A designer has four fixes, each from the vendor notes. Put the board directly against the case. Keep the gasket no wider than the hole in the shell. Make the shell thin near the hole. Or use several small holes. Whatever you pick, the gasket must seal tightly against both the case and the board. PUI notes that many echo and feedback faults come from a leaky gasket, because the robot’s own sound slips in around the edge instead of through the hole.
A second sentence from the same note is worth keeping. The influence of the gasket’s stiffness on the microphone is negligible, so the choice between rubber, silicone, neoprene and closed-cell foam is about sealing and compression, not about sound. Pick the one that stays compressed for years and survives the heat of the robot’s own electronics. A foam that slowly relaxes opens a leak, and the leak lets the robot’s voice in from the side.
PUI adds rules that suit a robot. Put the sound hole on a flat patch of shell, which makes a good gasket easy. Make the outside hole at least as large as the microphone’s own port, with a direct path. Keep the microphone away from motors, power supplies and radio antennas, which couple noise into it. And do not mount it on the same board as a speaker. Vibration from the speaker travels through the board, the PUI guide says, and arrives as noise, echo or feedback. A robot with servo motors in its neck and a speaker in its chest needs all four rules.
Chapter 8
Turn a vague complaint of buzzy or thin into two measured curves, and learn which knob fixes which curve
Someone tells you the robot’s voice sounds buzzy. Someone else says it sounds thin. These sound like the same complaint, but they are two different faults with two different measurements. Thin is a fault of the level at each frequency. Buzzy is a fault of new frequencies that were never in the signal. You can tell them apart with a test tone and a microphone.
The frequency response of a speaker is its output level at each frequency, for a constant input. To measure it, play a slow sine sweep, a pure tone that glides from 20 Hz to 20 kHz. Record it with a reference microphone at a fixed distance, and plot the recorded level against frequency. A response described as “180 Hz to 8 kHz, ±3 dB” means the curve stays within 3 dB of its middle between those two frequencies.
Where you measure matters. A speaker in a head sounds different from the same driver on a bench, because the shell, the box and the room each add peaks and dips. Measure the robot as built, at the distance a user stands, and in a quiet room. Chapters 3 and 4 gave you the shape of the low end. Below the corner, the curve falls 12 dB per octave for a sealed box and 24 for a ported one. A flat response out to 8 kHz is common. The bass edge is what changes the character of the voice.
Now play a single pure tone at 100 Hz. A perfect speaker plays only 100 Hz. A real one adds copies at 200, 300, 400 Hz and so on, whole multiples of the tone. These are harmonics, and the extra energy is harmonic distortion. The cause is the cone’s motion bending out of shape when it travels far: the suspension stiffens, and the coil leaves the even part of the magnetic field, so the force factor Bl falls. A sine in becomes a squashed sine out, and a squashed sine is a sine plus its harmonics.
The usual score is total harmonic distortion (THD): the combined strength of the harmonics compared with the strength of the tone you asked for.
Worked: a measurement shows the 2nd harmonic 30 dB below the tone and the 3rd 36 dB below. In amplitude that is 0.0316 and 0.0158. THD = √(0.0316² + 0.0158²) = √(0.00100 + 0.00025) = 0.0354, which is 3.5 percent or −29 dB.
The same idea scores microphones. A datasheet gives a microphone’s acoustic overload point as the level where THD reaches 10 percent (Chapter 6). The mechanism differs, but the score is the same, so you can put the speaker and the microphone on one scale.
Here is the useful rule that ties Chapters 5 and 8 together. Distortion depends on how far the cone travels compared with Xmax. Within Xmax the motion is nearly straight. Beyond it the distortion climbs fast. Chapter 5 showed that a given loudness needs travel that grows as the frequency falls. So a speaker is clean at 400 Hz, rough at 100 Hz, and the same level makes both. Try it. The device finds the travel from the level and the pitch, then bends a sine the way a real cone does and measures the harmonics with a Fourier sum.
Top: the ideal sine (faint teal) and what the cone plays (pink), against the Xmax lines. Bottom: the harmonics the bend creates. Raise the level or lower the pitch until the cone passes Xmax.
Travel comes from the Chapter 5 formula. The bend is a toy cone: a soft saturation that compresses the peaks by about 10 percent at Xmax plus a small even-order term; real cones differ, and Bl and suspension curves must be measured. The harmonics are a real Fourier sum of the bent wave, 512 points per cycle.
At the default (robot head, 100 Hz, 75 dB), the cone needs 2.3 mm, which is 1.6 times Xmax, and THD is about 9 percent. Move to 200 Hz at the same level and the travel falls to a quarter, 0.6 mm, so THD drops to about 1 percent. The harmonic ladder also tells you what you hear: strong 3rd and 5th harmonics sound hollow and buzzy.
Two practical habits make these measurements trustworthy. First, calibrate: record a source of known level, so that a decibel on the plot is a decibel in the room. Second, repeat at more than one drive level. A response that is flat at 60 dB and sagging at 85 dB is telling you that the suspension and the motor have stopped behaving like a straight line, and the sag is the first sign of the distortion you will count next.
Put the two faults in one table of habit. Symptom: thin voice. Measurement: the sweep shows the curve falling early. Fix: a bigger driver, a better box, or accept the limit and equalise inside it (Chapter 9). Symptom: buzzy low notes. Measurement: a 100 Hz tone shows a THD above about 10 percent and a tall 3rd harmonic. Fix: cut the drive below the corner with a high-pass filter, or use excursion protection from Chapter 5. Never fix distortion with more bass boost. Boost raises the travel and raises the distortion.
Chapter 9
Compare three ways to add warmth to a small speaker, and count what each one costs in cone travel
The product team plays a recording of the robot and says one word: “Warmer.” You now have a design goal that no datasheet defines. What does warm mean in numbers?
Listeners use the word for a voice where the low and low-middle part, roughly 100 to 400 Hz, is strong compared with the bright part, roughly 2 to 5 kHz. We can turn that into a plain number: the low-to-high balance, the level of the 100 to 400 Hz band minus the level of the 2 to 5 kHz band, in dB. It is a rough proxy, not a standard, and ears are the final judge. But it lets us compare ideas.
Take the toy voice from the hero: a fundamental at 120 Hz, each harmonic 5 dB lower per octave. As recorded, its balance is about +11 dB. Through the 40 mm robot-head speaker in its sealed box, it falls to about +7 dB. Through the 20 mm phone speaker it falls to about −14 dB. That drop is the tinny sound.
The cleanest fix is the one from Chapters 3 to 5: a bigger driver, a bigger sealed volume, or a tuned port. It moves the corner down and gives the cone more room. Every other lever is a patch on this one. If the industrial design leaves no room, you move to the next lever.
Equalisation (EQ) raises or lowers some frequencies with a filter. A low shelf boost lifts everything below a chosen frequency by a fixed number of decibels. It looks free, but Chapter 5 shows the cost. Pressure doubles for each 6 dB, and cone travel doubles with it. A 9 dB boost multiplies the travel by 2.8. A driver already near Xmax at 120 Hz then moves out of its straight range and Chapter 8’s distortion arrives. The boost fixes the balance on a plot and ruins the sound on the bench.
Here is a trick from psychoacoustics. Play a tone at 200 Hz, then a tone made only of 400, 600 and 800 Hz. Most listeners hear the same pitch for both, 200 Hz, though the second contains no energy at 200 Hz. The brain reads the spacing between harmonics and infers the missing fundamental. This is the missing fundamental effect, known for well over a century.
A virtual bass processor uses it. It takes the low part that the speaker cannot play, makes harmonics of it with a nonlinear step, and mixes those into the range just above the speaker’s corner, where the cone barely moves. The listener hears the pitch and weight of the bass, and the cone never travels the long distance. Our simple model skips the nonlinear step and adds +6 dB directly to the harmonics from the corner up to 3.2 times the corner. Real products use a nonlinear device, then band-pass the result.
Compare them on the head speaker with the voice at 80 dB SPL at 1 m (a toy loudness). Plain: balance +6.7 dB and a typical peak travel of 0.65 of Xmax. Bass boost of 9 dB: balance +13.7 dB, but travel 1.8 times Xmax, so the cone distorts. Virtual bass: balance +12.1 dB and travel 0.78 of Xmax. The ear gets nearly the warmth of the boost, and the cone stays inside its limit.
Worked: the 120 Hz fundamental comes out of the head speaker 10.3 dB low (Chapter 3’s curve). A boost of +9 dB brings it to 1.3 dB low, but multiplies its own travel by 109/20 = 2.8. Virtual bass leaves the fundamental where it is and raises the 240 to 600 Hz harmonics by 6 dB, whose travel is far smaller because it goes with 1 / f².
Sticks are the harmonics of the voice as the speaker plays them, in dB SPL at 1 m. Faint sticks are the raw voice. A stick turns red when its level needs more travel than the cone has. Pick a speaker and a treatment. Press Play for a tone built from the same sticks.
Toy voice: harmonics at whole multiples of the pitch, each 5 dB lower per octave. The balance is the 100 to 400 Hz band minus the 2 to 5 kHz band, summed as power. Typical peak travel is the root of the sum of squares of each harmonic’s travel. The sound is additive sine waves through a second-order high-pass with the chosen box’s corner and Q; your own laptop speaker cannot play the lowest sticks. The 9 dB boost fades out above 600 Hz.
Try the phone speaker. Nothing helps the balance: its corner is near 1 kHz, above the first eight harmonics, and no treatment can make a coin-sized speaker play 120 Hz. On headphones, press Play on each mode and listen. The raw voice has body. The plain phone speaker keeps the pitch but loses the weight, which is the missing fundamental at work.
Chapter 10
Put the speaker and the microphone in the same head, and add up how loud the robot is in its own ear
You ask the robot a question while it is still talking. It hears you badly, or it answers its own voice, or it cuts itself off. The cause is the layout we have built for ten chapters. The speaker and the microphone share a head only a few centimetres wide. Whatever the speaker plays reaches the microphone first, and loudly.
This chapter is the showcase. It uses every number from Chapters 1 to 9 in one budget. The algorithm that removes the echo from the signal, acoustic echo cancellation (AEC), has its own lesson: Acoustic Echo Cancellation. Here we study what the hardware hands to it.
Write down the signal at the microphone, sample by sample. It is the sum of four parts.
The software knows x[n], because it sent it to the speaker. So the AEC tap on the digital playback signal is free. The hardware decides how big the other terms are.
First, how loud is the echo? A small source spreads its sound out, so the level falls 6 dB per doubling of distance. The speaker plays L dB SPL at 1 m. The microphone sits d metres away. The echo level is L + 20 log10(1 / d), minus any isolation you build in: foam, a baffle, a sealed gasket. At 6 cm, 20 log10(1 / 0.06) is +24.4 dB. Close to the cone this formula is a rough guide, not exact.
Worked: L = 80 dB at 1 m, d = 6 cm, isolation 10 dB. Echo = 80 + 24.4 − 10 = 94.4 dB SPL at the microphone. A user 2 m away speaks at 60 dB at 1 m, so s = 60 − 6 = 54 dB SPL. The echo is 40.4 dB louder than the user.
Second, does the echo overload the microphone? The low-noise part from Chapter 6 overloads at 130 dB SPL, so 94.4 leaves a margin of 35.6 dB. A budget part with AOP 120 leaves 25.6 dB. Both are safe. Put the same speaker 1 cm away with no isolation and the echo reaches 100 dB. Still safe, but a loud ported speaker can push you close.
Third, can the canceller win? It must remove the echo to well below the user’s voice. A gap of 40 dB asks for a lot of cancellation. We use 30 dB as a toy ceiling for what a linear canceller can do on a good day. Real figures depend on the device, the room and the algorithm.
Fourth, how big is the part that cannot be cancelled? Say the cone is pushed so hard that THD is 9 percent (Chapter 8). The distortion is then 21 dB below the echo, so d[n] sits at 73 dB, still 19 dB above the user. Subtracting the linear part does not touch it. Cleaner playback helps more than a stronger canceller: at 1 percent the residual is 40 dB below the echo, at 54 dB, equal to the voice. Last, the user must stand well above the microphone’s own floor, or there is no voice to rescue.
Each marker is a level at the microphone, in dB SPL. Four checks below the picture turn green or red. Move the microphone away, add isolation, and lower the speaker until every check passes.
Toy budget. Echo level is the free-field estimate from the speaker level at 1 m, which is rough this close to a cone. Isolation is a single number for foam, baffle and seal. The distortion uses the Chapter 8 cone at 200 Hz. The checks use toy limits: 10 dB of overload margin, 30 dB of echo above speech for a linear canceller, and a distortion residual 15 dB under speech. User speech is 60 dB SPL at 1 m.
Start from the defaults. The head speaker at 80 dB shows a pass for overload and for the noise floor, and a fail for the echo gap (40 dB) and for the distortion residual (about 6 dB above the user). Now move the microphone to 20 cm and set isolation to 25 dB. Echo drops to 80 + 14.0 − 25 = 69 dB. The gap to the user falls to 15 dB, the residual sits about 19 dB under the voice, and all four checks pass. This is what placement and isolation buy you, and it is the work of Chapter 7: a sealed gasket, a separate board, and a microphone far from the cone.
The budget above counts only the air path. Two others hide inside a head. The first is the structure path: the speaker shakes its frame, the frame shakes the board, and the board carries that shake into the microphone. PUI’s guide warns about exactly this when a speaker and a microphone share one board. The second is the leak path: a gasket that is not fully compressed lets the speaker’s sound slip around the edge of the hole. Neither path obeys the distance rule. You find them by playing a tone through the speaker with the microphone port plugged, and listening to what still arrives. If anything does, one of these two paths is the cause.
Chapter 11
Keep the numbers, the checks, the code and every source in one place, and carry them back to the hero
A robot speaks and listens through two small transducers. The speaker is a mass on a spring in a box. Its resonance and damping come from eight measured numbers. A small cone runs out of travel at low frequency, so bass is lost first, and the voice turns tinny. The microphone is a rice-grain capacitor with a noise floor and an overload point. The head decides what reaches it, and what it hears of the robot’s own voice. Every step has a number you can compute.
| Quantity | Rule or value | Where |
|---|---|---|
| Sound pressure level | 20 log10(p / 20 µPa); 1 Pa = 94 dB SPL | Chapter 0 |
| Level versus distance | −6 dB per doubling, free field | Chapters 0, 10 |
| Force on the coil | F = Bl · I | Chapter 1 |
| Driver resonance | Fs = 1 / (2π √(Cms Mms)) | Chapter 1 |
| Electrical and total Q | Qes = 2π Fs Mms Re / Bl²; Qts = Qms Qes / (Qms + Qes) | Chapter 2 |
| Sealed box | Fc = Fs √(1 + Vas/Vb); Qtc = Qts √(1 + Vas/Vb) | Chapter 3 |
| Ported box tuning | Fb = (c / 2π) √(Sp / (Vb Leff)); 24 dB per octave below Fb | Chapter 4 |
| Loudest clean level | p = ρ (2πf)² Sd Xmax / (2π √2 r); head speaker: 71 dB SPL at 100 Hz | Chapter 5 |
| Microphone noise and range | EIN = 94 − SNR; DR = AOP − EIN; IM69D130: 25 and 105 dB | Chapter 6 |
| PDM to PCM | 3.072 MHz ÷ 64 = 48 kHz | Chapter 6 |
| Port hole and gasket | Hole ≥ 0.25 mm, 0.5 to 1 mm typical; gasket no wider than the case hole | Chapter 7 |
| Helmholtz peak | f = (c / 2π) √(A / (V (L + πD/2))) | Chapters 4, 7 |
| Harmonic distortion | THD = √(H2² + …) / H1; 1 percent = −40 dB | Chapter 8 |
| Bass boost cost | +6 dB doubles pressure and cone travel | Chapter 9 |
| Echo at the microphone | L1m + 20 log10(1/d) − isolation | Chapter 10 |
pythonimport numpy as np RHO, C = 1.2, 343.0 # air density kg/m^3, speed of sound m/s def sealed(Fs, Qts, Vas, Vb): a = np.sqrt(1 + Vas / Vb) # the box stiffens the spring return Fs * a, Qts * a # Fc, Qtc def highpass_db(f, Fc, Q): # second-order high-pass, the sealed-box corner x = f / Fc return 20 * np.log10(x**2 / np.sqrt((1 - x**2)**2 + (x / Q)**2)) def max_spl_at_xmax(f, Sd, Xmax, r=1.0): # loudest clean level at r metres, half space p = RHO * (2 * np.pi * f)**2 * Sd * Xmax / (2 * np.pi * np.sqrt(2) * r) return 20 * np.log10(p / 20e-6) def port_length(Fb, Vb, D): # physical tube length for a round port, metres Sp = np.pi * D**2 / 4 Leff = Sp / (Vb * (2 * np.pi * Fb / C)**2) return Leff - np.pi * D / 2 def mic_ein_dr(snr, aop): # equivalent input noise and dynamic range, dB ein = 94 - snr return ein, aop - ein def helmholtz_hz(D_mm, L_mm, V_mm3): # InvenSense AN-1003 estimate: vent over a cavity A = np.pi * D_mm**2 / 4 return C * 1000 / (2 * np.pi) * np.sqrt(A / (V_mm3 * (L_mm + np.pi * D_mm / 2))) def echo_db(L1m, d_m, iso_db): # level at the microphone, free-field estimate return L1m - 20 * np.log10(d_m) - iso_db Fc, Qtc = sealed(180, 0.667, 74e-6, 150e-6) print(round(Fc), round(Qtc, 3)) # 220 0.815 print(round(float(highpass_db(120, Fc, Qtc)), 1)) # -10.3 dB at a 120 Hz voice print(round(float(max_spl_at_xmax(100, 9e-4, 1.5e-3)), 1)) # 71.1 dB SPL print(round(port_length(140, 150e-6, 0.012) * 1000)) # 96 mm print(mic_ein_dr(69, 130)) # (25, 105) print(round(helmholtz_hz(1, 2, 12.57))) # 7221 Hz print(round(echo_db(80, 0.06, 10), 1)) # 94.4 dB SPL
This lesson covers the two transducers and the head around them. The signal processing that follows is in other lessons. Keep going:
This lesson was built from the documents below, not from slides. Lines marked read in full were opened and read for this lesson. Lines marked excerpt were checked only through the search excerpt or the abstract, and their figures should be confirmed against the current revision before you design to them.
Credit goes to the authors of those papers and notes, and to Thiele and Small for the model that makes the first half of this lesson possible. Every device here is our own model, built from their formulas. The drivers, the voice and the head are illustrative.
Now press Teach and explain one chain out loud, from memory: how a voltage becomes a cone motion, why the sealed box raises Fc, why bass needs travel, what the three microphone numbers mean, and where the head hides a resonator. Then go back to the hero and play the voice through each speaker again.