Following the conversation: AI-assisted engineering for contextual audio on the Alif Ensemble® E8
In a busy environment, following a conversation means more than recognizing words. Voices overlap and background sounds compete for attention. A robot or hearable needs to distinguish who is speaking from what else is happening nearby. Bringing that information together is part of the goal of Physical Intelligence: helping a device interpret its surroundings.
ADI audio models, reference implementations, and measured board knowledge provided the engineering foundation, alongside Alif’s hardware and software resources. An engineer on ADI’s Edge AI team brought those inputs into an AI-assisted workflow through a brief asking the application to show “who is speaking, what they said, and what else is going on in the room.” The brief also required testing with the board’s own microphones, so the application would be judged on live input as well as recorded test data.
Embedded processing ran on the Alif Ensemble® E8. Its two Arm® Cortex®-M55 cores and associated NPUs allowed time-critical speech enhancement to run separately from other audio workloads, while a laptop provided transcription and the live GUI. The challenge was to make these parts behave as one system: keeping pace with incoming audio while producing useful speaker labels, words, and sound detections.
ADI AI native resources supplied implementations to integrate expected outputs to compare, and board-specific knowledge to guide configuration. Making that expertise available within the AI-assisted workflow connected the desired experience to concrete engineering inputs. In this instance, Claude assisted across firmware development, model integration, host software, and verification tasks.
A shared design contract kept interfaces and timing assumptions aligned, while a running log recorded the test conditions and commands. Another reviewer could then repeat a check and see whether it produced the same result. The engineer controlled the physical setup and assessed the application in live use, with independent verification checking reported results.
The initial reference tests were encouraging. But when the microphones began listening to the room, two channels, only a few millimeters apart, reported levels roughly 30 dB apart. The quieter channel looked like the cleaner input, yet something in the capture path was suppressing useful sound. Before the team could trust the application results, it needed to explain the difference. That meant looking at how the system captured and processed the audio.
The first design decision was how to keep speech enhancement running continuously while leaving room for speaker and sound-event processing. The E8 provides a high-performance Cortex® -M55 core at 400 MHz and a high-efficiency core at 160 MHz, with three Ethos™-U NPUs. The high-performance core captured microphone audio and ran KiloVAD, ADI’s voice activity detector. It also handled communication with the laptop, while its Ethos™ -U85-256 NPU was reserved for ADI’s ADI Scene and Event Detector model (proprietary ADI models). Keeping ADI Scene and Event Detector on its own NPU protected its deadline: it processes 32 samples every 2 ms at 16 kHz, and a running NPU operation cannot be interrupted to make room for another workload.
The high-efficiency core used its Ethos™ -U55-128 NPU for ADI’s ADI Scene and Event Detector model and the speaker-processing path, with ADI Speaker ID providing on-board voice prints. Shared static RAM (SRAM) ring buffers kept raw audio, enhanced audio, and voice-activity results on the same sample timeline. J-Link real-time transfer (RTT) carried about 66 KB/s to the laptop for transcription, a speaker model, and the live console.

The design did not need every processor on the chip. The software stack used one Ethos™ -U product per firmware image, leaving the high-performance core’s local U55 unused. The two Cortex® -A32 cores were also outside the selected implementation, allowing the application to also be run on an E4 or E6 Alif processor. The important decision was to protect the continuous audio path, not to maximize the number of engines in use.
That architecture depended on resources from several sources: ADI supplied models, references, and measured target knowledge; Alif supplied platform software and board support.

