文档
测试

🔊 音节发音

POST
{{host}}/api/word/wordvoice

接口描述

音节发音

请求头

参数名
类型
描述
必填
Token
string
必填

请求参数

application/json
参数名
类型
描述
必填
说明
word
string
单词
可选
二选一
wordid
int
单词ID
可选
二选一

响应参数

application/json
参数名
类型
描述
必填
code
int
状态码 1成功 0 失败 401 未登录(无权限)
必填
msg
string
消息内容
必填
time
int
响应时间戳
必填
data
object(json)
数据集
必填

说明 / 示例

{ "code": 0, "msg": "单词ID不正确", "time": "1714033964", "data": null } { "code": 1, "msg": "请求成功", "time": "1714034006", "data": { "word": { "id": 1, "word": "book", "uk": "英[bʊk]", "en": "美[bʊk]", "ukvoice": "/uploads/wordvoice/20240419/aea6584b8c8638f2d846d579303b3616.mp3", "envoice": "/uploads/wordvoice/20240419/1af119dd3a4d8c19eadbdf019e576bdf.mp3" }, "wordvoice": [ { "SentenceText": "s", "syllable": "ge", "pronunciation": "dʒ", "voice": "0", "remark": "要翘舌,记得嘴巴卷起来" }, { "SentenceText": "tran", "syllable": "ge", "pronunciation": "dʒ", "voice": "0", "remark": "要翘舌,记得嘴巴卷起来" }, { "SentenceText": "ge", "syllable": "ge", "pronunciation": "dʒ", "voice": "0", "remark": "要翘舌,记得嘴巴卷起来" } ] } }