> 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/koi2/kittenblock/recandplay.md).

# 錄音與播放

### KittenBlock編程

{% hint style="info" %}
KOI的錄音功能需要SD卡，由於KOI出廠時沒有配備SD卡，有需要的用家請自行準備。
{% endhint %}

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsN6MlwBFbL3P67FzMMyL%2Fuploads%2Fht2n6fSTXnoC2emS05P7%2Fimage.png?alt=media&#x26;token=3b0e248f-b310-4fcc-aa6a-18af0aa60d92" alt=""><figcaption></figcaption></figure>

參考程式:

{% file src="/files/0odAuZ9oM4PNb458oZ5w" %}

### 程式解說

1. 按A鍵KOI就會開始錄製長3秒的錄音並儲存為abc.wav。
2. 按B鍵播放abc.wav。