The engineer described the listening experience to Claude rather than writing a separate implementation plan for every component. The brief named the models and target resources, emphasized latency, and asked for tests using the board’s microphones. The extract below gives a sense of what the engineer asked Claude to build. It was the beginning of a process that evolved as the team tested the system and learned from its behavior.
Example Prompt Work from ADI’s model catalog and measured E8 knowledge, together with Alif’s platform resources. Keep latency central to the design and test with the board’s own microphones, not only recorded inputs. |
The work changed as the evidence accumulated. For example, the brief requested enhanced audio for transcription, but later comparisons favored raw audio, which became the default. The brief established the ambition, whereas measurements and engineering review determined the implementation.
The team first needed to know that every part of the build was working from the same assumptions. A shared design contract defined how the processing stages connected and how audio was timed and stored. When the design changed, the change and its supporting measurements went into the running log. With the test conditions and commands recorded, another reviewer could rerun the check and see whether it produced the same result.
ADI’s reference implementations gave the team a defined result to check against. Sending the same recorded audio through the board and the laptop reference allowed a direct output comparison before microphone behavior entered the test.
ADI Scene and Event Detector matched its reference on all 320,000 tested int16 samples. KiloVAD differed from its Python® reference by at most 7.8 × 10⁻⁶ in probability, with no decision changes across 625 frames. The event model’s boot self-test matched all 527 outputs, and the speaker path agreed with its reference on 325 hops. The board was producing the expected results from the test recordings. The next step was to see how the application performed with sound captured by its own microphones.
\Measured board knowledge guided the initial memory and boot choices. Tests on the running application then checked where those expectations held and where the workload behaved differently.
The comparisons also caught integration problems. An early ADI Scene and Event Detector result passed only because cache lines had already been evicted after the model was copied into SRAM. A different boot layout failed, leading to a whole-cache clean at NPU initialization. Memory placement mattered for timing too: running ADI Scene and Event Detector from magnetoresistive RAM (MRAM) missed every 2 ms deadline in the measured run; moving it to SRAM brought the worst hop to 29.3% of that budget.
With those checks in place, the team could turn to a different question: was suitable audio reaching the models in the first place? Injected recordings could not answer that, because they bypassed the microphones.
The first live capture showed a roughly 30 dB difference between two nearby microphones. The team initially suspected the louder channel, but its level stayed the same when the NPU was idle. The investigation then moved through the capture settings, changing one thing at a time and recording a short sample after each change.
Clock source, latch phase, pad settings, core activity, and debug-link speed did not explain the difference. Swapping the filter tables did. Channel 4’s root-mean-square (RMS) median fell from about 930 to 49 with channel 5’s table; channel 5 rose to 1,057 with channel 4’s table. The apparent noise moved with the filter, not the microphone.
The microphone’s pulse-density modulation (PDM) stream is converted into 16 kHz samples before the models see it. A finite impulse response (FIR) filter shapes that conversion. The channel 5 table passed roughly 2 to 5 kHz but attenuated 100 Hz to 1 kHz by 45 to 55 dB, removing low-frequency room sound and useful speech content together.

Using the same table on both channels brought their levels within 2 dB in every tested octave from 62.5 Hz to 8 kHz. Coherence reached 0.998 at 125 to 250 Hz, with a steady 18 to 26 µs delay. The final regression still matched all 320,000 ADI Scene and Event Detector samples, with no late hops or PDM overflows and a worst hop of 1,102 µs, 55% of the budget.
The misleading part was that the quieter channel looked healthier. The earlier bare-metal capture had also been quieter, but the room itself had changed: its 250 to 500 Hz band was 28 dB lower on that earlier day. The measurements supported a shared acoustic source, consistent with ventilation or nearby machinery, but could not identify it. The earlier bare-metal image required SRAM that this board’s power profile left unpowered, so the team could not run it directly for comparison. Instead, they reproduced its capture settings in the running Zephyr® image. This let them investigate whether those settings explained the microphone difference without first changing the board’s power configuration.
Once both channels captured the room consistently, the application had to decide what that sound meant. Ambient noise still triggered the speech detector and produced a speaker label when nobody was talking. KiloVAD normalizes each 32 ms frame before classification, so reducing level alone did not resolve the problem.
The revised gate combined speech detection with an energy check against the noise floor. In a held-out 300-second quiet-room capture, it opened on none of 9,379 frames; KiloVAD alone classified 31.2% as speech. No speech region was missed in the seven injected sets, although quiet and far-field sets lost 11% to 12% of speech frames at the gate. The revised gate reduced false speech detections in the quiet-room test. Further testing would show whether it worked as well with different background sounds and room conditions.
ADI SpeakerID supplied the voice prints; the application’s labeling logic determined how those prints were associated with speakers over time. Speaker labels needed a similar application-level check. In live trials, one person acquired labels B through H over seven minutes, while two people were merged into one label. Replaying the traces exposed fragmented speech windows and clustering rules that could merge speakers on a single close pair of voice prints.
The replacement compared each new voice print with a speech-weighted memory for that speaker. A merge required 9:1 odds on two checks. In injected conversations, 242 of 266 transcript lines had the correct speaker when first published, compared with 184 of 283 under the previous rules. A new speaker label arrived about 1.8 seconds into the first turn, then was backdated to its start.
The console brought these outputs together, allowing the engineer to follow speaker labels and transcription alongside the audio signals, detected events, and processing load.

