Fox Red Labs / Builds / Edge AI
A voice assistant on a LaunchPad
A LaunchPad with the Audio BoosterPack hears you, asks a language model through a server on your network and speaks the answer.
HardWiring neededa day: the server, the build and the programming
All 7 wiring steps
- 1The LaunchPad and the panel, no cable inThe CC35X1 with its Wi-Fi antenna at the top and no cable in, and the Waveshare 3.5 inch panel beside it, its 15-way connector toward the board. No power until the last wire is in.
- 2Press the Audio BoosterPack onPress the BOOSTXL-AUDIO onto the LaunchPad headers J1 to J4 and leave its J5 jumper on SPI DAC, the way it ships. The pack's microphone and speaker use pins 5, 6, 7, 12, 13 and 15; none of the screen wires below touch them. You need no wire for voice alone: stop here if you have no screen.
- 3Power: two wires, 3.3 V onlyPanel VCC to J1 pin 1 (3V3) and panel GND to J2 pin 20 (GND). Plug each wire onto the same pin position on the pack's top headers. The panel's pin 2 (3V3) stays empty, and nothing here touches a 5 V pin.Red on J1 pin 1 (3V3), black on J2 pin 20 (GND). Nothing on the 5V pin beside 3V3.
- 4The screen bus: clock, data and chip selectSCLK to J1 pin 4 (GPIO17), MOSI to J4 pin 38 (GPIO19), MISO to J1 pin 3 (GPIO18) and LCD_CS to J4 pin 37 (GPIO16). MISO is optional: it only reads the panel ID back at start.Two wires on J1 pins 3 and 4, two on J4 pins 37 and 38.
- 5Screen control: data or command, backlight, resetLCD_DC to J2 pin 18 (GPIO26), LCD_BL to J1 pin 8 (GPIO14), LCD_RST to J3 pin 30 (GPIO31). Pin 30 also runs to the pack's J5 jumper, so keep J5 on SPI DAC.J2 pin 18, J1 pin 8 and J3 pin 30 each have one wire.
- 6Touch: four wiresTP_SDA to J1 pin 10 (GPIO32), TP_SCL to J1 pin 9 (GPIO33), TP_INT to J2 pin 11 (GPIO15), TP_RST to J2 pin 14 (GPIO28). The panel's SD_CS pin stays empty.Thirteen wires in (twelve if you skipped MISO). On the panel only pins 2 (3V3) and 7 (SD_CS) are empty. Tug each wire.
- 7Turn the panel face upTurn the panel over so the glass faces you; the wires run underneath it. After you build and program the image, the screen shows Sparky's look and the backlight comes on.
Every wire and signal, far end to board end
| Wire | From | To | Step |
|---|---|---|---|
| VCC | Panel pin 1, VCC | J1 pin 1 (3V3) | 3 |
| GND | Panel pin 3, GND | J2 pin 20 (GND) | 3 |
| SCLK | Panel pin 6, SCLK | J1 pin 4 (GPIO17) | 4 |
| MOSI | Panel pin 5, MOSI | J4 pin 38 (GPIO19) | 4 |
| MISO | Panel pin 4, MISO | J1 pin 3 (GPIO18) | 4 |
| LCD_CS | Panel pin 8, LCD_CS | J4 pin 37 (GPIO16) | 4 |
| LCD_DC | Panel pin 9, LCD_DC | J2 pin 18 (GPIO26) | 5 |
| LCD_BL | Panel pin 11, LCD_BL | J1 pin 8 (GPIO14) | 5 |
| LCD_RST | Panel pin 10, LCD_RST | J3 pin 30 (GPIO31) | 5 |
| TP_SDA | Panel pin 12, TP_SDA | J1 pin 10 (GPIO32) | 6 |
| TP_SCL | Panel pin 13, TP_SCL | J1 pin 9 (GPIO33) | 6 |
| TP_INT | Panel pin 14, TP_INT | J2 pin 11 (GPIO15) | 6 |
| TP_RST | Panel pin 15, TP_RST | J2 pin 14 (GPIO28) | 6 |
The build, step by step
What you need
LP-EM-CC35X1
Waveshare 3.5 inch capacitive touch LCDoptional: the screen. Without it the assistant is voice only; with it...On Linux or WindowsThe steps were recorded on a Mac; paths and port names in them are the Mac ones.
macOS (recorded)
- TI's tools
/Applications/ti, or~/ti- Serial port
/dev/cu.usbmodem<serial>1- Probe access
- nothing to do
Linux
- TI's tools
~/ti(also searched:/opt/ti)- Serial port
/dev/ttyACM0(by name:/dev/serial/by-id/*<serial>*-if00*)- Probe access
- one udev rule, how
Windows
- TI's tools
C:\ti(also searched:%USERPROFILE%\ti)- Serial port
COM<n>, named "XDS110 Class Application/User UART" in Device Manager- Probe access
- the XDS110 USB driver from UniFlash or CCStudio
Your probe's serial on any system: python3 tools/frl/frl.py detect. Not run on a board under Linux or Windows. Everything else that differs: the full table.
What happens inside the chip
Hey Sparky voice assistant
Wiring. Voice alone needs no wire: the Audio BoosterPack presses onto the LaunchPad headers. The optional screen takes the 13 wires in the pin table above; S2 is on the board.
Tap a block or a step to follow one job.
The steps
Steps
Start a xiaozhi voice server.COMPUTER
The board does the listening and the speaking; a server on your network turns speech into text, asks the language model and speaks the answer. Run the open-source xiaozhi-esp32-server (MIT license) in Docker on a computer on the same Wi-Fi, with a speech-to-text and a text-to-speech provider in its config. This build used FunASR, Edge TTS and Claude Haiku through a small rate-limited relay (
ports/xiaozhi/host/claude_relay.py, which keeps the API key out of the server's config). Note the computer's IPv4 address.You should see: The server listens on port 8000, path
/xiaozhi/v1/.Stack the audio pack, and the screen if you have one.BENCH
Press the BOOSTXL-AUDIO onto the LaunchPad headers. For the screen, wire the 3.5 inch touch panel as in the wiring picture and the wire table above; keep the pack's J5 jumper on its default SPI DAC position.
You should see: The pack sits flat on the headers. No wire is needed for voice alone.
Build the firmware.TERMINAL
Clone the repository, put your Wi-Fi name and password in a small file (
HOME_SSID=...andWIFI_PASSWORD=...) outside the repository, and build with the server's address. The values go into the firmware copy underout/, never into the repository.XZ_WAKE=0builds push-to-talk (see the limits for the wake word). The build needs 1.5 GB of free disk and flashes nothing.Replace <server IPv4> and <your wifi file> before you run this.
XZ_WAKE=0 XZ_HOST=<server IPv4> WIFI_ENV=<your wifi file> ports/xiaozhi/target-cc35x1/build.shYou should see:
out/xiaozhi-cc35x1/b/xiaozhi.outand ab/toolbox/folder of signed images. The image is about 1.6 MB of the board's 2.7 MB application slot.Program the board with the Wi-Fi Toolbox.TERMINAL
From TI's SimpleLink Wi-Fi Toolbox folder, program the image over the board's debug probe, then reset it with
xds110reset(the Toolbox does not reset afterwards). Programming takes under a minute. If the board ran another program before, erase it first withfull_flash_eraseascc35x1/AGENTS.mdsays.Replace <probe serial> and <repository folder> before you run this.
./simplelink-wifi-toolbox programmer -i XDS110 -param1 <probe serial> programming --tool_settings <repository folder>/out/xiaozhi-cc35x1/b/toolbox/tool_settings.json xds110reset -s <probe serial>You should see: The console on the probe's serial port (115200 baud) prints a ready line about 6.5 s after reset, once the board has joined Wi-Fi.
Give it your Wi-Fi over Bluetooth.PHONE
If you built without a network, or it cannot join, the blue LED lights and the board advertises as
TI CC3xxx. Send the network name and password with TI's SimpleLink Connect phone app, or from a computer withports/wifi-provisioning-ble/provision.py. The board saves the network and joins it at every start. Holding S2 for 5 seconds (or typingWon the console) forgets it.You should see: The board joins and prints its IPv4 address.
Ask it something.BENCH
Press S2, or type
son the console, and ask a question about 30 cm from the pack. The microphone stops while the answer plays, so wait for it to finish; one turn per press.You should see: Your words are transcribed on the server and the first reply audio starts about 2.5 s after you stop (median 2.47 s, three questions, Claude Haiku).
With a model of your own: say Hey Sparky.BENCH
Build without
XZ_WAKE=0and withXZ_WAKE_MODEL=<your microWakeWord .tflite>(its.jsonbeside it). The board listens by itself, opens the connection only when it hears the phrase, runs one turn, closes it and listens again, with a 2 s deaf period after each reply.You should see: The console prints
[wake] ready; on the screen the word line reads Say "Hey Sparky".Look A, Core (the default).SCREEN (OPTIONAL)
Swipe left or right anywhere, or press LOOK in the settings strip (hold a finger still for 1 s to open it), to step Core, HUD, Visor, Kid.

You should see: An energy orb in a ring: the ring lights with the voice, comets circle while it thinks, a crown of rays rises while it talks.
Look B, HUD.SCREEN (OPTIONAL)
Swipe to the next look.

You should see: A thin-line instrument in cyan on black with one amber accent: a mic level while listening, SPEAKING with a level bar while it talks, mode and wake word at the sides.
Look C, Visor.SCREEN (OPTIONAL)
Swipe to the next look.

You should see: A glass band with two glowing capsule eyes that blink and glance, a voice line under them and a scanline every few seconds.
Look Kid.SCREEN (OPTIONAL)
Swipe to the next look. Kid raises the wake sensitivity while it is on, and puts a GAMES chip in the top right corner.

You should see: Core in candy colors with a face on the orb: blinking eyes, a smile, an o while listening and a mouth that opens with the reply, and friendlier words (I'm listening).
Read the serial output
Open the board's USB serial port in any terminal program at 115200 baud. The lines the program prints appear there.
What to build next
If something goes wrong
| The board later says No server | Check that the computer's firewall allows port 8000 from the Wi-Fi. |
| You skip the screen | Nothing else changes: the image runs the same without a panel attached. |
| At step 3 | If a tool is missing the script prints missing: and its path; python3 tools/frl/frl.py doctor --board cc35x1 lists what is missing and where to get it. |
| The board does not answer | It may be in the other flash slot after an over-the-air update: erase, then program again (the FAQ for the board has the exact commands). |
| It never advertises | Wait: it tries the saved or built-in network three times first. |
More troubleshooting
| The reply is quiet or distorted | v and V set the volume (0 to 16, starts at 6); the microphone clips beside the speaker from about 8. |
| At step 7 | The Hey Sparky model itself is not published (see the limits), so this step is for your own phrase. |
| Nothing happens on a swipe | Check the panel wiring and that the image was built with the screen (the default). |
| The look does not change | The swipe was too short or began on a button; swipe across the face. |
| The look does not change | The swipe was too short or began on a button; swipe across the face. |
| The look does not change | The swipe was too short or began on a button; swipe across the face. |
Every fix for this board: the FAQ.
Get the code
Paste this in a terminal. It hands off to an AI assistant.
git clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
./start.sh cc35x1 sparky-voice-assistant --assistant claudegit clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs
py start.py cc35x1 sparky-voice-assistant --assistant claudeNot Claude Code? Copy this prompt instead.
The code is in ports/xiaozhi/.
Reports from others, and the report forms
Clone the repository and open the board's folder below. AGENTS.md is a plain text file of notes for AI coding assistants, and llms.txt at the root indexes the site for one.
git clone https://github.com/Fox-Red-Labs/fox-red-labs.git
- LP-EM-CC35X1: folder
cc35x1/.- README: the board's lab notebook (what was run, in order)
- Notes for an AI coding assistant working in this repository: notes for an AI assistant; copy it into your own project if you use one
- FAQ: errors and fixes
Code is BSD-3-Clause, writing is CC BY 4.0; third-party folders keep their own licenses.
Built it? Tell us
Built this, or got stuck? Report it on GitHub with a few short answers. Your report shows here in your words, marked as yours. A failure that repeats on the bench gets its fix here.
Evidence and limitsFirst reply audio 2.5 s after you stop speaking (median 2.47 s over three questions), Wi-Fi joined 6.5 s after reset; four screen looks if you add the panel. Results, sources, timing and limits.
How it works
The pack's microphone is sampled at 16 kHz, packed as Opus in 60 ms packets and sent over a WebSocket to a xiaozhi server on your network. The server transcribes it, asks a language model, speaks the reply with a text-to-speech service and sends Opus back, which the board decodes into the pack's DAC and speaker.
The screen is optional. It draws one of four looks (Core, HUD, Visor, Kid) for each state: asleep, waiting, listening, thinking, talking. A swipe changes the look and it is remembered across resets; a long press opens volume, brightness, look and wake settings, and the Kid look opens offline games that run entirely on the chip. The pictures on this page are drawn by the same renderer the board runs.
This is a port of the open-source xiaozhi project (the device side and protocol of xiaozhi-esp32 and the xiaozhi-esp32-server, both MIT-licensed) to a TI chip.
How it fits together
- Youspeak; the pack's microphone hears you
- voice
- LP-EM-CC35X1records, wakes, encodes Opus and plays the reply
- Wi-Fi, WebSocket
- xiaozhi serverspeech to text, the language model, text to speech
The same flow on every version below; only the tools on your computer change.
Expected result: A press of S2 or the s key and a spoken question give a spoken answer, first audio about 2.5 s after you stop. With the screen, a face that listens, thinks and talks in one of four looks.
What this shows
- A Wi-Fi LaunchPad with a BoosterPack can be a complete voice terminal: microphone to Opus to a server and back, with the Opus encoder and decoder running on the Cortex-M33 in 24 kB and 17.5 kB of RAM.
- Median 2.47 s from the end of a spoken question to the first reply audio (2.28 to 2.67 s, three questions, Claude Haiku).
- Joined Wi-Fi 6.5 s after reset (5.9 to 6.7 s, five boots).
- The four looks, touch navigation, the settings strip, a Wi-Fi motion score and offline kids' games run in the same image over the air-updatable slot.
What this does not establish, and limits
What this does not establish
- That S2 works by hand: the press was sent from the console.
- Power use: the radio is kept always on and power was not measured.
- A real room: the questions came from a Mac speaker 30 cm away, in a quiet room.
Limits to keep in mind
- The server is a separate computer on your network; the board does not run the speech recognition or the language model.
- Half duplex: the microphone stops while the answer plays, so there is no talking over it, and one turn per connection.
- The Hey Sparky wake word model is not in the repository: its training clips are available for non-commercial use only. Build with
XZ_WAKE=0for push-to-talk, or train a model of your own for the board's detector (microWakeWord on TFLite Micro). - Sound is the audio pack's small speaker: it has almost nothing below 500 Hz.
- Plain
ws://to a computer on the same network; the WebSocket client does not check the server's accept hash.
Sources
Versions, sizes and timing
| Voice turn | Opus CELT 16 kHz mono, 60 ms packets, complexity 0, 24 kbit/s; xiaozhi WebSocket protocol v1; server speech-to-text FunASR, text-to-speech Edge TTS | |
|---|---|---|
| First reply audio | 2.28 to 2.67 s, median 2.47 s, 3 questions, measured from the end of the Mac's speech to the first audio line on the serial console, Mac clock | the data (CSV) |
| Image size | 1.5 MB flash, 190 kB static RAM (first voice build, TI Arm Clang 5.1.1.LTS, 160 MHz) | the data (CSV) |
| Screen | Waveshare 3.5 inch, 480 x 320 wide, SPI at 10 MHz, software I2C touch |
Evidence
- Three questions spoken by a Mac about 30 cm from the pack were each transcribed word for word; the first reply audio started 2.28 to 2.67 s (median 2.47 s) after the question ended, with Claude Haiku as the language model. Measured on 2026-10-29. The counters say every decoded sample played, and the reply was heard clean on the speaker on 2026-11-04. the data (CSV)
- Five boots from reset to the ready line with Wi-Fi joined took 5.9 to 6.7 s (median 6.5 s). the data (CSV)
- The first voice build is 1.5 MB of flash (of a 2.6 MB slot) and 190 kB of static RAM, plus a 319 kB task heap. the data (CSV)
Other boards
What the status words mean
Works ran here and did what it shouldCould work some of it ran; real porting effort is left; hover for whatNot for this chip the chip or its vendor software cannot; hover for why
Result grid
Works ran here and did what it shouldShould work it builds; only naming, packaging or build glue is in the way; hover for whichCould work some of it ran; real porting effort is left; hover for whatNot for this chip the chip or its vendor software cannot; hover for why
Experiments (1)
| Status | What was tried | Result |
|---|---|---|
| Works | Can the BeagleY-AI run a fully local voice assistant with the projects Home Assistant's voice stack uses? BeagleY-AI, 2026-11-14 | Wake word, speech to text and text to speech run as Home Assistant's Wyoming containers on the BeagleY-AI's Arm cores; a recorded "Hey Sparky, what time is it" came back as a spoken answer 5.2 s after the question... |
Source files
- Measured results (data file) (CC35X1): the raw numbers