1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
| const config = `
| <View>
| <Header value="Select regions:"></Header>
| <Labels name="label" toName="audio" choice="multiple">
| <Label value="Beat" background="yellow"></Label>
| <Label value="Voice" background="red"></Label>
| <Label value="Guitar" background="blue"></Label>
| <Label value="Other"></Label>
| </Labels>
| <Header value="Select genre:"></Header>
| <Choices name="choice" toName="audio" choice="multiple">
| <Choice value="Lo-Fi" />
| <Choice value="Rock" />
| <Choice value="Pop" />
| </Choices>
| <Header value="Listen the audio:"></Header>
| <Audio name="audio" value="$url"></Audio>
| </View>
| `;
|
| const data = {
| url: "/public/files/barradeen-emotional.mp3",
| };
|
| const result = [
| {
| from_name: "label",
| id: "SsGrpVgy_C",
| to_name: "audio",
| original_length: 98.719925,
| type: "labels",
| origin: "manual",
| value: {
| channel: 0,
| end: 28.50568583621215,
| labels: ["Beat"],
| start: 12.778410892095105,
| },
| },
| {
| from_name: "label",
| id: "JhxupEJWlW",
| to_name: "audio",
| original_length: 98.719925,
| type: "labels",
| origin: "manual",
| value: {
| channel: 1,
| end: 59.39854733358493,
| labels: ["Other"],
| start: 55.747572792986325,
| },
| },
| {
| from_name: "choice",
| id: "hIj6zg57SY",
| to_name: "audio",
| type: "choices",
| origin: "manual",
| value: {
| choices: ["Lo-Fi"],
| },
| },
| ];
|
| const title = "Audio regions";
|
| module.exports = { config, data, result, title };
|
|