# 語音合成(Text To Speech)

<figure><img src="/files/0PpIJjnDG8ud2BySXr7v" alt=""><figcaption></figcaption></figure>

語音合成(Text to Speech)

* 將輸入的文字轉換成中文或英文語音

## 積木介紹

<figure><img src="/files/b8F9JZdZbhr9FWINz2oN" alt=""><figcaption></figcaption></figure>

## 參考程式

<figure><img src="/files/QX4bTMomYal9AjKVbnuB" alt=""><figcaption></figcaption></figure>

{% file src="/files/4NsR8nRy1SY15QkZdEj6" %}


---

# 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:

```
GET https://sharinghub.kittenbot.hk/programmingplatforms/kittenblock/online/aifunctions/tts.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.
