video-audio-paragraphs.ts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. // Video + Audio + Paragraphs synchronization test configuration
  2. export const videoAudioParagraphsConfig = `
  3. <View>
  4. <Video name="video" value="$url" sync="sync1" height="150"/>
  5. <Audio name="audio" value="$url" hotkey="space" sync="sync1" />
  6. <Header value="Sentiment"/>
  7. <ParagraphLabels name="label" toName="text">
  8. <Label value="General: Positive" background="#00ff00"/>
  9. <Label value="General: Negative" background="#ff0000"/>
  10. <Label value="Company: Positive" background="#7dff7d"/>
  11. <Label value="Company: Negative" background="#ff7d7d"/>
  12. <Label value="External: Positive" background="#4bff4b"/>
  13. <Label value="External: Negative" background="#ff4b4b"/>
  14. </ParagraphLabels>
  15. <View style="height: 400px; overflow-y: auto">
  16. <Header value="Transcript"/>
  17. <Paragraphs audioUrl="$url" name="text" value="$text" layout="dialogue" textKey="text" nameKey="author" showplayer="true" sync="sync1" />
  18. </View>
  19. </View>
  20. `;
  21. export const videoAudioParagraphsData = {
  22. url: "/public/files/opossum_intro.webm",
  23. text: [
  24. {
  25. end: 3,
  26. text: "Dont you hate that?",
  27. start: 1,
  28. author: "Mia Wallace",
  29. },
  30. {
  31. text: "Hate what?",
  32. start: 3,
  33. author: "Vincent Vega:",
  34. duration: 1,
  35. },
  36. {
  37. text: "Uncomfortable silences. Why do we feel its necessary to yak about nonsense in order to be comfortable?",
  38. author: "Mia Wallace:",
  39. start: 4,
  40. end: 6,
  41. },
  42. {
  43. text: "I dont know. Thats a good question.",
  44. start: 6,
  45. end: 8,
  46. author: "Vincent Vega:",
  47. },
  48. {
  49. text: "Thats when you know you found somebody really special. When you can just shut the door closed a minute, and comfortably share silence.",
  50. author: "Mia Wallace:",
  51. start: 8,
  52. end: 10,
  53. },
  54. ],
  55. };
  56. export const videoAudioParagraphsAnnotations = [
  57. {
  58. value: {
  59. start: "0",
  60. end: "0",
  61. startOffset: 0,
  62. endOffset: 4,
  63. text: "Dont",
  64. paragraphlabels: ["General: Negative"],
  65. },
  66. id: "RcHv5CdYBt",
  67. from_name: "label",
  68. to_name: "text",
  69. type: "paragraphlabels",
  70. origin: "manual",
  71. },
  72. {
  73. value: {
  74. start: "0",
  75. end: "0",
  76. startOffset: 9,
  77. endOffset: 13,
  78. text: "hate",
  79. paragraphlabels: ["General: Positive"],
  80. },
  81. id: "eePG7PVYH7",
  82. from_name: "label",
  83. to_name: "text",
  84. type: "paragraphlabels",
  85. origin: "manual",
  86. },
  87. ];
  88. export const fullOpossumSnowData = {
  89. url: "/public/files/opossum_snow.mp4",
  90. text: [
  91. {
  92. start: 5.528639507357505,
  93. end: 6.70534554273317,
  94. text: "Mahna Mahna",
  95. author: "Mahna Mahna",
  96. },
  97. {
  98. start: 8.202614379084968,
  99. end: 9.281045751633988,
  100. text: "Mahna Mahna",
  101. author: "Mahna Mahna",
  102. },
  103. {
  104. start: 10.898692810457517,
  105. end: 11.998910675381264,
  106. text: "Mahna Mahna",
  107. author: "Mahna Mahna",
  108. },
  109. {
  110. start: 17.467320261437912,
  111. end: 18.567538126361658,
  112. text: "Mahna Mahna",
  113. author: "Mahna Mahna",
  114. },
  115. {
  116. start: 20.21786492374728,
  117. end: 21.045751633986928,
  118. text: "Mahna Mahna",
  119. author: "Mahna Mahna",
  120. },
  121. {
  122. start: 22.875816993464056,
  123. end: 23.69281045751634,
  124. text: "Mahna Mahna",
  125. author: "Mahna Mahna",
  126. },
  127. {
  128. start: 34.869281045751634,
  129. end: 35.55555555555556,
  130. text: "Mahna Mahna",
  131. author: "Mahna Mahna",
  132. },
  133. {
  134. start: 37.48793583224401,
  135. end: 38.413861758169936,
  136. text: "Mahna Mahna",
  137. author: "Mahna Mahna",
  138. },
  139. {
  140. start: 40.12410140958606,
  141. end: 41.2569990130719,
  142. text: "Mahna Mahna",
  143. author: "Mahna Mahna",
  144. },
  145. ],
  146. };