# Sugar ASR Custom Command Training

The Chinese version of ASR modules support customized commands training.

### Customized Command Features

* 1 Custom Wake-Up Word
* 10 Custom Commands
* Supports Putonghua & Cantonese
* Does not need coding to train
* Training results are saved onboard

### Demo Video

{% embed url="<https://youtu.be/mP98QdHNG-o>" %}

### Training a Custom Wake-Up Word

You can train a custom wake-up word.

1. Awaken the ASR module.
2. Say the command:『開始學習喚醒詞』
3. The ASR notifies:『開始學習喚醒詞，請在安靜環境下說話』
4. Say the Custom Wake-UP Word, the module replies: 『學習成功，請再說一次』
5. Say the Custom Wake-UP Word again, the module replies:『學習完成』
6. To remove the trained Custom Wake-UP Word, say the command:『清除學習喚醒詞』

{% hint style="info" %}
The original Wake-Up commands are still functional after training a custom word
{% endhint %}

### Training a Custom Command

1. Awaken the ASR module.
2. Say the command:『學習第X條命令詞』
   1. X is a number, 1\~10
3. The ASR replies:『開始學習第X條命令詞，請說』
4. Say the Custom Command, if successful, the ASR replies:『學習成功，請再說一次』
5. Say the Custom command again, the module replies:『學習完成』
6. To remove the trained Custom Commands, say the command:『清除學習命令詞』

### Reset Training Data

1. Use the command:『重置學習』, the ASR will clear all training data

{% hint style="info" %}
Both Custom Wake-Up Word and Custom Commands will be deleted
{% endhint %}

### MakeCode Programming with ASR Custom Command

{% embed url="<https://makecode.microbit.org/_Hh66h9XuH5DX>" %}

[Sample Program](https://makecode.microbit.org/_Hh66h9XuH5DX)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sharinghub-eng.kittenbot.hk/airelated/asr/custom.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
