pdf-icon

Product Guide

Real-Time AI Voice Assistant

Smart Home

M5Paper

IoT Tools

IoT Cloud

Ethernet Camera

Develop Tools

LLM Module Arduino Quick Start

Overview

The LLM Module can be used with various M5 controllers. This tutorial demonstrates how to control the LLM Module using the M5Core series in the Arduino IDE with the LLM Module driver library.

Environment Setup

  • 3.Library Installation: Refer to the Library Management Guide to install the LLM Module driver library. (Follow prompts to install the dependency library M5Unified)

Program Compilation & Upload

Open the example program "kws_asr" in the driver library, click the upload button, and the program will automatically compile and upload.The wake-up word used in the example program is "HELLO". After waiting for the device to be initialized, it will be woken up using the keyword.

  • Examples:
    • kws_asr: Uses KWS to wake up and triggers ASR for speech-to-text conversion. (KWS+ASR)
    • text_assistant: Inputs text into the LLM model, performs inference, and outputs the result in text form. (LLM)
    • tts: Uses the TTS unit to convert text to speech for playback. (TTS)
    • voice_assistant: Uses KWS to wake up, triggers ASR for speech-to-text conversion, inputs the converted text into the LLM for inference, and outputs the inference result through TTS as speech. (KWS+ASR+LLM+TTS)
On This Page