pdf-icon

Product Guide

Real-Time AI Voice Assistant

Offline Voice Recognition

Thread

Module Gateway H2

IoT Tools

IoT Cloud

Ethernet Camera

Develop Tools

DIP Switch Usage Guide

Module GPS v2.0

Module GNSS

Module ExtPort For Core2

Module LLM Arduino Quick Start

Overview

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

Environment Setup

  • 3.Library Installation: Refer to the Library Management Guide to install the Module LLM 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