跳转到主要内容
GET
curl
Didit 的 Phone Voices API 列出了每个区域设置中用于朗读验证码的默认语音。使用 locale=es-ES 可获取西班牙语(西班牙)的默认语音,使用 locale=pt 则同时适用于 pt-BR 和 pt-PT。每个语音都包含 sample_url,其值为 null,因为未发布任何录音。 目录会标明每个区域设置的默认语音。目前无法通过 voice_id 选择语音。若要以语音方式发送验证码,请在 发送电话验证码 中设置 options.preferred_channel: "voice"。

授权

x-api-key
string
header
必填

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

查询参数

locale
string

Filter by a canonical BCP 47 tag such as es-ES or pt-BR. A language alone returns every matching locale. For example, pt returns both pt-BR and pt-PT.

响应

The voices that read codes aloud.

voices
object[]
必填

The available voices, one per locale.

最后修改于 2026年11月24日