教学效果提升.md 7.84 KB

教学效果提升

单词模版

{
    "checksum" : "56296465d2e8ddcde378a7b29297744b",
    "code" : "12f1d7eff92d1497b4feee9c8d885ad8",
    "audit" : "8fe5d07c92edbd8ece4800ff02b8f26c",
    "type" : 0,
    "subtype" : 100,
    "list" : [ {
      "type" : 0,
      "word" : "pattern",
      "phonetic" : "['pætɚn]",
      "image" : "c36748c40afe0f23ff8f731a733117a0",
      "wordVoice" : "357a57010d38d7467ba953ccb27ac768",
      "sentenceVoice" : "ea653971707472faab79533135561ac4",
      "english" : "the production pattern",
      "chinese" : "生产模式",
      "definition" : "pat·tern n.模式"
    } ],
    "sentences" : [ {
      "sentence" : "The production pattern of the dolls was relatively plain.",
      "sentenceVoice" : "ea98253b2e3b7ed286d8c056366ba6bd"
    } ],
    "questions" : [ {
      "question" : "Is this pattern easy for making dolls?"
    } ],
    "sentence_replacement" : { }
  }
交互:一进入单词页面就显示顶部的问题,然后点击右下角的按钮“ A”,然后弹出底部视图,隐藏顶部视图
提示:页面查看(本地服务器:passage-默认分类-speech-拥有千万粉丝的Nyan cat以及奥巴马总统的约会)

文章模版(视频带测试)


 {
    "checksum" : "05ba09ce128bf2c539725891c32992ac",
    "code" : "3e140bb6f5ae69e172742e6c3a5462bf",
    "type" : 0,
    "title" : "Video Fun",
    "subtype" : 200
  }, {
    "tree" : "*So \"Nyan Cat\"[^1] is a looped _animation_ \n>with looped music[^2]. \n//\n*It's this, just like this. \n//\n*It's been viewed \n>nearly 50 million times this year. \n//\n^And if you think that is weird, \n*you should know \n>that there is _a three-hour version_ of this \n>>that's been viewed four million times. \n//\n*Even cats were watching this video.  \n*Cats were watching other cats watch this video.",
    "new_tree" : "*So \"Nyan Cat\"[^1] is a looped _animation_ \n>with looped music[^2]. \n//\n*It's this, just like this. \n//\n*It's been viewed \n>nearly 50 million times this year. \n//\n^And if you think that is weird, \n*you should know \n>that there is _a three-hour version_ of this \n>>that's been viewed four million times. \n//\n*Even cats were watching this video.  \n*Cats were watching other cats watch this video.\n[^1] 一首电波歌,在Youtube上的点击次数达到了1500万次,后被制作成视频动画。\n[^2] 电波歌。",
    "checksum" : "7669093f21949eda52eea56e271eddd2",
    "code" : "fc85b84b8dae61350d8fb8d7b850594c",
    "type" : 0,
    "video" : "f0fd9a11efe05535484a0d6c3a741a9a",
    "text" : "So \"Nyan Cat\" is a looped animation with looped music. It's this, just like this. \nIt's been viewed nearly 50 million times this year. \nAnd if you think that is weird, you should know that there is a three-hour version of this that's been viewed four million times. \nEven cats were watching this video. \nCats were watching other cats watch this video.",
    "new_text" : "So \"Nyan Cat\"[^1] is a looped animation with looped music[^2]. It's this, just like this. \nIt's been viewed nearly 50 million times this year. \nAnd if you think that is weird, you should know that there is a three-hour version of this that's been viewed four million times. \nEven cats were watching this video. \nCats were watching other cats watch this video.\n[^1] 一首电波歌,在Youtube上的点击次数达到了1500万次,后被制作成视频动画。\n[^2] 电波歌。",
    "questions" : [ {
      "question" : "How many times have this animation been viewed this year?"
    } ],
    "loop" : -1,
    "subtype" : 9,
    "info" : {
      "article" : "d66e2bc6ba4537b55708810cd72cf957",
      "level" : 4,
      "speed" : 0,
      "number_of_words" : 65
    },
    "list" : [ {
      "id" : "YYSPNYANCAT001",
      "question" : "What does \"looped animation\" probably mean in the passage?",
      "right" : [ "animation with repeated content" ],
      "wrong" : [ "animation which is popular among the audience", "animation with wonderful segments", "animation with funny characters" ],
      "type" : "multiple_choice"
    }, {
      "id" : "YYSPNYANCAT003",
      "question" : "How long is the version of video which has been viewed four million times?",
      "right" : [ "three hours" ],
      "wrong" : [ "half an hour", "one hour", "two hours" ],
      "type" : "multiple_choice"
    }, {
      "right" : [ ],
      "wrong" : [ ],
      "type" : "multiple_choice"
    } ],
    "type_string" : "group_test_item_video"
  },

