# Speaker
中文 | [English](/en/api_reference/micropython/api_speaker) | [日本語](/ja/api_reference/micropython/api_speaker)
### tone
> M5.Speaker.tone(uint32_t freq);
设置声音音高
| Param | Type | Description |
| --- | --- | --- |
| freq | uint32_t | 频率 |
**例程**
```c++
M5.Speaker.tone(100);
```