@startsimpli/llm 0.4.30 → 0.4.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1881 @@
1
+ [
2
+ {
3
+ "expected": [
4
+ {
5
+ "end": 2.05,
6
+ "start": 0.0,
7
+ "text": "Today the frog will hop three feet"
8
+ },
9
+ {
10
+ "end": 4.15,
11
+ "start": 2.1,
12
+ "text": "to the right, and the elephant will"
13
+ },
14
+ {
15
+ "end": 4.45,
16
+ "start": 4.2,
17
+ "text": "watch."
18
+ }
19
+ ],
20
+ "fn": "cues_from_words",
21
+ "input": {
22
+ "clause_breaks": false,
23
+ "words": [
24
+ {
25
+ "end": 0.25,
26
+ "start": 0.0,
27
+ "word": "Today"
28
+ },
29
+ {
30
+ "end": 0.55,
31
+ "start": 0.3,
32
+ "word": "the"
33
+ },
34
+ {
35
+ "end": 0.85,
36
+ "start": 0.6,
37
+ "word": "frog"
38
+ },
39
+ {
40
+ "end": 1.15,
41
+ "start": 0.9,
42
+ "word": "will"
43
+ },
44
+ {
45
+ "end": 1.45,
46
+ "start": 1.2,
47
+ "word": "hop"
48
+ },
49
+ {
50
+ "end": 1.75,
51
+ "start": 1.5,
52
+ "word": "three"
53
+ },
54
+ {
55
+ "end": 2.05,
56
+ "start": 1.8,
57
+ "word": "feet"
58
+ },
59
+ {
60
+ "end": 2.35,
61
+ "start": 2.1,
62
+ "word": "to"
63
+ },
64
+ {
65
+ "end": 2.65,
66
+ "start": 2.4,
67
+ "word": "the"
68
+ },
69
+ {
70
+ "end": 2.95,
71
+ "start": 2.7,
72
+ "word": "right,"
73
+ },
74
+ {
75
+ "end": 3.25,
76
+ "start": 3.0,
77
+ "word": "and"
78
+ },
79
+ {
80
+ "end": 3.55,
81
+ "start": 3.3,
82
+ "word": "the"
83
+ },
84
+ {
85
+ "end": 3.85,
86
+ "start": 3.6,
87
+ "word": "elephant"
88
+ },
89
+ {
90
+ "end": 4.15,
91
+ "start": 3.9,
92
+ "word": "will"
93
+ },
94
+ {
95
+ "end": 4.45,
96
+ "start": 4.2,
97
+ "word": "watch."
98
+ }
99
+ ]
100
+ }
101
+ },
102
+ {
103
+ "expected": [
104
+ {
105
+ "end": 2.05,
106
+ "start": 0.0,
107
+ "text": "Today the frog will hop three feet"
108
+ },
109
+ {
110
+ "end": 2.95,
111
+ "start": 2.1,
112
+ "text": "to the right,"
113
+ },
114
+ {
115
+ "end": 4.45,
116
+ "start": 3.0,
117
+ "text": "and the elephant will watch."
118
+ }
119
+ ],
120
+ "fn": "cues_from_words",
121
+ "input": {
122
+ "clause_breaks": true,
123
+ "words": [
124
+ {
125
+ "end": 0.25,
126
+ "start": 0.0,
127
+ "word": "Today"
128
+ },
129
+ {
130
+ "end": 0.55,
131
+ "start": 0.3,
132
+ "word": "the"
133
+ },
134
+ {
135
+ "end": 0.85,
136
+ "start": 0.6,
137
+ "word": "frog"
138
+ },
139
+ {
140
+ "end": 1.15,
141
+ "start": 0.9,
142
+ "word": "will"
143
+ },
144
+ {
145
+ "end": 1.45,
146
+ "start": 1.2,
147
+ "word": "hop"
148
+ },
149
+ {
150
+ "end": 1.75,
151
+ "start": 1.5,
152
+ "word": "three"
153
+ },
154
+ {
155
+ "end": 2.05,
156
+ "start": 1.8,
157
+ "word": "feet"
158
+ },
159
+ {
160
+ "end": 2.35,
161
+ "start": 2.1,
162
+ "word": "to"
163
+ },
164
+ {
165
+ "end": 2.65,
166
+ "start": 2.4,
167
+ "word": "the"
168
+ },
169
+ {
170
+ "end": 2.95,
171
+ "start": 2.7,
172
+ "word": "right,"
173
+ },
174
+ {
175
+ "end": 3.25,
176
+ "start": 3.0,
177
+ "word": "and"
178
+ },
179
+ {
180
+ "end": 3.55,
181
+ "start": 3.3,
182
+ "word": "the"
183
+ },
184
+ {
185
+ "end": 3.85,
186
+ "start": 3.6,
187
+ "word": "elephant"
188
+ },
189
+ {
190
+ "end": 4.15,
191
+ "start": 3.9,
192
+ "word": "will"
193
+ },
194
+ {
195
+ "end": 4.45,
196
+ "start": 4.2,
197
+ "word": "watch."
198
+ }
199
+ ]
200
+ }
201
+ },
202
+ {
203
+ "expected": [
204
+ {
205
+ "end": 2.05,
206
+ "start": 0.0,
207
+ "text": "Ready? One, two, three small hops, and"
208
+ },
209
+ {
210
+ "end": 2.95,
211
+ "start": 2.1,
212
+ "text": "it is done."
213
+ }
214
+ ],
215
+ "fn": "cues_from_words",
216
+ "input": {
217
+ "clause_breaks": false,
218
+ "words": [
219
+ {
220
+ "end": 0.25,
221
+ "start": 0.0,
222
+ "word": "Ready?"
223
+ },
224
+ {
225
+ "end": 0.55,
226
+ "start": 0.3,
227
+ "word": "One,"
228
+ },
229
+ {
230
+ "end": 0.85,
231
+ "start": 0.6,
232
+ "word": "two,"
233
+ },
234
+ {
235
+ "end": 1.15,
236
+ "start": 0.9,
237
+ "word": "three"
238
+ },
239
+ {
240
+ "end": 1.45,
241
+ "start": 1.2,
242
+ "word": "small"
243
+ },
244
+ {
245
+ "end": 1.75,
246
+ "start": 1.5,
247
+ "word": "hops,"
248
+ },
249
+ {
250
+ "end": 2.05,
251
+ "start": 1.8,
252
+ "word": "and"
253
+ },
254
+ {
255
+ "end": 2.35,
256
+ "start": 2.1,
257
+ "word": "it"
258
+ },
259
+ {
260
+ "end": 2.65,
261
+ "start": 2.4,
262
+ "word": "is"
263
+ },
264
+ {
265
+ "end": 2.95,
266
+ "start": 2.7,
267
+ "word": "done."
268
+ }
269
+ ]
270
+ }
271
+ },
272
+ {
273
+ "expected": [
274
+ {
275
+ "end": 1.75,
276
+ "start": 0.0,
277
+ "text": "Ready? One, two, three small hops,"
278
+ },
279
+ {
280
+ "end": 2.95,
281
+ "start": 1.8,
282
+ "text": "and it is done."
283
+ }
284
+ ],
285
+ "fn": "cues_from_words",
286
+ "input": {
287
+ "clause_breaks": true,
288
+ "words": [
289
+ {
290
+ "end": 0.25,
291
+ "start": 0.0,
292
+ "word": "Ready?"
293
+ },
294
+ {
295
+ "end": 0.55,
296
+ "start": 0.3,
297
+ "word": "One,"
298
+ },
299
+ {
300
+ "end": 0.85,
301
+ "start": 0.6,
302
+ "word": "two,"
303
+ },
304
+ {
305
+ "end": 1.15,
306
+ "start": 0.9,
307
+ "word": "three"
308
+ },
309
+ {
310
+ "end": 1.45,
311
+ "start": 1.2,
312
+ "word": "small"
313
+ },
314
+ {
315
+ "end": 1.75,
316
+ "start": 1.5,
317
+ "word": "hops,"
318
+ },
319
+ {
320
+ "end": 2.05,
321
+ "start": 1.8,
322
+ "word": "and"
323
+ },
324
+ {
325
+ "end": 2.35,
326
+ "start": 2.1,
327
+ "word": "it"
328
+ },
329
+ {
330
+ "end": 2.65,
331
+ "start": 2.4,
332
+ "word": "is"
333
+ },
334
+ {
335
+ "end": 2.95,
336
+ "start": 2.7,
337
+ "word": "done."
338
+ }
339
+ ]
340
+ }
341
+ },
342
+ {
343
+ "expected": [
344
+ {
345
+ "end": 2.05,
346
+ "start": 0.0,
347
+ "text": "I watched. It was a very good"
348
+ },
349
+ {
350
+ "end": 2.65,
351
+ "start": 2.1,
352
+ "text": "three feet."
353
+ }
354
+ ],
355
+ "fn": "cues_from_words",
356
+ "input": {
357
+ "clause_breaks": false,
358
+ "words": [
359
+ {
360
+ "end": 0.25,
361
+ "start": 0.0,
362
+ "word": "I"
363
+ },
364
+ {
365
+ "end": 0.55,
366
+ "start": 0.3,
367
+ "word": "watched."
368
+ },
369
+ {
370
+ "end": 0.85,
371
+ "start": 0.6,
372
+ "word": "It"
373
+ },
374
+ {
375
+ "end": 1.15,
376
+ "start": 0.9,
377
+ "word": "was"
378
+ },
379
+ {
380
+ "end": 1.45,
381
+ "start": 1.2,
382
+ "word": "a"
383
+ },
384
+ {
385
+ "end": 1.75,
386
+ "start": 1.5,
387
+ "word": "very"
388
+ },
389
+ {
390
+ "end": 2.05,
391
+ "start": 1.8,
392
+ "word": "good"
393
+ },
394
+ {
395
+ "end": 2.35,
396
+ "start": 2.1,
397
+ "word": "three"
398
+ },
399
+ {
400
+ "end": 2.65,
401
+ "start": 2.4,
402
+ "word": "feet."
403
+ }
404
+ ]
405
+ }
406
+ },
407
+ {
408
+ "expected": [
409
+ {
410
+ "end": 0.55,
411
+ "start": 0.0,
412
+ "text": "I watched."
413
+ },
414
+ {
415
+ "end": 2.65,
416
+ "start": 0.6,
417
+ "text": "It was a very good three feet."
418
+ }
419
+ ],
420
+ "fn": "cues_from_words",
421
+ "input": {
422
+ "clause_breaks": true,
423
+ "words": [
424
+ {
425
+ "end": 0.25,
426
+ "start": 0.0,
427
+ "word": "I"
428
+ },
429
+ {
430
+ "end": 0.55,
431
+ "start": 0.3,
432
+ "word": "watched."
433
+ },
434
+ {
435
+ "end": 0.85,
436
+ "start": 0.6,
437
+ "word": "It"
438
+ },
439
+ {
440
+ "end": 1.15,
441
+ "start": 0.9,
442
+ "word": "was"
443
+ },
444
+ {
445
+ "end": 1.45,
446
+ "start": 1.2,
447
+ "word": "a"
448
+ },
449
+ {
450
+ "end": 1.75,
451
+ "start": 1.5,
452
+ "word": "very"
453
+ },
454
+ {
455
+ "end": 2.05,
456
+ "start": 1.8,
457
+ "word": "good"
458
+ },
459
+ {
460
+ "end": 2.35,
461
+ "start": 2.1,
462
+ "word": "three"
463
+ },
464
+ {
465
+ "end": 2.65,
466
+ "start": 2.4,
467
+ "word": "feet."
468
+ }
469
+ ]
470
+ }
471
+ },
472
+ {
473
+ "expected": [
474
+ {
475
+ "end": 2.05,
476
+ "start": 0.0,
477
+ "text": "Measured, and exactly right. The frog is"
478
+ },
479
+ {
480
+ "end": 4.15,
481
+ "start": 2.1,
482
+ "text": "very pleased, and the elephant is a"
483
+ },
484
+ {
485
+ "end": 4.75,
486
+ "start": 4.2,
487
+ "text": "little jealous."
488
+ }
489
+ ],
490
+ "fn": "cues_from_words",
491
+ "input": {
492
+ "clause_breaks": false,
493
+ "words": [
494
+ {
495
+ "end": 0.25,
496
+ "start": 0.0,
497
+ "word": "Measured,"
498
+ },
499
+ {
500
+ "end": 0.55,
501
+ "start": 0.3,
502
+ "word": "and"
503
+ },
504
+ {
505
+ "end": 0.85,
506
+ "start": 0.6,
507
+ "word": "exactly"
508
+ },
509
+ {
510
+ "end": 1.15,
511
+ "start": 0.9,
512
+ "word": "right."
513
+ },
514
+ {
515
+ "end": 1.45,
516
+ "start": 1.2,
517
+ "word": "The"
518
+ },
519
+ {
520
+ "end": 1.75,
521
+ "start": 1.5,
522
+ "word": "frog"
523
+ },
524
+ {
525
+ "end": 2.05,
526
+ "start": 1.8,
527
+ "word": "is"
528
+ },
529
+ {
530
+ "end": 2.35,
531
+ "start": 2.1,
532
+ "word": "very"
533
+ },
534
+ {
535
+ "end": 2.65,
536
+ "start": 2.4,
537
+ "word": "pleased,"
538
+ },
539
+ {
540
+ "end": 2.95,
541
+ "start": 2.7,
542
+ "word": "and"
543
+ },
544
+ {
545
+ "end": 3.25,
546
+ "start": 3.0,
547
+ "word": "the"
548
+ },
549
+ {
550
+ "end": 3.55,
551
+ "start": 3.3,
552
+ "word": "elephant"
553
+ },
554
+ {
555
+ "end": 3.85,
556
+ "start": 3.6,
557
+ "word": "is"
558
+ },
559
+ {
560
+ "end": 4.15,
561
+ "start": 3.9,
562
+ "word": "a"
563
+ },
564
+ {
565
+ "end": 4.45,
566
+ "start": 4.2,
567
+ "word": "little"
568
+ },
569
+ {
570
+ "end": 4.75,
571
+ "start": 4.5,
572
+ "word": "jealous."
573
+ }
574
+ ]
575
+ }
576
+ },
577
+ {
578
+ "expected": [
579
+ {
580
+ "end": 1.15,
581
+ "start": 0.0,
582
+ "text": "Measured, and exactly right."
583
+ },
584
+ {
585
+ "end": 2.65,
586
+ "start": 1.2,
587
+ "text": "The frog is very pleased,"
588
+ },
589
+ {
590
+ "end": 4.75,
591
+ "start": 2.7,
592
+ "text": "and the elephant is a little jealous."
593
+ }
594
+ ],
595
+ "fn": "cues_from_words",
596
+ "input": {
597
+ "clause_breaks": true,
598
+ "words": [
599
+ {
600
+ "end": 0.25,
601
+ "start": 0.0,
602
+ "word": "Measured,"
603
+ },
604
+ {
605
+ "end": 0.55,
606
+ "start": 0.3,
607
+ "word": "and"
608
+ },
609
+ {
610
+ "end": 0.85,
611
+ "start": 0.6,
612
+ "word": "exactly"
613
+ },
614
+ {
615
+ "end": 1.15,
616
+ "start": 0.9,
617
+ "word": "right."
618
+ },
619
+ {
620
+ "end": 1.45,
621
+ "start": 1.2,
622
+ "word": "The"
623
+ },
624
+ {
625
+ "end": 1.75,
626
+ "start": 1.5,
627
+ "word": "frog"
628
+ },
629
+ {
630
+ "end": 2.05,
631
+ "start": 1.8,
632
+ "word": "is"
633
+ },
634
+ {
635
+ "end": 2.35,
636
+ "start": 2.1,
637
+ "word": "very"
638
+ },
639
+ {
640
+ "end": 2.65,
641
+ "start": 2.4,
642
+ "word": "pleased,"
643
+ },
644
+ {
645
+ "end": 2.95,
646
+ "start": 2.7,
647
+ "word": "and"
648
+ },
649
+ {
650
+ "end": 3.25,
651
+ "start": 3.0,
652
+ "word": "the"
653
+ },
654
+ {
655
+ "end": 3.55,
656
+ "start": 3.3,
657
+ "word": "elephant"
658
+ },
659
+ {
660
+ "end": 3.85,
661
+ "start": 3.6,
662
+ "word": "is"
663
+ },
664
+ {
665
+ "end": 4.15,
666
+ "start": 3.9,
667
+ "word": "a"
668
+ },
669
+ {
670
+ "end": 4.45,
671
+ "start": 4.2,
672
+ "word": "little"
673
+ },
674
+ {
675
+ "end": 4.75,
676
+ "start": 4.5,
677
+ "word": "jealous."
678
+ }
679
+ ]
680
+ }
681
+ },
682
+ {
683
+ "expected": [
684
+ {
685
+ "end": 2.05,
686
+ "start": 0.0,
687
+ "text": "one two three four five six seven"
688
+ },
689
+ {
690
+ "end": 2.65,
691
+ "start": 2.1,
692
+ "text": "eight nine"
693
+ }
694
+ ],
695
+ "fn": "cues_from_words",
696
+ "input": {
697
+ "clause_breaks": false,
698
+ "words": [
699
+ {
700
+ "end": 0.25,
701
+ "start": 0.0,
702
+ "word": "one"
703
+ },
704
+ {
705
+ "end": 0.55,
706
+ "start": 0.3,
707
+ "word": "two"
708
+ },
709
+ {
710
+ "end": 0.85,
711
+ "start": 0.6,
712
+ "word": "three"
713
+ },
714
+ {
715
+ "end": 1.15,
716
+ "start": 0.9,
717
+ "word": "four"
718
+ },
719
+ {
720
+ "end": 1.45,
721
+ "start": 1.2,
722
+ "word": "five"
723
+ },
724
+ {
725
+ "end": 1.75,
726
+ "start": 1.5,
727
+ "word": "six"
728
+ },
729
+ {
730
+ "end": 2.05,
731
+ "start": 1.8,
732
+ "word": "seven"
733
+ },
734
+ {
735
+ "end": 2.35,
736
+ "start": 2.1,
737
+ "word": "eight"
738
+ },
739
+ {
740
+ "end": 2.65,
741
+ "start": 2.4,
742
+ "word": "nine"
743
+ }
744
+ ]
745
+ }
746
+ },
747
+ {
748
+ "expected": [
749
+ {
750
+ "end": 2.05,
751
+ "start": 0.0,
752
+ "text": "one two three four five six seven"
753
+ },
754
+ {
755
+ "end": 2.65,
756
+ "start": 2.1,
757
+ "text": "eight nine"
758
+ }
759
+ ],
760
+ "fn": "cues_from_words",
761
+ "input": {
762
+ "clause_breaks": true,
763
+ "words": [
764
+ {
765
+ "end": 0.25,
766
+ "start": 0.0,
767
+ "word": "one"
768
+ },
769
+ {
770
+ "end": 0.55,
771
+ "start": 0.3,
772
+ "word": "two"
773
+ },
774
+ {
775
+ "end": 0.85,
776
+ "start": 0.6,
777
+ "word": "three"
778
+ },
779
+ {
780
+ "end": 1.15,
781
+ "start": 0.9,
782
+ "word": "four"
783
+ },
784
+ {
785
+ "end": 1.45,
786
+ "start": 1.2,
787
+ "word": "five"
788
+ },
789
+ {
790
+ "end": 1.75,
791
+ "start": 1.5,
792
+ "word": "six"
793
+ },
794
+ {
795
+ "end": 2.05,
796
+ "start": 1.8,
797
+ "word": "seven"
798
+ },
799
+ {
800
+ "end": 2.35,
801
+ "start": 2.1,
802
+ "word": "eight"
803
+ },
804
+ {
805
+ "end": 2.65,
806
+ "start": 2.4,
807
+ "word": "nine"
808
+ }
809
+ ]
810
+ }
811
+ },
812
+ {
813
+ "expected": [
814
+ {
815
+ "end": 2.05,
816
+ "start": 0.0,
817
+ "text": "Ready? One, two, three small hops, and"
818
+ },
819
+ {
820
+ "end": 2.95,
821
+ "start": 2.1,
822
+ "text": "it is done."
823
+ },
824
+ {
825
+ "end": 10.45,
826
+ "start": 9.0,
827
+ "text": "a late word after silence"
828
+ }
829
+ ],
830
+ "fn": "cues_from_words",
831
+ "input": {
832
+ "clause_breaks": false,
833
+ "words": [
834
+ {
835
+ "end": 0.25,
836
+ "start": 0.0,
837
+ "word": "Ready?"
838
+ },
839
+ {
840
+ "end": 0.55,
841
+ "start": 0.3,
842
+ "word": "One,"
843
+ },
844
+ {
845
+ "end": 0.85,
846
+ "start": 0.6,
847
+ "word": "two,"
848
+ },
849
+ {
850
+ "end": 1.15,
851
+ "start": 0.9,
852
+ "word": "three"
853
+ },
854
+ {
855
+ "end": 1.45,
856
+ "start": 1.2,
857
+ "word": "small"
858
+ },
859
+ {
860
+ "end": 1.75,
861
+ "start": 1.5,
862
+ "word": "hops,"
863
+ },
864
+ {
865
+ "end": 2.05,
866
+ "start": 1.8,
867
+ "word": "and"
868
+ },
869
+ {
870
+ "end": 2.35,
871
+ "start": 2.1,
872
+ "word": "it"
873
+ },
874
+ {
875
+ "end": 2.65,
876
+ "start": 2.4,
877
+ "word": "is"
878
+ },
879
+ {
880
+ "end": 2.95,
881
+ "start": 2.7,
882
+ "word": "done."
883
+ },
884
+ {
885
+ "end": 9.25,
886
+ "start": 9.0,
887
+ "word": "a"
888
+ },
889
+ {
890
+ "end": 9.55,
891
+ "start": 9.3,
892
+ "word": "late"
893
+ },
894
+ {
895
+ "end": 9.85,
896
+ "start": 9.6,
897
+ "word": "word"
898
+ },
899
+ {
900
+ "end": 10.15,
901
+ "start": 9.9,
902
+ "word": "after"
903
+ },
904
+ {
905
+ "end": 10.45,
906
+ "start": 10.2,
907
+ "word": "silence"
908
+ }
909
+ ]
910
+ }
911
+ },
912
+ {
913
+ "expected": [
914
+ {
915
+ "end": 1.15,
916
+ "start": 0.0,
917
+ "text": "Today the frog will"
918
+ },
919
+ {
920
+ "end": 2.35,
921
+ "start": 1.2,
922
+ "text": "hop three feet to"
923
+ },
924
+ {
925
+ "end": 2.95,
926
+ "start": 2.4,
927
+ "text": "the right,"
928
+ },
929
+ {
930
+ "end": 3.85,
931
+ "start": 3.0,
932
+ "text": "and the elephant"
933
+ },
934
+ {
935
+ "end": 4.45,
936
+ "start": 3.9,
937
+ "text": "will watch."
938
+ }
939
+ ],
940
+ "fn": "cues_from_words",
941
+ "input": {
942
+ "clause_breaks": true,
943
+ "max_chars": 20,
944
+ "max_words": 4,
945
+ "words": [
946
+ {
947
+ "end": 0.25,
948
+ "start": 0.0,
949
+ "word": "Today"
950
+ },
951
+ {
952
+ "end": 0.55,
953
+ "start": 0.3,
954
+ "word": "the"
955
+ },
956
+ {
957
+ "end": 0.85,
958
+ "start": 0.6,
959
+ "word": "frog"
960
+ },
961
+ {
962
+ "end": 1.15,
963
+ "start": 0.9,
964
+ "word": "will"
965
+ },
966
+ {
967
+ "end": 1.45,
968
+ "start": 1.2,
969
+ "word": "hop"
970
+ },
971
+ {
972
+ "end": 1.75,
973
+ "start": 1.5,
974
+ "word": "three"
975
+ },
976
+ {
977
+ "end": 2.05,
978
+ "start": 1.8,
979
+ "word": "feet"
980
+ },
981
+ {
982
+ "end": 2.35,
983
+ "start": 2.1,
984
+ "word": "to"
985
+ },
986
+ {
987
+ "end": 2.65,
988
+ "start": 2.4,
989
+ "word": "the"
990
+ },
991
+ {
992
+ "end": 2.95,
993
+ "start": 2.7,
994
+ "word": "right,"
995
+ },
996
+ {
997
+ "end": 3.25,
998
+ "start": 3.0,
999
+ "word": "and"
1000
+ },
1001
+ {
1002
+ "end": 3.55,
1003
+ "start": 3.3,
1004
+ "word": "the"
1005
+ },
1006
+ {
1007
+ "end": 3.85,
1008
+ "start": 3.6,
1009
+ "word": "elephant"
1010
+ },
1011
+ {
1012
+ "end": 4.15,
1013
+ "start": 3.9,
1014
+ "word": "will"
1015
+ },
1016
+ {
1017
+ "end": 4.45,
1018
+ "start": 4.2,
1019
+ "word": "watch."
1020
+ }
1021
+ ]
1022
+ }
1023
+ },
1024
+ {
1025
+ "expected": [],
1026
+ "fn": "cues_from_words",
1027
+ "input": {
1028
+ "clause_breaks": false,
1029
+ "words": []
1030
+ }
1031
+ },
1032
+ {
1033
+ "expected": [
1034
+ {
1035
+ "end": 3.1020408163265305,
1036
+ "start": 0.0,
1037
+ "text": "Ready? One, two, three small hops, and"
1038
+ },
1039
+ {
1040
+ "end": 4.0,
1041
+ "start": 3.1020408163265305,
1042
+ "text": "it is done."
1043
+ }
1044
+ ],
1045
+ "fn": "cues_from_text",
1046
+ "input": {
1047
+ "clause_breaks": false,
1048
+ "duration": 4.0,
1049
+ "text": "Ready? One, two, three small hops, and it is done."
1050
+ }
1051
+ },
1052
+ {
1053
+ "expected": [
1054
+ {
1055
+ "end": 2.7755102040816326,
1056
+ "start": 0.0,
1057
+ "text": "Ready? One, two, three small hops,"
1058
+ },
1059
+ {
1060
+ "end": 4.0,
1061
+ "start": 2.7755102040816326,
1062
+ "text": "and it is done."
1063
+ }
1064
+ ],
1065
+ "fn": "cues_from_text",
1066
+ "input": {
1067
+ "clause_breaks": true,
1068
+ "duration": 4.0,
1069
+ "text": "Ready? One, two, three small hops, and it is done."
1070
+ }
1071
+ },
1072
+ {
1073
+ "expected": [],
1074
+ "fn": "cues_from_text",
1075
+ "input": {
1076
+ "duration": 4.0,
1077
+ "text": ""
1078
+ }
1079
+ },
1080
+ {
1081
+ "expected": [
1082
+ {
1083
+ "end": 2.359550561797753,
1084
+ "start": 0.0,
1085
+ "text": "Measured, and exactly right."
1086
+ },
1087
+ {
1088
+ "end": 4.466292134831461,
1089
+ "start": 2.359550561797753,
1090
+ "text": "The frog is very pleased,"
1091
+ },
1092
+ {
1093
+ "end": 6.235955056179775,
1094
+ "start": 4.466292134831461,
1095
+ "text": "and the elephant is a"
1096
+ },
1097
+ {
1098
+ "end": 7.5,
1099
+ "start": 6.235955056179775,
1100
+ "text": "little jealous."
1101
+ }
1102
+ ],
1103
+ "fn": "cues_from_text",
1104
+ "input": {
1105
+ "duration": 7.5,
1106
+ "max_chars": 30,
1107
+ "max_words": 5,
1108
+ "text": "Measured, and exactly right. The frog is very pleased, and the elephant is a little jealous."
1109
+ }
1110
+ },
1111
+ {
1112
+ "expected": [
1113
+ {
1114
+ "end": 2.75,
1115
+ "start": 1.0,
1116
+ "text": "Ready? One, two, three small hops,"
1117
+ },
1118
+ {
1119
+ "end": 3.95,
1120
+ "start": 2.8,
1121
+ "text": "and it is done."
1122
+ }
1123
+ ],
1124
+ "fn": "cues_for_beat",
1125
+ "input": {
1126
+ "clause_breaks": true,
1127
+ "duration": 4.0,
1128
+ "offset": 1.0,
1129
+ "text": "Ready? One, two, three small hops, and it is done.",
1130
+ "words": [
1131
+ {
1132
+ "end": 0.25,
1133
+ "start": 0.0,
1134
+ "word": "Ready?"
1135
+ },
1136
+ {
1137
+ "end": 0.55,
1138
+ "start": 0.3,
1139
+ "word": "One,"
1140
+ },
1141
+ {
1142
+ "end": 0.85,
1143
+ "start": 0.6,
1144
+ "word": "two,"
1145
+ },
1146
+ {
1147
+ "end": 1.15,
1148
+ "start": 0.9,
1149
+ "word": "three"
1150
+ },
1151
+ {
1152
+ "end": 1.45,
1153
+ "start": 1.2,
1154
+ "word": "small"
1155
+ },
1156
+ {
1157
+ "end": 1.75,
1158
+ "start": 1.5,
1159
+ "word": "hops,"
1160
+ },
1161
+ {
1162
+ "end": 2.05,
1163
+ "start": 1.8,
1164
+ "word": "and"
1165
+ },
1166
+ {
1167
+ "end": 2.35,
1168
+ "start": 2.1,
1169
+ "word": "it"
1170
+ },
1171
+ {
1172
+ "end": 2.65,
1173
+ "start": 2.4,
1174
+ "word": "is"
1175
+ },
1176
+ {
1177
+ "end": 2.95,
1178
+ "start": 2.7,
1179
+ "word": "done."
1180
+ }
1181
+ ]
1182
+ }
1183
+ },
1184
+ {
1185
+ "expected": [
1186
+ {
1187
+ "end": 4.675,
1188
+ "start": 2.5,
1189
+ "text": "I watched. It was a very good"
1190
+ },
1191
+ {
1192
+ "end": 5.5,
1193
+ "start": 4.675,
1194
+ "text": "three feet."
1195
+ }
1196
+ ],
1197
+ "fn": "cues_for_beat",
1198
+ "input": {
1199
+ "duration": 3.0,
1200
+ "offset": 2.5,
1201
+ "text": "I watched. It was a very good three feet.",
1202
+ "words": null
1203
+ }
1204
+ },
1205
+ {
1206
+ "expected": [
1207
+ {
1208
+ "end": 1.0,
1209
+ "start": 0.0,
1210
+ "text": "a"
1211
+ },
1212
+ {
1213
+ "end": 2.0,
1214
+ "start": 1.2,
1215
+ "text": "b"
1216
+ },
1217
+ {
1218
+ "end": 4.0,
1219
+ "start": 3.5,
1220
+ "text": "c"
1221
+ },
1222
+ {
1223
+ "end": 4.5,
1224
+ "start": 4.0,
1225
+ "text": "d"
1226
+ }
1227
+ ],
1228
+ "fn": "hold_gaps",
1229
+ "input": {
1230
+ "cues": [
1231
+ {
1232
+ "end": 1.0,
1233
+ "start": 0.0,
1234
+ "text": "a"
1235
+ },
1236
+ {
1237
+ "end": 2.0,
1238
+ "start": 1.2,
1239
+ "text": "b"
1240
+ },
1241
+ {
1242
+ "end": 4.0,
1243
+ "start": 3.5,
1244
+ "text": "c"
1245
+ },
1246
+ {
1247
+ "end": 4.5,
1248
+ "start": 4.0,
1249
+ "text": "d"
1250
+ }
1251
+ ],
1252
+ "max_gap_s": 0.0
1253
+ }
1254
+ },
1255
+ {
1256
+ "expected": [
1257
+ {
1258
+ "end": 1.2,
1259
+ "start": 0.0,
1260
+ "text": "a"
1261
+ },
1262
+ {
1263
+ "end": 2.0,
1264
+ "start": 1.2,
1265
+ "text": "b"
1266
+ },
1267
+ {
1268
+ "end": 4.0,
1269
+ "start": 3.5,
1270
+ "text": "c"
1271
+ },
1272
+ {
1273
+ "end": 4.5,
1274
+ "start": 4.0,
1275
+ "text": "d"
1276
+ }
1277
+ ],
1278
+ "fn": "hold_gaps",
1279
+ "input": {
1280
+ "cues": [
1281
+ {
1282
+ "end": 1.0,
1283
+ "start": 0.0,
1284
+ "text": "a"
1285
+ },
1286
+ {
1287
+ "end": 2.0,
1288
+ "start": 1.2,
1289
+ "text": "b"
1290
+ },
1291
+ {
1292
+ "end": 4.0,
1293
+ "start": 3.5,
1294
+ "text": "c"
1295
+ },
1296
+ {
1297
+ "end": 4.5,
1298
+ "start": 4.0,
1299
+ "text": "d"
1300
+ }
1301
+ ],
1302
+ "max_gap_s": 0.25
1303
+ }
1304
+ },
1305
+ {
1306
+ "expected": [
1307
+ {
1308
+ "end": 1.2,
1309
+ "start": 0.0,
1310
+ "text": "a"
1311
+ },
1312
+ {
1313
+ "end": 2.0,
1314
+ "start": 1.2,
1315
+ "text": "b"
1316
+ },
1317
+ {
1318
+ "end": 4.0,
1319
+ "start": 3.5,
1320
+ "text": "c"
1321
+ },
1322
+ {
1323
+ "end": 4.5,
1324
+ "start": 4.0,
1325
+ "text": "d"
1326
+ }
1327
+ ],
1328
+ "fn": "hold_gaps",
1329
+ "input": {
1330
+ "cues": [
1331
+ {
1332
+ "end": 1.0,
1333
+ "start": 0.0,
1334
+ "text": "a"
1335
+ },
1336
+ {
1337
+ "end": 2.0,
1338
+ "start": 1.2,
1339
+ "text": "b"
1340
+ },
1341
+ {
1342
+ "end": 4.0,
1343
+ "start": 3.5,
1344
+ "text": "c"
1345
+ },
1346
+ {
1347
+ "end": 4.5,
1348
+ "start": 4.0,
1349
+ "text": "d"
1350
+ }
1351
+ ],
1352
+ "max_gap_s": 0.6
1353
+ }
1354
+ },
1355
+ {
1356
+ "expected": [
1357
+ {
1358
+ "end": 1.2,
1359
+ "start": 0.0,
1360
+ "text": "a"
1361
+ },
1362
+ {
1363
+ "end": 3.5,
1364
+ "start": 1.2,
1365
+ "text": "b"
1366
+ },
1367
+ {
1368
+ "end": 4.0,
1369
+ "start": 3.5,
1370
+ "text": "c"
1371
+ },
1372
+ {
1373
+ "end": 4.5,
1374
+ "start": 4.0,
1375
+ "text": "d"
1376
+ }
1377
+ ],
1378
+ "fn": "hold_gaps",
1379
+ "input": {
1380
+ "cues": [
1381
+ {
1382
+ "end": 1.0,
1383
+ "start": 0.0,
1384
+ "text": "a"
1385
+ },
1386
+ {
1387
+ "end": 2.0,
1388
+ "start": 1.2,
1389
+ "text": "b"
1390
+ },
1391
+ {
1392
+ "end": 4.0,
1393
+ "start": 3.5,
1394
+ "text": "c"
1395
+ },
1396
+ {
1397
+ "end": 4.5,
1398
+ "start": 4.0,
1399
+ "text": "d"
1400
+ }
1401
+ ],
1402
+ "max_gap_s": 2.0
1403
+ }
1404
+ },
1405
+ {
1406
+ "expected": [
1407
+ 15,
1408
+ 45
1409
+ ],
1410
+ "fn": "cue_frame_range",
1411
+ "input": {
1412
+ "cue": {
1413
+ "end": 1.5,
1414
+ "start": 0.5,
1415
+ "text": "x"
1416
+ },
1417
+ "fps": 30
1418
+ }
1419
+ },
1420
+ {
1421
+ "expected": [
1422
+ 1,
1423
+ 10
1424
+ ],
1425
+ "fn": "cue_frame_range",
1426
+ "input": {
1427
+ "cue": {
1428
+ "end": 0.3333,
1429
+ "start": 0.0167,
1430
+ "text": "x"
1431
+ },
1432
+ "fps": 30
1433
+ }
1434
+ },
1435
+ {
1436
+ "expected": [
1437
+ 12,
1438
+ 28
1439
+ ],
1440
+ "fn": "cue_frame_range",
1441
+ "input": {
1442
+ "cue": {
1443
+ "end": 2.75,
1444
+ "start": 1.25,
1445
+ "text": "x"
1446
+ },
1447
+ "fps": 10
1448
+ }
1449
+ },
1450
+ {
1451
+ "expected": [
1452
+ 0,
1453
+ 2
1454
+ ],
1455
+ "fn": "cue_frame_range",
1456
+ "input": {
1457
+ "cue": {
1458
+ "end": 0.15,
1459
+ "start": 0.05,
1460
+ "text": "x"
1461
+ },
1462
+ "fps": 10
1463
+ }
1464
+ },
1465
+ {
1466
+ "expected": [
1467
+ 2,
1468
+ 4
1469
+ ],
1470
+ "fn": "cue_frame_range",
1471
+ "input": {
1472
+ "cue": {
1473
+ "end": 3.5,
1474
+ "start": 2.5,
1475
+ "text": "x"
1476
+ },
1477
+ "fps": 1
1478
+ }
1479
+ },
1480
+ {
1481
+ "expected": [
1482
+ 2,
1483
+ 5
1484
+ ],
1485
+ "fn": "cue_frame_range",
1486
+ "input": {
1487
+ "cue": {
1488
+ "end": 0.2,
1489
+ "start": 0.1,
1490
+ "text": "x"
1491
+ },
1492
+ "fps": 24
1493
+ }
1494
+ },
1495
+ {
1496
+ "expected": true,
1497
+ "fn": "words_are_proportional",
1498
+ "input": {
1499
+ "min_words": 8,
1500
+ "step_max": 0.02,
1501
+ "words": [
1502
+ {
1503
+ "end": 0.3,
1504
+ "start": 0.0,
1505
+ "word": "Today"
1506
+ },
1507
+ {
1508
+ "end": 0.54,
1509
+ "start": 0.36,
1510
+ "word": "the"
1511
+ },
1512
+ {
1513
+ "end": 0.84,
1514
+ "start": 0.6,
1515
+ "word": "frog"
1516
+ },
1517
+ {
1518
+ "end": 1.14,
1519
+ "start": 0.8999999999999999,
1520
+ "word": "will"
1521
+ },
1522
+ {
1523
+ "end": 1.38,
1524
+ "start": 1.2,
1525
+ "word": "hop"
1526
+ },
1527
+ {
1528
+ "end": 1.74,
1529
+ "start": 1.44,
1530
+ "word": "three"
1531
+ },
1532
+ {
1533
+ "end": 2.04,
1534
+ "start": 1.7999999999999998,
1535
+ "word": "feet"
1536
+ },
1537
+ {
1538
+ "end": 2.2199999999999998,
1539
+ "start": 2.0999999999999996,
1540
+ "word": "to"
1541
+ },
1542
+ {
1543
+ "end": 2.46,
1544
+ "start": 2.28,
1545
+ "word": "the"
1546
+ },
1547
+ {
1548
+ "end": 2.8799999999999994,
1549
+ "start": 2.5199999999999996,
1550
+ "word": "right,"
1551
+ },
1552
+ {
1553
+ "end": 3.1199999999999997,
1554
+ "start": 2.9399999999999995,
1555
+ "word": "and"
1556
+ },
1557
+ {
1558
+ "end": 3.36,
1559
+ "start": 3.1799999999999997,
1560
+ "word": "the"
1561
+ },
1562
+ {
1563
+ "end": 3.9,
1564
+ "start": 3.42,
1565
+ "word": "elephant"
1566
+ },
1567
+ {
1568
+ "end": 4.2,
1569
+ "start": 3.96,
1570
+ "word": "will"
1571
+ },
1572
+ {
1573
+ "end": 4.62,
1574
+ "start": 4.26,
1575
+ "word": "watch."
1576
+ }
1577
+ ]
1578
+ }
1579
+ },
1580
+ {
1581
+ "expected": false,
1582
+ "fn": "words_are_proportional",
1583
+ "input": {
1584
+ "min_words": 8,
1585
+ "step_max": 0.02,
1586
+ "words": [
1587
+ {
1588
+ "end": 0.31,
1589
+ "start": 0.0,
1590
+ "word": "this"
1591
+ },
1592
+ {
1593
+ "end": 0.52,
1594
+ "start": 0.35,
1595
+ "word": "is"
1596
+ },
1597
+ {
1598
+ "end": 1.1,
1599
+ "start": 0.55,
1600
+ "word": "a"
1601
+ },
1602
+ {
1603
+ "end": 1.5,
1604
+ "start": 1.4,
1605
+ "word": "real"
1606
+ },
1607
+ {
1608
+ "end": 2.4,
1609
+ "start": 1.52,
1610
+ "word": "vendor"
1611
+ },
1612
+ {
1613
+ "end": 2.6,
1614
+ "start": 2.45,
1615
+ "word": "alignment"
1616
+ },
1617
+ {
1618
+ "end": 3.0,
1619
+ "start": 2.9,
1620
+ "word": "with"
1621
+ },
1622
+ {
1623
+ "end": 3.9,
1624
+ "start": 3.02,
1625
+ "word": "varied"
1626
+ },
1627
+ {
1628
+ "end": 4.05,
1629
+ "start": 3.95,
1630
+ "word": "word"
1631
+ },
1632
+ {
1633
+ "end": 4.7,
1634
+ "start": 4.1,
1635
+ "word": "rates"
1636
+ }
1637
+ ]
1638
+ }
1639
+ },
1640
+ {
1641
+ "expected": false,
1642
+ "fn": "words_are_proportional",
1643
+ "input": {
1644
+ "min_words": 8,
1645
+ "step_max": 0.02,
1646
+ "words": [
1647
+ {
1648
+ "end": 0.18,
1649
+ "start": 0.0,
1650
+ "word": "too"
1651
+ },
1652
+ {
1653
+ "end": 0.42,
1654
+ "start": 0.24,
1655
+ "word": "few"
1656
+ }
1657
+ ]
1658
+ }
1659
+ },
1660
+ {
1661
+ "expected": true,
1662
+ "fn": "words_are_proportional",
1663
+ "input": {
1664
+ "min_words": 8,
1665
+ "step_max": 0.02,
1666
+ "words": [
1667
+ {
1668
+ "end": 0.31,
1669
+ "start": 0.0,
1670
+ "word": "this"
1671
+ },
1672
+ {
1673
+ "end": 0.52,
1674
+ "start": 0.35,
1675
+ "word": "is"
1676
+ },
1677
+ {
1678
+ "end": 1.1,
1679
+ "start": 0.55,
1680
+ "word": "a"
1681
+ },
1682
+ {
1683
+ "alignment": "proportional",
1684
+ "end": 2,
1685
+ "start": 1,
1686
+ "word": "x"
1687
+ }
1688
+ ]
1689
+ }
1690
+ },
1691
+ {
1692
+ "expected": false,
1693
+ "fn": "words_are_proportional",
1694
+ "input": {
1695
+ "flagged": "real",
1696
+ "min_words": 8,
1697
+ "step_max": 0.02,
1698
+ "words": [
1699
+ {
1700
+ "end": 0.3,
1701
+ "start": 0.0,
1702
+ "word": "Today"
1703
+ },
1704
+ {
1705
+ "end": 0.54,
1706
+ "start": 0.36,
1707
+ "word": "the"
1708
+ },
1709
+ {
1710
+ "end": 0.84,
1711
+ "start": 0.6,
1712
+ "word": "frog"
1713
+ },
1714
+ {
1715
+ "end": 1.14,
1716
+ "start": 0.8999999999999999,
1717
+ "word": "will"
1718
+ },
1719
+ {
1720
+ "end": 1.38,
1721
+ "start": 1.2,
1722
+ "word": "hop"
1723
+ },
1724
+ {
1725
+ "end": 1.74,
1726
+ "start": 1.44,
1727
+ "word": "three"
1728
+ },
1729
+ {
1730
+ "end": 2.04,
1731
+ "start": 1.7999999999999998,
1732
+ "word": "feet"
1733
+ },
1734
+ {
1735
+ "end": 2.2199999999999998,
1736
+ "start": 2.0999999999999996,
1737
+ "word": "to"
1738
+ },
1739
+ {
1740
+ "end": 2.46,
1741
+ "start": 2.28,
1742
+ "word": "the"
1743
+ },
1744
+ {
1745
+ "end": 2.8799999999999994,
1746
+ "start": 2.5199999999999996,
1747
+ "word": "right,"
1748
+ },
1749
+ {
1750
+ "end": 3.1199999999999997,
1751
+ "start": 2.9399999999999995,
1752
+ "word": "and"
1753
+ },
1754
+ {
1755
+ "end": 3.36,
1756
+ "start": 3.1799999999999997,
1757
+ "word": "the"
1758
+ },
1759
+ {
1760
+ "end": 3.9,
1761
+ "start": 3.42,
1762
+ "word": "elephant"
1763
+ },
1764
+ {
1765
+ "end": 4.2,
1766
+ "start": 3.96,
1767
+ "word": "will"
1768
+ },
1769
+ {
1770
+ "end": 4.62,
1771
+ "start": 4.26,
1772
+ "word": "watch."
1773
+ }
1774
+ ]
1775
+ }
1776
+ },
1777
+ {
1778
+ "expected": {
1779
+ "error": "transcription returned no words"
1780
+ },
1781
+ "fn": "check_words",
1782
+ "input": {
1783
+ "words": []
1784
+ }
1785
+ },
1786
+ {
1787
+ "expected": {
1788
+ "ok": true
1789
+ },
1790
+ "fn": "check_words",
1791
+ "input": {
1792
+ "words": [
1793
+ {
1794
+ "end": 0.25,
1795
+ "start": 0.0,
1796
+ "word": "Ready?"
1797
+ },
1798
+ {
1799
+ "end": 0.55,
1800
+ "start": 0.3,
1801
+ "word": "One,"
1802
+ },
1803
+ {
1804
+ "end": 0.85,
1805
+ "start": 0.6,
1806
+ "word": "two,"
1807
+ },
1808
+ {
1809
+ "end": 1.15,
1810
+ "start": 0.9,
1811
+ "word": "three"
1812
+ },
1813
+ {
1814
+ "end": 1.45,
1815
+ "start": 1.2,
1816
+ "word": "small"
1817
+ },
1818
+ {
1819
+ "end": 1.75,
1820
+ "start": 1.5,
1821
+ "word": "hops,"
1822
+ },
1823
+ {
1824
+ "end": 2.05,
1825
+ "start": 1.8,
1826
+ "word": "and"
1827
+ },
1828
+ {
1829
+ "end": 2.35,
1830
+ "start": 2.1,
1831
+ "word": "it"
1832
+ },
1833
+ {
1834
+ "end": 2.65,
1835
+ "start": 2.4,
1836
+ "word": "is"
1837
+ },
1838
+ {
1839
+ "end": 2.95,
1840
+ "start": 2.7,
1841
+ "word": "done."
1842
+ }
1843
+ ]
1844
+ }
1845
+ },
1846
+ {
1847
+ "expected": {
1848
+ "error": "word 0 ('a') ends before it starts (1.0 > 0.5)"
1849
+ },
1850
+ "fn": "check_words",
1851
+ "input": {
1852
+ "words": [
1853
+ {
1854
+ "end": 0.5,
1855
+ "start": 1.0,
1856
+ "word": "a"
1857
+ }
1858
+ ]
1859
+ }
1860
+ },
1861
+ {
1862
+ "expected": {
1863
+ "error": "words are not in time order: word 1 ('b') starts at 0.4, before 1.0"
1864
+ },
1865
+ "fn": "check_words",
1866
+ "input": {
1867
+ "words": [
1868
+ {
1869
+ "end": 1.5,
1870
+ "start": 1.0,
1871
+ "word": "a"
1872
+ },
1873
+ {
1874
+ "end": 0.9,
1875
+ "start": 0.4,
1876
+ "word": "b"
1877
+ }
1878
+ ]
1879
+ }
1880
+ }
1881
+ ]