注意:数据返回的时候,也多了“question”

提示:页面查看(本地服务器:passage-默认分类-speech-拥有千万粉丝的Nyan cat以及奥巴马总统的约会)

对话模版

 {
"checksum": "35cb3ac726a5c4083592e1736c7c2fa6",
"code": "0b2e7b38441334ecd050a00700742f08",
"audit": "9be1079989d0cc4cb966251a88b66a6e",
"type": 0,
"subtype": 100,
"list": [{
"type": 0,
"word": "long time",
"image": "89c903f38f56a0199d87d3654cc361a7",
"wordVoice": "2d7d16edcf0bec287263e43c5b4fb242",
"sentenceVoice": "1bcf34a576ee5e46db9be3c37a714487",
"english": "a long time ago",
"chinese": "很久以前",
"definition": "long time 长时间"
}],
"sentences": [],
"sentence_replacement": {}
}, {
"type": 0,
"actors": {},
"list": [{
"actor": "man",
"script": "Hey, there!",
"audio": "776b4aa725ab9d84b750266bec1184c8",
"translation": "嘿,你好啊!",
"script_segments": [{
"segment": "Hey, there!"
}]
}, {
"actor": "man1",
"script": "Hey, long time no see!",
"audio": "101d181fb4326bafc78f051aac0a4ce5",
"translation": "嘿,好久不见!",
"script_segments": [{
"segment": "Hey, long time"
}, {
"segment": "no see!"
}]
}],
"subtype": 11,
"background": "0e00e8ce12db1accf2fa3d151d30e012",
"type_string": "content_scene"
}

数据返回的时候,查看字段“script_segments”,然后根据这个数组来逐步显示数据

提示:页面查看(本地服务器:Dialog-(寒假特辑-场景对话)-假期嗨翻天)

长对话模版

{
checksum: "6d99624b522a2ca80dbb4248199f43f0",
code: "1407acf80603ecc9bd80d248947a36c6",
type: 0,
audio: "887b735ba6e6d849f13f6c1bdbb72578",
text: "W: What a nice Christmas time we are having!
M: I agree. The houses look so beautiful.
W: Do you have a Christmas tree this year?
M: Yes, we have a big tree this year. Do you want to come and see it?
W: Sorry, I can't. I have to buy a present for my mother.
M: Oh, what a pity!",
new_text: "W: What a nice Christmas time we are having!
M: I agree. The houses look so beautiful.
W: Do you have a Christmas tree this year?
M: Yes, we have a big tree this year. Do you want to come and see it?
W: Sorry, I can't. I have to buy a present for my mother.
M: Oh, what a pity!",
texts: [
"W: What a nice Christmas time we are having!
M: I agree. The houses look so beautiful.",
"W: Do you have a Christmas tree this year?
M: Yes, we have a big tree this year. Do you want to come and see it?",
"W: Sorry, I can't. I have to buy a present for my mother.
M: Oh, what a pity!"
],
scenes: [
{
scripts: [
{
actor: "W",
script: "What a nice Christmas time we are having!"
},
{
actor: "M",
script: "I agree. The houses look so beautiful."
}
]
},
{
scripts: [
{
actor: "W",
script: "Do you have a Christmas tree this year?"
},
{
actor: "M",
script: "Yes, we have a big tree this year. Do you want to come and see it?"
}
]
},
{
scripts: [
{
actor: "W",
script: "Sorry, I can't. I have to buy a present for my mother."
},
{
actor: "M",
script: "Oh, what a pity!"
}
]
}
],
loop: -1,
subtype: 9,
info: {
article: "f22843b6f1372481989f53e2b1b2ed3f",
level: 2,
speed: 0,
number_of_words: 62
},
list: [
{
id: "YYSPYXSZYLCD004",
question: "What season is it now?",
right: [
"Winter."
],
wrong: [
"Spring.",
"Autumn."
],
type: "multiple_choice"
}
],
type_string: "group_test_item_audio"
},

长对话模版的数据结构和视频带测试的数据结构很类似,所以,这里根据是否有scenes和actors字段来判断当前是否是长对话模版