> ## Documentation Index
> Fetch the complete documentation index at: https://ppio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# MiniMax 声音设计

通过文字描述生成个性化定制声音。返回可用于 T2A 语音合成 API 的 voice\_id，以及十六进制编码的预览音频样本。

## 请求头

<ParamField header="Content-Type" type="string" required={true}>
  枚举值: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer 身份验证格式，例如：Bearer \{\{API 密钥}}。
</ParamField>

## 请求体

<ParamField body="prompt" type="string" required={true}>
  声音描述文本，定义要生成的声音特征。
</ParamField>

<ParamField body="voice_id" type="string">
  自定义声音 ID。如果不提供，系统将自动创建唯一的 voice\_id。
</ParamField>

<ParamField body="preview_text" type="string" required={true}>
  用于生成预览音频样本的文本，最多500个字符。

  长度限制：0 - 500
</ParamField>

## 响应

<ResponseField name="voice_id" type="string">
  生成的声音 ID，可用于 T2A 语音合成 API。
</ResponseField>
