Skip to content

Commit

Permalink
feat(README): support customized question type
Browse files Browse the repository at this point in the history
  • Loading branch information
Y--p--Y committed Sep 6, 2017
1 parent 15600a7 commit d76ef50
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ http://hybrid.liulishuo.com/lls-wx-recorder/wx.html

#### questionParam
quetion种类:
1. `readaloud`:打分。需提供音频对应的文本 `reftext`
1. 打分:type: `readaloud`需提供音频对应的文本 `reftext`
```json
{
"reftext": "Hope is a good thing",
"type": "readaloud"
}
```
2. `dubbing`:明星音比对。仅需注明type。
2. 明星音比对:仅需注明type。type `dubbing` 返回通用结果。
如果想返回定制化的结果请与技术团队沟通新增type,目前的制化type `xinhuashe`
```json
{
"type": "dubbing"
Expand Down Expand Up @@ -124,7 +125,7 @@ quetion种类:
}
```

### question type 为 `dubbing`
### question type 为 `dubbing` 明星音比对,返回通用结果
```json
{
"actors" : [
Expand All @@ -145,6 +146,27 @@ quetion种类:
}
```

### question type 为 `xinhuashe` 明星音比对,返回App结果
```json
{
"actors" : [
{
"audio": "https://xxx",
"role": {
"actor": "小时候的安娜",
"avatarUrl": "https://cdn.llscdn.com/FmF1YVIcqG21LXzEp2ZvSUXlP1c3",
"courseId": "56fd4d42636f6e08e70000dd",
"courseTitle": "《冰雪奇缘》",
"dialogue": "Do you wanna build a snowman?",
"movie": "《冰雪奇缘》"
},
"score" : 98.59364318847656
},
...
]
}
```

## 打分失败原因
```
-1 - 参数有误
Expand Down

0 comments on commit d76ef50

Please sign in to comment.