Skip to content

Commit 344af32

Browse files
committed
Formatting
1 parent ea73289 commit 344af32

File tree

1 file changed

+89
-88
lines changed

1 file changed

+89
-88
lines changed

tests/tokenizers.test.js

Lines changed: 89 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -523,94 +523,95 @@ describe('Decode ASR', () => {
523523
const target = [
524524
" DO IT! Just DO IT! Don't let your dreams be dreams. Yesterday you said tomorrow, so just DO IT! MAKE YOUR dreams! COME TRUE! JUST DO IT! Some people dream success while you're gonna wake up and work hard at it. Nothing is impossible. You should get to the point where anyone else would quit and you're not gonna stop there. No, what are you waiting for? Do it! Just do it! Yes you can! Just do it! If you're tired of starting over, stop giving up.",
525525
{
526-
'chunks': [
527-
{ 'text': ' DO', 'timestamp': [0.0, 3.78] },
528-
{ 'text': ' IT!', 'timestamp': [3.78, 4.24 /* 5.34 */] },
529-
{ 'text': ' Just', 'timestamp': [5.34, 6.04] },
530-
{ 'text': ' DO', 'timestamp': [6.04, 6.56] },
531-
{ 'text': ' IT!', 'timestamp': [6.56, 7.02 /* 7.92 */] },
532-
{ 'text': " Don't", 'timestamp': [7.92, 8.58] },
533-
{ 'text': ' let', 'timestamp': [8.58, 8.88] },
534-
{ 'text': ' your', 'timestamp': [8.88, 9.14] },
535-
{ 'text': ' dreams', 'timestamp': [9.14, 9.54] },
536-
{ 'text': ' be', 'timestamp': [9.54, 9.94] },
537-
{ 'text': ' dreams.', 'timestamp': [9.94, 10.6 /* 11.38 */] },
538-
{ 'text': ' Yesterday', 'timestamp': [11.38, 11.88] },
539-
{ 'text': ' you', 'timestamp': [11.88, 12.42] },
540-
{ 'text': ' said', 'timestamp': [12.42, 12.62] },
541-
{ 'text': ' tomorrow,', 'timestamp': [12.62, 13.02 /* 13.36 */] },
542-
{ 'text': ' so', 'timestamp': [13.36, 13.64] },
543-
{ 'text': ' just', 'timestamp': [13.64, 14.26] },
544-
{ 'text': ' DO', 'timestamp': [14.26, 14.76] },
545-
{ 'text': ' IT!', 'timestamp': [14.76, 15.14 /* 15.4 */] },
546-
{ 'text': ' MAKE', 'timestamp': [15.4, 15.74] },
547-
{ 'text': ' YOUR', 'timestamp': [15.74, 16.12] },
548-
{ 'text': ' dreams!', 'timestamp': [16.12, 16.68 /* 17.14 */] },
549-
{ 'text': ' COME', 'timestamp': [17.14, 17.24] },
550-
{ 'text': ' TRUE!', 'timestamp': [17.24, 17.74 /* 18.38 */] },
551-
{ 'text': ' JUST', 'timestamp': [18.38, 18.6] },
552-
{ 'text': ' DO', 'timestamp': [18.6, 19.38] },
553-
{ 'text': ' IT!', 'timestamp': [19.38, 19.94 /* 22.66 */] },
554-
{ 'text': ' Some', 'timestamp': [22.66, 22.9] },
555-
{ 'text': ' people', 'timestamp': [22.9, 23.24] },
556-
{ 'text': ' dream', 'timestamp': [23.24, 23.5] },
557-
{ 'text': ' success', 'timestamp': [23.5, 24.14] },
558-
{ 'text': ' while', 'timestamp': [24.14, 24.56] },
559-
{ 'text': " you're", 'timestamp': [24.56, 24.72] },
560-
{ 'text': ' gonna', 'timestamp': [24.72, 24.94] },
561-
{ 'text': ' wake', 'timestamp': [24.94, 25.18] },
562-
{ 'text': ' up', 'timestamp': [25.18, 25.54] },
563-
{ 'text': ' and', 'timestamp': [25.54, 25.72] },
564-
{ 'text': ' work', 'timestamp': [25.72, 26.04] },
565-
{ 'text': ' hard', 'timestamp': [26.04, 26.34] },
566-
{ 'text': ' at', 'timestamp': [26.34, 26.46] },
567-
{ 'text': ' it.', 'timestamp': [26.46, 26.86 /* 27.04 */] },
568-
{ 'text': ' Nothing', 'timestamp': [27.04, 27.16] },
569-
{ 'text': ' is', 'timestamp': [27.16, 27.54] },
570-
{ 'text': ' impossible.', 'timestamp': [27.54, 28.14 /* 30.16 */] },
571-
{ 'text': ' You', 'timestamp': [30.16, 30.7] },
572-
{ 'text': ' should', 'timestamp': [30.7, 30.9] },
573-
{ 'text': ' get', 'timestamp': [30.9, 31.12] },
574-
{ 'text': ' to', 'timestamp': [31.12, 31.24] },
575-
{ 'text': ' the', 'timestamp': [31.24, 31.48] },
576-
{ 'text': ' point', 'timestamp': [31.48, 31.84] },
577-
{ 'text': ' where', 'timestamp': [31.84, 32.44] },
578-
{ 'text': ' anyone', 'timestamp': [32.44, 32.82] },
579-
{ 'text': ' else', 'timestamp': [32.82, 33.2] },
580-
{ 'text': ' would', 'timestamp': [33.2, 33.46] },
581-
{ 'text': ' quit', 'timestamp': [33.46, 33.72] },
582-
{ 'text': ' and', 'timestamp': [33.72, 34.06] },
583-
{ 'text': " you're", 'timestamp': [34.06, 34.34] },
584-
{ 'text': ' not', 'timestamp': [34.34, 34.56] },
585-
{ 'text': ' gonna', 'timestamp': [34.56, 34.8] },
586-
{ 'text': ' stop', 'timestamp': [34.8, 35.16] },
587-
{ 'text': ' there.', 'timestamp': [35.16, 35.92 /* 36.42 */] },
588-
{ 'text': ' No,', 'timestamp': [36.42, 36.84 /* 36.86 */] },
589-
{ 'text': ' what', 'timestamp': [36.86, 37.02] },
590-
{ 'text': ' are', 'timestamp': [37.02, 37.1] },
591-
{ 'text': ' you', 'timestamp': [37.1, 37.22] },
592-
{ 'text': ' waiting', 'timestamp': [37.22, 37.56] },
593-
{ 'text': ' for?', 'timestamp': [37.56, 38.08 /* 39.28 */] },
594-
{ 'text': ' Do', 'timestamp': [39.28, 39.62] },
595-
{ 'text': ' it!', 'timestamp': [39.62, 40.28 /* 41.96 */] },
596-
{ 'text': ' Just', 'timestamp': [41.96, 42.64] },
597-
{ 'text': ' do', 'timestamp': [42.64, 44.28] },
598-
{ 'text': ' it!', 'timestamp': [44.28, 44.78 /* 45.18 */] },
599-
{ 'text': ' Yes', 'timestamp': [45.18, 45.56] },
600-
{ 'text': ' you', 'timestamp': [45.56, 45.78] },
601-
{ 'text': ' can!', 'timestamp': [45.8, 46.34 /* 47.12 */] },
602-
{ 'text': ' Just', 'timestamp': [47.12, 47.56] },
603-
{ 'text': ' do', 'timestamp': [47.56, 47.8] },
604-
{ 'text': ' it!', 'timestamp': [47.8, 48.92 /* 50.92 */] },
605-
{ 'text': ' If', 'timestamp': [50.92, 52.96] },
606-
{ 'text': " you're", 'timestamp': [52.96, 53.28] },
607-
{ 'text': ' tired', 'timestamp': [53.28, 53.44] },
608-
{ 'text': ' of', 'timestamp': [53.44, 53.72] },
609-
{ 'text': ' starting', 'timestamp': [53.72, 53.96] },
610-
{ 'text': ' over,', 'timestamp': [53.96, 54.86 /* 55.5 */] },
611-
{ 'text': ' stop', 'timestamp': [55.5, 56.06] },
612-
{ 'text': ' giving', 'timestamp': [56.06, 56.86] },
613-
{ 'text': ' up.', 'timestamp': [56.86, 57.9 /* 60.92 */] }]
526+
chunks: [
527+
{ text: ' DO', timestamp: [0.0, 3.78] },
528+
{ text: ' IT!', timestamp: [3.78, 4.24 /* 5.34 */] },
529+
{ text: ' Just', timestamp: [5.34, 6.04] },
530+
{ text: ' DO', timestamp: [6.04, 6.56] },
531+
{ text: ' IT!', timestamp: [6.56, 7.02 /* 7.92 */] },
532+
{ text: " Don't", timestamp: [7.92, 8.58] },
533+
{ text: ' let', timestamp: [8.58, 8.88] },
534+
{ text: ' your', timestamp: [8.88, 9.14] },
535+
{ text: ' dreams', timestamp: [9.14, 9.54] },
536+
{ text: ' be', timestamp: [9.54, 9.94] },
537+
{ text: ' dreams.', timestamp: [9.94, 10.6 /* 11.38 */] },
538+
{ text: ' Yesterday', timestamp: [11.38, 11.88] },
539+
{ text: ' you', timestamp: [11.88, 12.42] },
540+
{ text: ' said', timestamp: [12.42, 12.62] },
541+
{ text: ' tomorrow,', timestamp: [12.62, 13.02 /* 13.36 */] },
542+
{ text: ' so', timestamp: [13.36, 13.64] },
543+
{ text: ' just', timestamp: [13.64, 14.26] },
544+
{ text: ' DO', timestamp: [14.26, 14.76] },
545+
{ text: ' IT!', timestamp: [14.76, 15.14 /* 15.4 */] },
546+
{ text: ' MAKE', timestamp: [15.4, 15.74] },
547+
{ text: ' YOUR', timestamp: [15.74, 16.12] },
548+
{ text: ' dreams!', timestamp: [16.12, 16.68 /* 17.14 */] },
549+
{ text: ' COME', timestamp: [17.14, 17.24] },
550+
{ text: ' TRUE!', timestamp: [17.24, 17.74 /* 18.38 */] },
551+
{ text: ' JUST', timestamp: [18.38, 18.6] },
552+
{ text: ' DO', timestamp: [18.6, 19.38] },
553+
{ text: ' IT!', timestamp: [19.38, 19.94 /* 22.66 */] },
554+
{ text: ' Some', timestamp: [22.66, 22.9] },
555+
{ text: ' people', timestamp: [22.9, 23.24] },
556+
{ text: ' dream', timestamp: [23.24, 23.5] },
557+
{ text: ' success', timestamp: [23.5, 24.14] },
558+
{ text: ' while', timestamp: [24.14, 24.56] },
559+
{ text: " you're", timestamp: [24.56, 24.72] },
560+
{ text: ' gonna', timestamp: [24.72, 24.94] },
561+
{ text: ' wake', timestamp: [24.94, 25.18] },
562+
{ text: ' up', timestamp: [25.18, 25.54] },
563+
{ text: ' and', timestamp: [25.54, 25.72] },
564+
{ text: ' work', timestamp: [25.72, 26.04] },
565+
{ text: ' hard', timestamp: [26.04, 26.34] },
566+
{ text: ' at', timestamp: [26.34, 26.46] },
567+
{ text: ' it.', timestamp: [26.46, 26.86 /* 27.04 */] },
568+
{ text: ' Nothing', timestamp: [27.04, 27.16] },
569+
{ text: ' is', timestamp: [27.16, 27.54] },
570+
{ text: ' impossible.', timestamp: [27.54, 28.14 /* 30.16 */] },
571+
{ text: ' You', timestamp: [30.16, 30.7] },
572+
{ text: ' should', timestamp: [30.7, 30.9] },
573+
{ text: ' get', timestamp: [30.9, 31.12] },
574+
{ text: ' to', timestamp: [31.12, 31.24] },
575+
{ text: ' the', timestamp: [31.24, 31.48] },
576+
{ text: ' point', timestamp: [31.48, 31.84] },
577+
{ text: ' where', timestamp: [31.84, 32.44] },
578+
{ text: ' anyone', timestamp: [32.44, 32.82] },
579+
{ text: ' else', timestamp: [32.82, 33.2] },
580+
{ text: ' would', timestamp: [33.2, 33.46] },
581+
{ text: ' quit', timestamp: [33.46, 33.72] },
582+
{ text: ' and', timestamp: [33.72, 34.06] },
583+
{ text: " you're", timestamp: [34.06, 34.34] },
584+
{ text: ' not', timestamp: [34.34, 34.56] },
585+
{ text: ' gonna', timestamp: [34.56, 34.8] },
586+
{ text: ' stop', timestamp: [34.8, 35.16] },
587+
{ text: ' there.', timestamp: [35.16, 35.92 /* 36.42 */] },
588+
{ text: ' No,', timestamp: [36.42, 36.84 /* 36.86 */] },
589+
{ text: ' what', timestamp: [36.86, 37.02] },
590+
{ text: ' are', timestamp: [37.02, 37.1] },
591+
{ text: ' you', timestamp: [37.1, 37.22] },
592+
{ text: ' waiting', timestamp: [37.22, 37.56] },
593+
{ text: ' for?', timestamp: [37.56, 38.08 /* 39.28 */] },
594+
{ text: ' Do', timestamp: [39.28, 39.62] },
595+
{ text: ' it!', timestamp: [39.62, 40.28 /* 41.96 */] },
596+
{ text: ' Just', timestamp: [41.96, 42.64] },
597+
{ text: ' do', timestamp: [42.64, 44.28] },
598+
{ text: ' it!', timestamp: [44.28, 44.78 /* 45.18 */] },
599+
{ text: ' Yes', timestamp: [45.18, 45.56] },
600+
{ text: ' you', timestamp: [45.56, 45.78] },
601+
{ text: ' can!', timestamp: [45.8, 46.34 /* 47.12 */] },
602+
{ text: ' Just', timestamp: [47.12, 47.56] },
603+
{ text: ' do', timestamp: [47.56, 47.8] },
604+
{ text: ' it!', timestamp: [47.8, 48.92 /* 50.92 */] },
605+
{ text: ' If', timestamp: [50.92, 52.96] },
606+
{ text: " you're", timestamp: [52.96, 53.28] },
607+
{ text: ' tired', timestamp: [53.28, 53.44] },
608+
{ text: ' of', timestamp: [53.44, 53.72] },
609+
{ text: ' starting', timestamp: [53.72, 53.96] },
610+
{ text: ' over,', timestamp: [53.96, 54.86 /* 55.5 */] },
611+
{ text: ' stop', timestamp: [55.5, 56.06] },
612+
{ text: ' giving', timestamp: [56.06, 56.86] },
613+
{ text: ' up.', timestamp: [56.86, 57.9 /* 60.92 */] }
614+
]
614615
}
615616
]
616617

0 commit comments

Comments
 (0)