> For the complete documentation index, see [llms.txt](https://sharinghub.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub.kittenbot.hk/airelated/koi/futureboard_demo/speech.md).

# 未來板KOI編程教學8：語音相關

KOI可以做到語音分類的功能。

### 語音相關積木塊

![](https://kittenbothk.readthedocs.io/en/latest/_images/koi_speech.png)

### 範例程式1：錄製音頻(需要SD卡)

![](https://kittenbothk.readthedocs.io/en/latest/_images/koi_speech_code1.png)

{% file src="/files/RfysENaTqAEbTnIcWsMX" %}

### 範例程式2：語音模型訓練(需要SD卡)

```
語音辨識前必須要運行環境噪音校正。
錄入成功會顯示綠色，錄入不成功會顯示紅色。
最多可以儲存10條語音指令。
```

![](https://kittenbothk.readthedocs.io/en/latest/_images/koi_speech_code2.png)

{% file src="/files/Qzpb98DzCdjV3TjpFbFg" %}

### 範例程式3：語音辨識(需要SD卡)

```
語音辨識前必須要運行環境噪音校正。
錄入成功會顯示綠色，錄入不成功會顯示紅色。
```

![](https://kittenbothk.readthedocs.io/en/latest/_images/koi_speech_code3.png)

{% file src="/files/v6X25PwTFugLFpPQ2edZ" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://sharinghub.kittenbot.hk/airelated/koi/futureboard_demo/speech.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