The live tests did more than expose problems: they gave the team a way to judge whether each change improved the application. As AI helped revise the implementation, those checks kept the work tied to what the system actually heard and reported.
Keeping that connection intact meant separating the work of making a change from checking its result. Claude handled defined parts of the implementation, while independent verification reran the tests. The engineer controlled the physical setup and assessed the application in live use.
Board access was limited to one authorized role at a time. During overnight hardware tests, flashing and power changes remained with the human operator.
Moving the application from the Alif Ensemble® E8 DevKit to the four-microphone AppKit required the correct firmware package for the new board. When the application’s DevKit bundle was loaded onto the AppKit, its boot configuration did not match the target, so the application cores did not start. Recovery drew on existing Alif resources: the team restored the AppKit demo’s package using Alif’s secure-enclave tools over a serial connection. The application launcher was then updated to check the target part before writing firmware and reject a mismatched
Moving to the four-microphone AppKit made direction finding possible, but live audio produced no transcript, even though injected recordings worked. A 30-second microphone capture showed unusually coarse audio: only 40 different sample values, spaced in steps of 96, with 64% of samples at zero. This prompted the team to investigate how the audio was captured before blaming the speech model.
The existing capture configuration, called mode 4, drove the microphones at 1.024 MHz. That fell between the datasheet’s supported low-power range of 400 to 800 kHz and high-quality range of 2.0 to 3.7 MHz. The team tried mode 7, a higher-clock configuration running at 3.072 MHz, then reduced the captured sample rate by a factor of three in software. The recording contained 602 distinct sample values, suggesting finer resolution. But the next question was whether that made speech easier to recognize.
In two 120-second tests using documentary audio from laptop speakers 18 inches away, mode 7 produced 0.5 recognized words per minute, versus 155 at mode 4. The datasheet’s 15 dB output-level difference between operating modes offered a possible explanation but did not establish the cause of the original empty transcript.

The team returned to mode 4 because it produced better transcription in the acoustic test. Further work is needed to establish comparable performance within the microphone’s specified operating range. The comparison showed why the listening experience mattered more than sample resolution alone.
The audio processing kept pace with the incoming sound. During a 620-second run, ADI’s ADI Scene and Event Detector model met every 2 ms deadline; even its slowest processing step used only 61% of the available time.
That left a separate question: how quickly would someone see the result? The estimated path from microphone input to enhanced audio was about 8.2 ms, just above the 8 ms target. This was a calculated estimate, partly based on an earlier measurement of the sample-rate conversion delay. Transcription took longer: half the words appeared within 207 ms of their end, and 90% appeared within 526 ms in the laptop test.
Keeping up with the audio did not guarantee accurate results. Background sound events reduced recognition quality, and enhancement results still differed from simulation for reasons the team had not resolved. An early test under laptop load also dropped 117 audio frames before a fix. Together, these findings showed why the team needed to evaluate processing speed, transcription delay, and listening quality separately.
The results below separate implementation checks from application performance, so each figure can be read alongside the conditions that produced it.
Evidence | Reported result | Test conditions |
Reference agreement | ADI Scene and Event Detector: all 320,000 int16 samples matched | Injected 20-second reference stream; DevKit
|
Processing headroom | Worst hop: 1,219.5 µs (61% of 2 ms); no late hops | 620-second run with injection bursts
|
Audio-path latency | About 8.2 ms average (7.1–10.0 ms) | Calculated from measured parts, including an earlier 8 kHz decimation-delay measurement
|
Transcription delay | 207 ms median; 526 ms at the 90th percentile | From word end to text; three-reader conversation, laptop at usual load
|
Speaker labels | 242/266 correct at first publication; previously 184/283 | Injected conversations. Different line counts; not an AI-versus-no-AI comparison.
|
Recognition under different inputs | 4.8% word error with three readers; 23.0% under sound events | Moonshine small on raw audio; injected scenarios
|
The application brought voices, words, and surrounding sounds into one live view. AI helped turn the engineer’s brief into an integrated implementation, using ADI’s models and measured target knowledge alongside Alif’s platform resources. Claude supported firmware development, model integration, and testing, while the engineer assessed the application in live use and independent verification checked the results.
The value became clearer as the team moved beyond getting the models to run. AI-assisted investigation helped trace the microphone discrepancy to its filter configuration, compare raw and enhanced audio for transcription, and revise speaker labeling in response to live tests. In the injected-conversation evaluation, correct speaker labels at first publication increased from 184 of 283 transcript lines to 242 of 266, a measured improvement within this workflow.
Connecting reusable resources with implementation and verification can help engineers spend less effort rediscovering platform details and reach useful insight sooner. Here, the team established an integrated application and a repeatable way to assess it. The next stage is to build on that foundation with live multi-speaker recordings, broader room testing, and further validation of the AppKit capture configuration, moving toward the more dependable listening experience a robot or hearable needs.
Bringing voices, words, and surrounding sounds together is one example of what becomes possible when AI works with trusted engineering resources and clear verification. Explore Project Solas for more worked examples and ADI resources that can help you bring the same approach to a different engineering challenge.
This worked example is part of Project Solas, ADI’s work to make engineering resources easier for AI to discover and apply. It follows an engineering challenge from the initial ambition through the technologies, decisions, and tests that shaped the result. The approach and lessons offer ideas for bringing AI-assisted engineering into your own products and workflows.
Arm and Cortex are registered trademarks, and Ethos and Helium are trademarks, of Arm Limited or its subsidiaries or affiliates. Alif Ensemble is a registered trademark of Alif Semiconductor. Zephyr and PyTorch are registered trademarks of The Linux Foundation. Linux is a registered trademark of Linus Torvalds. All other trademarks and product names are the property of their respective owners. © 2026 Analog Devices, Inc. All rights reserved.