| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- const config = `
- <View>
- <Audio name="audio" value="$url" hotkey="space" sync="text" />
- <Header value="Sentiment"/>
- <ParagraphLabels name="label" toName="text">
- <Label value="General: Positive" background="#00ff00"/>
- <Label value="General: Negative" background="#ff0000"/>
- <Label value="Company: Positive" background="#7dff7d"/>
- <Label value="Company: Negative" background="#ff7d7d"/>
- <Label value="External: Positive" background="#4bff4b"/>
- <Label value="External: Negative" background="#ff4b4b"/>
- </ParagraphLabels>
- <View style="height: 400px; overflow-y: auto">
- <Header value="Transcript"/>
- <Paragraphs audioUrl="$url" sync="audio" name="text" value="$text" layout="dialogue" textKey="text" nameKey="author" showplayer="true" />
- </View>
- </View>
- `;
- const data = {
- url: "/public/files/barradeen-emotional.mp3",
- text: [
- {
- end: 5.6,
- text: "Dont you hate that?",
- start: 3.1,
- author: "Mia Wallace",
- },
- {
- text: "Hate what?",
- start: 4.2,
- author: "Vincent Vega:",
- duration: 3.1,
- },
- {
- text: "Uncomfortable silences. Why do we feel its necessary to yak about nonsense in order to be comfortable?",
- author: "Mia Wallace:",
- },
- {
- text: "I dont know. Thats a good question.",
- start: 90,
- author: "Vincent Vega:",
- },
- {
- text: "Thats when you know you found somebody really special. When you can just shut the door closed a minute, and comfortably share silence.",
- author: "Mia Wallace:",
- },
- ],
- };
- const result = [
- {
- value: {
- start: "0",
- end: "0",
- startOffset: 0,
- endOffset: 4,
- text: "Dont",
- paragraphlabels: ["General: Negative"],
- },
- id: "RcHv5CdYBt",
- from_name: "label",
- to_name: "text",
- type: "paragraphlabels",
- origin: "manual",
- },
- {
- value: {
- start: "0",
- end: "0",
- startOffset: 9,
- endOffset: 13,
- text: "hate",
- paragraphlabels: ["General: Positive"],
- },
- id: "eePG7PVYH7",
- from_name: "label",
- to_name: "text",
- type: "paragraphlabels",
- origin: "manual",
- },
- {
- value: {
- start: "2",
- end: "2",
- startOffset: 20,
- endOffset: 72,
- text: "es. Why do we feel its necessary to yak about nonsen",
- paragraphlabels: ["External: Positive"],
- },
- id: "-GrFBNGB9G",
- from_name: "label",
- to_name: "text",
- type: "paragraphlabels",
- origin: "manual",
- },
- {
- value: {
- start: "3",
- end: "3",
- startOffset: 7,
- endOffset: 14,
- text: "know. T",
- paragraphlabels: ["Company: Positive"],
- },
- id: "llFGFq3jFt",
- from_name: "label",
- to_name: "text",
- type: "paragraphlabels",
- origin: "manual",
- },
- ];
- const title = "Audio Paragraphs";
- module.exports = { config, data, result, title };
|