The interview problem
Design a microphone-array feature that points toward an active speaker without claiming to identify them.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Assume two synchronized microphones with known spacing. Estimate time difference using cross-correlation on suitable speech windows, constrain it to the physically possible range and smooth only reliable estimates. A two-microphone estimate has geometric ambiguity; additional microphones or assumptions are needed for full localization.
2. Trace the design or derivation
Synchronized channels → bounded cross-correlation → reliability gate → direction candidates
For a broadside angle convention, delay equals spacing times sin(angle) divided by sound speed under the far-field model. Keep angle conventions explicit and reject impossible values instead of clipping every bad observation into a plausible direction.
3. Calculate the example
At sound speed 343 m/s, a 0.1 m microphone spacing permits at most about 0.292 ms relative delay. At 48 kHz that is about 14 samples; a 30-sample peak is inconsistent with the direct-path geometry.
4. Failure cases and trade-offs
Reflections, multiple speakers and clock offsets produce misleading peaks. Far-field angle estimation is not the same as source distance. Temperature and device geometry affect calibration.
5. Validation, follow-ups and self-review
Test known directions, reverberant rooms and simultaneous sources. Follow-up: how would a third microphone help? Self-review: state the physical delay bound and ambiguity.
Sources and related practice
Technical reference: docs.scipy.org — Cross-correlation definition; microphone geometry is independently derived.
Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Attribute speakers in recorded meetings; Remove loudspeaker echo without removing the user.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.