GitHub Digital Lab

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

Drag the bar to a step and let go to stop there; Play continues from it. Drag the picture to turn, scroll to zoom. Pin view looks straight down at the step. Tap a step, a part or a pin.
All 7 wiring steps
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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
Every wire, far end to board end
WireFromToStep
VCCPanel pin 1, VCCJ1 pin 1 (3V3)3
GNDPanel pin 3, GNDJ2 pin 20 (GND)3
SCLKPanel pin 6, SCLKJ1 pin 4 (GPIO17)4
MOSIPanel pin 5, MOSIJ4 pin 38 (GPIO19)4
MISOPanel pin 4, MISOJ1 pin 3 (GPIO18)4
LCD_CSPanel pin 8, LCD_CSJ4 pin 37 (GPIO16)4
LCD_DCPanel pin 9, LCD_DCJ2 pin 18 (GPIO26)5
LCD_BLPanel pin 11, LCD_BLJ1 pin 8 (GPIO14)5
LCD_RSTPanel pin 10, LCD_RSTJ3 pin 30 (GPIO31)5
TP_SDAPanel pin 12, TP_SDAJ1 pin 10 (GPIO32)6
TP_SCLPanel pin 13, TP_SCLJ1 pin 9 (GPIO33)6
TP_INTPanel pin 14, TP_INTJ2 pin 11 (GPIO15)6
TP_RSTPanel pin 15, TP_RSTJ2 pin 14 (GPIO28)6

The build, step by step

What you need

Works on this board
LP-EM-CC35X1
Jumper wires x13the wires drawn in the build
Micro-USB cablecomes with the board; powers and programs it
LP-XDS110ET debuggerprograms the board and gives it a serial consoleBOOSTXL-AUDIO audio BoosterPack plug-in modulemicrophone, DAC and speakerWaveshare 3.5 inch capacitive touch LCDoptional: the screen. Without it the assistant is voice only; with it...
A computer on the same network that runs Dockerruns the xiaozhi server, the speech and text services and the language...
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.

ProcessorMemoryAnalogTimersSerial and pinsSystemMath and securityThe block in use, with its arrowsPinsFlash and SRAM in useStack

The steps

Steps

  1. 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/.

  2. 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.

  3. Build the firmware.TERMINAL

    Clone the repository, put your Wi-Fi name and password in a small file (HOME_SSID=... and WIFI_PASSWORD=...) outside the repository, and build with the server's address. The values go into the firmware copy under out/, never into the repository. XZ_WAKE=0 builds 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.sh

    You should see: out/xiaozhi-cc35x1/b/xiaozhi.out and a b/toolbox/ folder of signed images. The image is about 1.6 MB of the board's 2.7 MB application slot.

  4. 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 with full_flash_erase as cc35x1/AGENTS.md says.

    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.

  5. 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 with ports/wifi-provisioning-ble/provision.py. The board saves the network and joins it at every start. Holding S2 for 5 seconds (or typing W on the console) forgets it.

    You should see: The board joins and prints its IPv4 address.

  6. Ask it something.BENCH

    Press S2, or type s on 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).

  7. With a model of your own: say Hey Sparky.BENCH

    Build without XZ_WAKE=0 and with XZ_WAKE_MODEL=<your microWakeWord .tflite> (its .json beside 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".

  8. 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.

    Look A, Core: a green orb in a lit ring with the word Listening and a status strip of chip temperature, Wi-Fi and motion

    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.

  9. Look B, HUD.SCREEN (OPTIONAL)

    Swipe to the next look.

    Look B, HUD: a cyan 270 degree dial reading MIC LEVEL 50 and LISTENING on a dark grid

    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.

  10. Look C, Visor.SCREEN (OPTIONAL)

    Swipe to the next look.

    Look C, Visor: two green capsule eyes in a glass band with the word Listening

    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.

  11. 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.

    Look Kid: a purple screen with a green orb that has a face with round eyes and a small mouth, and the words I'm listening

    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

Run an edge AI model on the chipA room-occupancy model answers on the chip, timed and checked against its test set
Recognize a handwritten digit on the chipDraw a digit with your finger; the chip names it on the screen
Run a vision model on a Linux board's AI acceleratorVision models from TI's zoo running on the accelerator of a Linux board

Every build

If something goes wrong

The board later says No serverCheck that the computer's firewall allows port 8000 from the Wi-Fi.
You skip the screenNothing else changes: the image runs the same without a panel attached.
At step 3If 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 answerIt 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 advertisesWait: it tries the saved or built-in network three times first.
More troubleshooting
The reply is quiet or distortedv and V set the volume (0 to 16, starts at 6); the microphone clips beside the speaker from about 8.
At step 7The Hey Sparky model itself is not published (see the limits), so this step is for your own phrase.
Nothing happens on a swipeCheck the panel wiring and that the image was built with the screen (the default).
The look does not changeThe swipe was too short or began on a button; swipe across the face.
The look does not changeThe swipe was too short or began on a button; swipe across the face.
The look does not changeThe 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 claude
Not Claude Code? Copy this prompt instead.
Clone https://github.com/Fox-Red-Labs/fox-red-labs and read cc35x1/AGENTS.md first. Then run A voice assistant on a LaunchPad on my LP-EM-CC35X1, following docs/builds/sparky-voice-assistant.md. Tell me when to plug in a board and what you saw at each step.

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

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

  1. Youspeak; the pack's microphone hears you
  2. LP-EM-CC35X1records, wakes, encodes Opus and plays the reply
  3. 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=0 for 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 turnOpus 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 audio2.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 clockthe data (CSV)
Image size1.5 MB flash, 190 kB static RAM (first voice build, TI Arm Clang 5.1.1.LTS, 160 MHz)the data (CSV)
ScreenWaveshare 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

Project
LP-MSPM0G3507MSPM0G3507 chip
LP-MSPM0L1306MSPM0L1306 chip
LP-EM-CC2340R5CC2340R52 chip
LAUNCHXL-F2800137TMS320F2800137 chip
A voice assistant on a LaunchPad
LP-MSPM0G3507
LP-MSPM0L1306
LP-EM-CC2340R5
LAUNCHXL-F2800137

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)

StatusWhat was triedResult
WorksCan 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