@remotion/openai-whisper 4.0.250 → 4.0.252

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.
@@ -17,7 +17,7 @@ export interface TranscriptionSegment {
17
17
  }
18
18
  export interface OpenAiVerboseTranscription {
19
19
  duration: number | string;
20
- task?: string;
20
+ task?: 'transcribe';
21
21
  language: string;
22
22
  text: string;
23
23
  segments?: Array<TranscriptionSegment>;
@@ -4,11 +4,15 @@ exports.openAiWhisperApiToCaptions = void 0;
4
4
  const openAiWhisperApiToCaptions = ({ transcription, }) => {
5
5
  const captions = [];
6
6
  if (!transcription.words) {
7
+ if (transcription.task && transcription.task !== 'transcribe') {
8
+ throw new Error(`The transcription does need to be a "transcribe" task. The input you gave is "task": "${transcription.task}"`);
9
+ }
7
10
  throw new Error('The transcription does need to be been generated with `timestamp_granularities: ["word"]`');
8
11
  }
9
12
  let remainingText = transcription.text;
10
13
  for (const word of transcription.words) {
11
- const match = new RegExp(`^([\\s\\.]{0,4})${word.word.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}([\\?,\\.\\%\\–\\!\\;\\:\\'\\"\\-\\_\\(\\)\\[\\]\\{\\}\\@\\#\\$\\^\\&\\*\\+\\=\\/\\|\\<\\>\\~\`]{0,3})?`).exec(remainingText);
14
+ const punctuation = `\\?,\\.\\%\\–\\!\\;\\:\\'\\"\\-\\_\\(\\)\\[\\]\\{\\}\\@\\#\\$\\^\\&\\*\\+\\=\\/\\|\\<\\>\\~\``;
15
+ const match = new RegExp(`^([\\s${punctuation}]{0,4})${word.word.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}([${punctuation}]{0,3})?`).exec(remainingText);
12
16
  if (!match) {
13
17
  throw new Error(`Unable to parse punctuation from OpenAI Whisper output. Could not find word "${word.word}" in text "${remainingText.slice(0, 100)}". File an issue under https://remotion.dev/issue to ask for a fix.`);
14
18
  }
@@ -1,5 +1,5 @@
1
1
  export declare const testOutput: {
2
- task: string;
2
+ task: "transcribe";
3
3
  language: string;
4
4
  duration: number;
5
5
  text: string;
@@ -0,0 +1,2 @@
1
+ import type { OpenAiVerboseTranscription } from '../openai-format';
2
+ export declare const transcript: OpenAiVerboseTranscription;
@@ -0,0 +1,1127 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.transcript = void 0;
4
+ /* eslint-disable no-loss-of-precision */
5
+ const bun_test_1 = require("bun:test");
6
+ const openai_whisper_api_to_captions_1 = require("../openai-whisper-api-to-captions");
7
+ exports.transcript = {
8
+ task: 'transcribe',
9
+ language: 'english',
10
+ duration: 65.66000366210938,
11
+ text: "NVIDIA might just have changed computing forever by launching Digits, the world's first personal AI supercomputer. Imagine taking the world's biggest supercomputers, the ones present in massive research labs, shrinking it down and putting it on your desk. That's exactly what NVIDIA managed to do with this tiny box. But the real question is, how did they pull this off? Well, the secret is this incredible chip called the GB10 Grace Blackwell. They combined a super powerful GPU with a 20-core CPU and gave us a device that can handle up to 200 million parameters. Not just this, you can even connect two of these together and handle a whopping 405 billion parameters. It's insane. And if we are talking specs, it's packed with 128 GB of memory and can store up to 4 TB of data, ensuring you never run out of resources. But here's the craziest part. All of this runs on a regular power outlet, the same kind you use to charge your phone. Now, all this won't come cheap, obviously. So it's launching for $3,000 in May 2025. But remember, we're talking about innovation that we've never seen before. Think about it. Developers, researchers and students can now have supercomputer-level power in their home. It's crazy, but what do you think? Are you getting one?",
12
+ words: [
13
+ {
14
+ word: 'NVIDIA',
15
+ start: 0,
16
+ end: 0.4399999976158142,
17
+ },
18
+ {
19
+ word: 'might',
20
+ start: 0.4399999976158142,
21
+ end: 0.6800000071525574,
22
+ },
23
+ {
24
+ word: 'just',
25
+ start: 0.6800000071525574,
26
+ end: 0.8999999761581421,
27
+ },
28
+ {
29
+ word: 'have',
30
+ start: 0.8999999761581421,
31
+ end: 1.1200000047683716,
32
+ },
33
+ {
34
+ word: 'changed',
35
+ start: 1.1200000047683716,
36
+ end: 1.399999976158142,
37
+ },
38
+ {
39
+ word: 'computing',
40
+ start: 1.399999976158142,
41
+ end: 1.840000033378601,
42
+ },
43
+ {
44
+ word: 'forever',
45
+ start: 1.840000033378601,
46
+ end: 2.299999952316284,
47
+ },
48
+ {
49
+ word: 'by',
50
+ start: 2.299999952316284,
51
+ end: 2.619999885559082,
52
+ },
53
+ {
54
+ word: 'launching',
55
+ start: 2.619999885559082,
56
+ end: 3,
57
+ },
58
+ {
59
+ word: 'Digits',
60
+ start: 3,
61
+ end: 3.5,
62
+ },
63
+ {
64
+ word: 'the',
65
+ start: 3.740000009536743,
66
+ end: 3.819999933242798,
67
+ },
68
+ {
69
+ word: "world's",
70
+ start: 3.819999933242798,
71
+ end: 4.139999866485596,
72
+ },
73
+ {
74
+ word: 'first',
75
+ start: 4.139999866485596,
76
+ end: 4.5,
77
+ },
78
+ {
79
+ word: 'personal',
80
+ start: 4.5,
81
+ end: 4.980000019073486,
82
+ },
83
+ {
84
+ word: 'AI',
85
+ start: 4.980000019073486,
86
+ end: 5.400000095367432,
87
+ },
88
+ {
89
+ word: 'supercomputer',
90
+ start: 5.400000095367432,
91
+ end: 6.019999980926514,
92
+ },
93
+ {
94
+ word: 'Imagine',
95
+ start: 6.199999809265137,
96
+ end: 6.480000019073486,
97
+ },
98
+ {
99
+ word: 'taking',
100
+ start: 6.480000019073486,
101
+ end: 6.71999979019165,
102
+ },
103
+ {
104
+ word: 'the',
105
+ start: 6.71999979019165,
106
+ end: 6.980000019073486,
107
+ },
108
+ {
109
+ word: "world's",
110
+ start: 6.980000019073486,
111
+ end: 7.360000133514404,
112
+ },
113
+ {
114
+ word: 'biggest',
115
+ start: 7.360000133514404,
116
+ end: 7.679999828338623,
117
+ },
118
+ {
119
+ word: 'supercomputers',
120
+ start: 7.679999828338623,
121
+ end: 8.539999961853027,
122
+ },
123
+ {
124
+ word: 'the',
125
+ start: 8.819999694824219,
126
+ end: 8.84000015258789,
127
+ },
128
+ {
129
+ word: 'ones',
130
+ start: 8.84000015258789,
131
+ end: 9.140000343322754,
132
+ },
133
+ {
134
+ word: 'present',
135
+ start: 9.140000343322754,
136
+ end: 9.520000457763672,
137
+ },
138
+ {
139
+ word: 'in',
140
+ start: 9.520000457763672,
141
+ end: 9.800000190734863,
142
+ },
143
+ {
144
+ word: 'massive',
145
+ start: 9.800000190734863,
146
+ end: 10.180000305175781,
147
+ },
148
+ {
149
+ word: 'research',
150
+ start: 10.180000305175781,
151
+ end: 10.600000381469727,
152
+ },
153
+ {
154
+ word: 'labs',
155
+ start: 10.600000381469727,
156
+ end: 10.960000038146973,
157
+ },
158
+ {
159
+ word: 'shrinking',
160
+ start: 11.279999732971191,
161
+ end: 11.479999542236328,
162
+ },
163
+ {
164
+ word: 'it',
165
+ start: 11.479999542236328,
166
+ end: 11.779999732971191,
167
+ },
168
+ {
169
+ word: 'down',
170
+ start: 11.779999732971191,
171
+ end: 12.079999923706055,
172
+ },
173
+ {
174
+ word: 'and',
175
+ start: 12.079999923706055,
176
+ end: 12.399999618530273,
177
+ },
178
+ {
179
+ word: 'putting',
180
+ start: 12.399999618530273,
181
+ end: 12.5600004196167,
182
+ },
183
+ {
184
+ word: 'it',
185
+ start: 12.5600004196167,
186
+ end: 12.699999809265137,
187
+ },
188
+ {
189
+ word: 'on',
190
+ start: 12.699999809265137,
191
+ end: 12.800000190734863,
192
+ },
193
+ {
194
+ word: 'your',
195
+ start: 12.800000190734863,
196
+ end: 13.180000305175781,
197
+ },
198
+ {
199
+ word: 'desk',
200
+ start: 13.180000305175781,
201
+ end: 13.220000267028809,
202
+ },
203
+ {
204
+ word: "That's",
205
+ start: 13.34000015258789,
206
+ end: 13.600000381469727,
207
+ },
208
+ {
209
+ word: 'exactly',
210
+ start: 13.600000381469727,
211
+ end: 13.920000076293945,
212
+ },
213
+ {
214
+ word: 'what',
215
+ start: 13.920000076293945,
216
+ end: 14.140000343322754,
217
+ },
218
+ {
219
+ word: 'NVIDIA',
220
+ start: 14.140000343322754,
221
+ end: 14.399999618530273,
222
+ },
223
+ {
224
+ word: 'managed',
225
+ start: 14.399999618530273,
226
+ end: 14.720000267028809,
227
+ },
228
+ {
229
+ word: 'to',
230
+ start: 14.720000267028809,
231
+ end: 14.880000114440918,
232
+ },
233
+ {
234
+ word: 'do',
235
+ start: 14.880000114440918,
236
+ end: 14.979999542236328,
237
+ },
238
+ {
239
+ word: 'with',
240
+ start: 14.979999542236328,
241
+ end: 15.100000381469727,
242
+ },
243
+ {
244
+ word: 'this',
245
+ start: 15.100000381469727,
246
+ end: 15.260000228881836,
247
+ },
248
+ {
249
+ word: 'tiny',
250
+ start: 15.260000228881836,
251
+ end: 15.579999923706055,
252
+ },
253
+ {
254
+ word: 'box',
255
+ start: 15.579999923706055,
256
+ end: 15.880000114440918,
257
+ },
258
+ {
259
+ word: 'But',
260
+ start: 16,
261
+ end: 16.15999984741211,
262
+ },
263
+ {
264
+ word: 'the',
265
+ start: 16.15999984741211,
266
+ end: 16.299999237060547,
267
+ },
268
+ {
269
+ word: 'real',
270
+ start: 16.299999237060547,
271
+ end: 16.700000762939453,
272
+ },
273
+ {
274
+ word: 'question',
275
+ start: 16.700000762939453,
276
+ end: 16.899999618530273,
277
+ },
278
+ {
279
+ word: 'is',
280
+ start: 16.899999618530273,
281
+ end: 17.239999771118164,
282
+ },
283
+ {
284
+ word: 'how',
285
+ start: 17.34000015258789,
286
+ end: 17.399999618530273,
287
+ },
288
+ {
289
+ word: 'did',
290
+ start: 17.399999618530273,
291
+ end: 17.559999465942383,
292
+ },
293
+ {
294
+ word: 'they',
295
+ start: 17.559999465942383,
296
+ end: 17.700000762939453,
297
+ },
298
+ {
299
+ word: 'pull',
300
+ start: 17.700000762939453,
301
+ end: 17.940000534057617,
302
+ },
303
+ {
304
+ word: 'this',
305
+ start: 17.940000534057617,
306
+ end: 18.18000030517578,
307
+ },
308
+ {
309
+ word: 'off',
310
+ start: 18.18000030517578,
311
+ end: 18.3799991607666,
312
+ },
313
+ {
314
+ word: 'Well',
315
+ start: 18.5,
316
+ end: 18.760000228881836,
317
+ },
318
+ {
319
+ word: 'the',
320
+ start: 18.860000610351562,
321
+ end: 19.18000030517578,
322
+ },
323
+ {
324
+ word: 'secret',
325
+ start: 19.18000030517578,
326
+ end: 19.34000015258789,
327
+ },
328
+ {
329
+ word: 'is',
330
+ start: 19.34000015258789,
331
+ end: 19.559999465942383,
332
+ },
333
+ {
334
+ word: 'this',
335
+ start: 19.559999465942383,
336
+ end: 19.799999237060547,
337
+ },
338
+ {
339
+ word: 'incredible',
340
+ start: 19.799999237060547,
341
+ end: 20.420000076293945,
342
+ },
343
+ {
344
+ word: 'chip',
345
+ start: 20.420000076293945,
346
+ end: 20.65999984741211,
347
+ },
348
+ {
349
+ word: 'called',
350
+ start: 20.65999984741211,
351
+ end: 20.959999084472656,
352
+ },
353
+ {
354
+ word: 'the',
355
+ start: 20.959999084472656,
356
+ end: 21.280000686645508,
357
+ },
358
+ {
359
+ word: 'GB10',
360
+ start: 21.280000686645508,
361
+ end: 21.920000076293945,
362
+ },
363
+ {
364
+ word: 'Grace',
365
+ start: 21.920000076293945,
366
+ end: 22.34000015258789,
367
+ },
368
+ {
369
+ word: 'Blackwell',
370
+ start: 22.34000015258789,
371
+ end: 22.719999313354492,
372
+ },
373
+ {
374
+ word: 'They',
375
+ start: 22.799999237060547,
376
+ end: 23.020000457763672,
377
+ },
378
+ {
379
+ word: 'combined',
380
+ start: 23.020000457763672,
381
+ end: 23.360000610351562,
382
+ },
383
+ {
384
+ word: 'a',
385
+ start: 23.360000610351562,
386
+ end: 23.700000762939453,
387
+ },
388
+ {
389
+ word: 'super',
390
+ start: 23.700000762939453,
391
+ end: 23.899999618530273,
392
+ },
393
+ {
394
+ word: 'powerful',
395
+ start: 23.899999618530273,
396
+ end: 24.100000381469727,
397
+ },
398
+ {
399
+ word: 'GPU',
400
+ start: 24.100000381469727,
401
+ end: 24.520000457763672,
402
+ },
403
+ {
404
+ word: 'with',
405
+ start: 24.520000457763672,
406
+ end: 24.780000686645508,
407
+ },
408
+ {
409
+ word: 'a',
410
+ start: 24.780000686645508,
411
+ end: 25.020000457763672,
412
+ },
413
+ {
414
+ word: '20',
415
+ start: 25.020000457763672,
416
+ end: 25.299999237060547,
417
+ },
418
+ {
419
+ word: 'core',
420
+ start: 25.299999237060547,
421
+ end: 25.360000610351562,
422
+ },
423
+ {
424
+ word: 'CPU',
425
+ start: 25.360000610351562,
426
+ end: 25.739999771118164,
427
+ },
428
+ {
429
+ word: 'and',
430
+ start: 25.739999771118164,
431
+ end: 26.1200008392334,
432
+ },
433
+ {
434
+ word: 'gave',
435
+ start: 26.1200008392334,
436
+ end: 26.260000228881836,
437
+ },
438
+ {
439
+ word: 'us',
440
+ start: 26.260000228881836,
441
+ end: 26.399999618530273,
442
+ },
443
+ {
444
+ word: 'a',
445
+ start: 26.399999618530273,
446
+ end: 26.81999969482422,
447
+ },
448
+ {
449
+ word: 'device',
450
+ start: 26.81999969482422,
451
+ end: 26.81999969482422,
452
+ },
453
+ {
454
+ word: 'that',
455
+ start: 26.81999969482422,
456
+ end: 27.040000915527344,
457
+ },
458
+ {
459
+ word: 'can',
460
+ start: 27.040000915527344,
461
+ end: 27.440000534057617,
462
+ },
463
+ {
464
+ word: 'handle',
465
+ start: 27.440000534057617,
466
+ end: 27.440000534057617,
467
+ },
468
+ {
469
+ word: 'up',
470
+ start: 27.440000534057617,
471
+ end: 27.600000381469727,
472
+ },
473
+ {
474
+ word: 'to',
475
+ start: 27.600000381469727,
476
+ end: 27.799999237060547,
477
+ },
478
+ {
479
+ word: '200',
480
+ start: 27.799999237060547,
481
+ end: 28.3799991607666,
482
+ },
483
+ {
484
+ word: 'million',
485
+ start: 28.3799991607666,
486
+ end: 28.68000030517578,
487
+ },
488
+ {
489
+ word: 'parameters',
490
+ start: 28.68000030517578,
491
+ end: 29.139999389648438,
492
+ },
493
+ {
494
+ word: 'Not',
495
+ start: 29.139999389648438,
496
+ end: 29.6200008392334,
497
+ },
498
+ {
499
+ word: 'just',
500
+ start: 29.6200008392334,
501
+ end: 29.860000610351562,
502
+ },
503
+ {
504
+ word: 'this',
505
+ start: 29.860000610351562,
506
+ end: 30.18000030517578,
507
+ },
508
+ {
509
+ word: 'you',
510
+ start: 30.360000610351562,
511
+ end: 30.399999618530273,
512
+ },
513
+ {
514
+ word: 'can',
515
+ start: 30.399999618530273,
516
+ end: 30.520000457763672,
517
+ },
518
+ {
519
+ word: 'even',
520
+ start: 30.520000457763672,
521
+ end: 31,
522
+ },
523
+ {
524
+ word: 'connect',
525
+ start: 31,
526
+ end: 31,
527
+ },
528
+ {
529
+ word: 'two',
530
+ start: 31,
531
+ end: 31.239999771118164,
532
+ },
533
+ {
534
+ word: 'of',
535
+ start: 31.239999771118164,
536
+ end: 31.420000076293945,
537
+ },
538
+ {
539
+ word: 'these',
540
+ start: 31.420000076293945,
541
+ end: 31.540000915527344,
542
+ },
543
+ {
544
+ word: 'together',
545
+ start: 31.540000915527344,
546
+ end: 31.8799991607666,
547
+ },
548
+ {
549
+ word: 'and',
550
+ start: 31.8799991607666,
551
+ end: 32.18000030517578,
552
+ },
553
+ {
554
+ word: 'handle',
555
+ start: 32.18000030517578,
556
+ end: 32.400001525878906,
557
+ },
558
+ {
559
+ word: 'a',
560
+ start: 32.400001525878906,
561
+ end: 32.540000915527344,
562
+ },
563
+ {
564
+ word: 'whopping',
565
+ start: 32.540000915527344,
566
+ end: 32.81999969482422,
567
+ },
568
+ {
569
+ word: '405',
570
+ start: 32.81999969482422,
571
+ end: 33.560001373291016,
572
+ },
573
+ {
574
+ word: 'billion',
575
+ start: 33.560001373291016,
576
+ end: 33.79999923706055,
577
+ },
578
+ {
579
+ word: 'parameters',
580
+ start: 33.79999923706055,
581
+ end: 34.31999969482422,
582
+ },
583
+ {
584
+ word: "It's",
585
+ start: 34.68000030517578,
586
+ end: 34.81999969482422,
587
+ },
588
+ {
589
+ word: 'insane',
590
+ start: 34.81999969482422,
591
+ end: 35.34000015258789,
592
+ },
593
+ {
594
+ word: 'And',
595
+ start: 35.560001373291016,
596
+ end: 35.65999984741211,
597
+ },
598
+ {
599
+ word: 'if',
600
+ start: 35.65999984741211,
601
+ end: 35.7599983215332,
602
+ },
603
+ {
604
+ word: 'we',
605
+ start: 35.7599983215332,
606
+ end: 35.86000061035156,
607
+ },
608
+ {
609
+ word: 'are',
610
+ start: 35.86000061035156,
611
+ end: 36.220001220703125,
612
+ },
613
+ {
614
+ word: 'talking',
615
+ start: 36.220001220703125,
616
+ end: 36.2599983215332,
617
+ },
618
+ {
619
+ word: 'specs',
620
+ start: 36.2599983215332,
621
+ end: 36.65999984741211,
622
+ },
623
+ {
624
+ word: "it's",
625
+ start: 36.97999954223633,
626
+ end: 37.119998931884766,
627
+ },
628
+ {
629
+ word: 'packed',
630
+ start: 37.119998931884766,
631
+ end: 37.29999923706055,
632
+ },
633
+ {
634
+ word: 'with',
635
+ start: 37.29999923706055,
636
+ end: 37.91999816894531,
637
+ },
638
+ {
639
+ word: '128',
640
+ start: 37.91999816894531,
641
+ end: 38.34000015258789,
642
+ },
643
+ {
644
+ word: 'GB',
645
+ start: 38.34000015258789,
646
+ end: 38.720001220703125,
647
+ },
648
+ {
649
+ word: 'of',
650
+ start: 38.720001220703125,
651
+ end: 39.36000061035156,
652
+ },
653
+ {
654
+ word: 'memory',
655
+ start: 39.36000061035156,
656
+ end: 39.36000061035156,
657
+ },
658
+ {
659
+ word: 'and',
660
+ start: 39.36000061035156,
661
+ end: 39.599998474121094,
662
+ },
663
+ {
664
+ word: 'can',
665
+ start: 39.599998474121094,
666
+ end: 39.939998626708984,
667
+ },
668
+ {
669
+ word: 'store',
670
+ start: 39.939998626708984,
671
+ end: 40.119998931884766,
672
+ },
673
+ {
674
+ word: 'up',
675
+ start: 40.119998931884766,
676
+ end: 40.380001068115234,
677
+ },
678
+ {
679
+ word: 'to',
680
+ start: 40.380001068115234,
681
+ end: 40.599998474121094,
682
+ },
683
+ {
684
+ word: '4',
685
+ start: 40.599998474121094,
686
+ end: 40.939998626708984,
687
+ },
688
+ {
689
+ word: 'TB',
690
+ start: 40.939998626708984,
691
+ end: 41.2400016784668,
692
+ },
693
+ {
694
+ word: 'of',
695
+ start: 41.2400016784668,
696
+ end: 41.86000061035156,
697
+ },
698
+ {
699
+ word: 'data',
700
+ start: 41.86000061035156,
701
+ end: 41.86000061035156,
702
+ },
703
+ {
704
+ word: 'ensuring',
705
+ start: 42.060001373291016,
706
+ end: 42.31999969482422,
707
+ },
708
+ {
709
+ word: 'you',
710
+ start: 42.31999969482422,
711
+ end: 42.68000030517578,
712
+ },
713
+ {
714
+ word: 'never',
715
+ start: 42.68000030517578,
716
+ end: 42.959999084472656,
717
+ },
718
+ {
719
+ word: 'run',
720
+ start: 42.959999084472656,
721
+ end: 43.20000076293945,
722
+ },
723
+ {
724
+ word: 'out',
725
+ start: 43.20000076293945,
726
+ end: 43.34000015258789,
727
+ },
728
+ {
729
+ word: 'of',
730
+ start: 43.34000015258789,
731
+ end: 43.959999084472656,
732
+ },
733
+ {
734
+ word: 'resources',
735
+ start: 43.959999084472656,
736
+ end: 43.959999084472656,
737
+ },
738
+ {
739
+ word: 'But',
740
+ start: 44.2400016784668,
741
+ end: 44.31999969482422,
742
+ },
743
+ {
744
+ word: "here's",
745
+ start: 44.31999969482422,
746
+ end: 44.5,
747
+ },
748
+ {
749
+ word: 'the',
750
+ start: 44.5,
751
+ end: 44.97999954223633,
752
+ },
753
+ {
754
+ word: 'craziest',
755
+ start: 44.97999954223633,
756
+ end: 44.97999954223633,
757
+ },
758
+ {
759
+ word: 'part',
760
+ start: 44.97999954223633,
761
+ end: 45.279998779296875,
762
+ },
763
+ {
764
+ word: 'All',
765
+ start: 45.459999084472656,
766
+ end: 45.58000183105469,
767
+ },
768
+ {
769
+ word: 'of',
770
+ start: 45.58000183105469,
771
+ end: 45.720001220703125,
772
+ },
773
+ {
774
+ word: 'this',
775
+ start: 45.720001220703125,
776
+ end: 45.900001525878906,
777
+ },
778
+ {
779
+ word: 'runs',
780
+ start: 45.900001525878906,
781
+ end: 46.099998474121094,
782
+ },
783
+ {
784
+ word: 'on',
785
+ start: 46.099998474121094,
786
+ end: 46.2400016784668,
787
+ },
788
+ {
789
+ word: 'a',
790
+ start: 46.2400016784668,
791
+ end: 46.400001525878906,
792
+ },
793
+ {
794
+ word: 'regular',
795
+ start: 46.400001525878906,
796
+ end: 46.7400016784668,
797
+ },
798
+ {
799
+ word: 'power',
800
+ start: 46.7400016784668,
801
+ end: 47.099998474121094,
802
+ },
803
+ {
804
+ word: 'outlet',
805
+ start: 47.099998474121094,
806
+ end: 47.34000015258789,
807
+ },
808
+ {
809
+ word: 'the',
810
+ start: 47.47999954223633,
811
+ end: 47.619998931884766,
812
+ },
813
+ {
814
+ word: 'same',
815
+ start: 47.619998931884766,
816
+ end: 47.939998626708984,
817
+ },
818
+ {
819
+ word: 'kind',
820
+ start: 47.939998626708984,
821
+ end: 48.20000076293945,
822
+ },
823
+ {
824
+ word: 'you',
825
+ start: 48.20000076293945,
826
+ end: 48.34000015258789,
827
+ },
828
+ {
829
+ word: 'use',
830
+ start: 48.34000015258789,
831
+ end: 48.58000183105469,
832
+ },
833
+ {
834
+ word: 'to',
835
+ start: 48.58000183105469,
836
+ end: 49,
837
+ },
838
+ {
839
+ word: 'charge',
840
+ start: 49,
841
+ end: 49,
842
+ },
843
+ {
844
+ word: 'your',
845
+ start: 49,
846
+ end: 49.2599983215332,
847
+ },
848
+ {
849
+ word: 'phone',
850
+ start: 49.2599983215332,
851
+ end: 49.41999816894531,
852
+ },
853
+ {
854
+ word: 'Now',
855
+ start: 49.540000915527344,
856
+ end: 49.86000061035156,
857
+ },
858
+ {
859
+ word: 'all',
860
+ start: 49.86000061035156,
861
+ end: 50.15999984741211,
862
+ },
863
+ {
864
+ word: 'this',
865
+ start: 50.15999984741211,
866
+ end: 50.380001068115234,
867
+ },
868
+ {
869
+ word: "won't",
870
+ start: 50.380001068115234,
871
+ end: 50.58000183105469,
872
+ },
873
+ {
874
+ word: 'come',
875
+ start: 50.58000183105469,
876
+ end: 50.86000061035156,
877
+ },
878
+ {
879
+ word: 'cheap',
880
+ start: 50.86000061035156,
881
+ end: 51.099998474121094,
882
+ },
883
+ {
884
+ word: 'obviously',
885
+ start: 51.2400016784668,
886
+ end: 51.560001373291016,
887
+ },
888
+ {
889
+ word: 'So',
890
+ start: 51.68000030517578,
891
+ end: 51.81999969482422,
892
+ },
893
+ {
894
+ word: "it's",
895
+ start: 51.81999969482422,
896
+ end: 52.2400016784668,
897
+ },
898
+ {
899
+ word: 'launching',
900
+ start: 52.2400016784668,
901
+ end: 52.2400016784668,
902
+ },
903
+ {
904
+ word: 'for',
905
+ start: 52.2400016784668,
906
+ end: 52.540000915527344,
907
+ },
908
+ {
909
+ word: '3',
910
+ start: 52.540000915527344,
911
+ end: 53.08000183105469,
912
+ },
913
+ {
914
+ word: '000',
915
+ start: 53.08000183105469,
916
+ end: 53.08000183105469,
917
+ },
918
+ {
919
+ word: 'in',
920
+ start: 53.08000183105469,
921
+ end: 53.7400016784668,
922
+ },
923
+ {
924
+ word: 'May',
925
+ start: 53.7400016784668,
926
+ end: 53.939998626708984,
927
+ },
928
+ {
929
+ word: '2025',
930
+ start: 53.939998626708984,
931
+ end: 54.70000076293945,
932
+ },
933
+ {
934
+ word: 'But',
935
+ start: 54.86000061035156,
936
+ end: 55.08000183105469,
937
+ },
938
+ {
939
+ word: 'remember',
940
+ start: 55.08000183105469,
941
+ end: 55.380001068115234,
942
+ },
943
+ {
944
+ word: "we're",
945
+ start: 55.41999816894531,
946
+ end: 55.7400016784668,
947
+ },
948
+ {
949
+ word: 'talking',
950
+ start: 55.7400016784668,
951
+ end: 55.939998626708984,
952
+ },
953
+ {
954
+ word: 'about',
955
+ start: 55.939998626708984,
956
+ end: 56.31999969482422,
957
+ },
958
+ {
959
+ word: 'innovation',
960
+ start: 56.31999969482422,
961
+ end: 56.560001373291016,
962
+ },
963
+ {
964
+ word: 'that',
965
+ start: 56.560001373291016,
966
+ end: 56.779998779296875,
967
+ },
968
+ {
969
+ word: "we've",
970
+ start: 56.779998779296875,
971
+ end: 57.060001373291016,
972
+ },
973
+ {
974
+ word: 'never',
975
+ start: 57.060001373291016,
976
+ end: 57.220001220703125,
977
+ },
978
+ {
979
+ word: 'seen',
980
+ start: 57.220001220703125,
981
+ end: 57.439998626708984,
982
+ },
983
+ {
984
+ word: 'before',
985
+ start: 57.439998626708984,
986
+ end: 57.720001220703125,
987
+ },
988
+ {
989
+ word: 'Think',
990
+ start: 57.86000061035156,
991
+ end: 57.97999954223633,
992
+ },
993
+ {
994
+ word: 'about',
995
+ start: 57.97999954223633,
996
+ end: 58.18000030517578,
997
+ },
998
+ {
999
+ word: 'it',
1000
+ start: 58.18000030517578,
1001
+ end: 58.439998626708984,
1002
+ },
1003
+ {
1004
+ word: 'Developers',
1005
+ start: 58.439998626708984,
1006
+ end: 59.15999984741211,
1007
+ },
1008
+ {
1009
+ word: 'researchers',
1010
+ start: 59.84000015258789,
1011
+ end: 59.84000015258789,
1012
+ },
1013
+ {
1014
+ word: 'and',
1015
+ start: 59.84000015258789,
1016
+ end: 60.18000030517578,
1017
+ },
1018
+ {
1019
+ word: 'students',
1020
+ start: 60.18000030517578,
1021
+ end: 60.63999938964844,
1022
+ },
1023
+ {
1024
+ word: 'can',
1025
+ start: 60.63999938964844,
1026
+ end: 60.97999954223633,
1027
+ },
1028
+ {
1029
+ word: 'now',
1030
+ start: 60.97999954223633,
1031
+ end: 61.279998779296875,
1032
+ },
1033
+ {
1034
+ word: 'have',
1035
+ start: 61.279998779296875,
1036
+ end: 61.47999954223633,
1037
+ },
1038
+ {
1039
+ word: 'supercomputer',
1040
+ start: 61.47999954223633,
1041
+ end: 62,
1042
+ },
1043
+ {
1044
+ word: 'level',
1045
+ start: 62,
1046
+ end: 62.2599983215332,
1047
+ },
1048
+ {
1049
+ word: 'power',
1050
+ start: 62.2599983215332,
1051
+ end: 62.540000915527344,
1052
+ },
1053
+ {
1054
+ word: 'in',
1055
+ start: 62.540000915527344,
1056
+ end: 62.65999984741211,
1057
+ },
1058
+ {
1059
+ word: 'their',
1060
+ start: 62.65999984741211,
1061
+ end: 62.84000015258789,
1062
+ },
1063
+ {
1064
+ word: 'home',
1065
+ start: 62.84000015258789,
1066
+ end: 63.02000045776367,
1067
+ },
1068
+ {
1069
+ word: "It's",
1070
+ start: 63.20000076293945,
1071
+ end: 63.31999969482422,
1072
+ },
1073
+ {
1074
+ word: 'crazy',
1075
+ start: 63.31999969482422,
1076
+ end: 63.68000030517578,
1077
+ },
1078
+ {
1079
+ word: 'but',
1080
+ start: 63.880001068115234,
1081
+ end: 64.04000091552734,
1082
+ },
1083
+ {
1084
+ word: 'what',
1085
+ start: 64.04000091552734,
1086
+ end: 64.13999938964844,
1087
+ },
1088
+ {
1089
+ word: 'do',
1090
+ start: 64.13999938964844,
1091
+ end: 64.27999877929688,
1092
+ },
1093
+ {
1094
+ word: 'you',
1095
+ start: 64.27999877929688,
1096
+ end: 64.4800033569336,
1097
+ },
1098
+ {
1099
+ word: 'think',
1100
+ start: 64.4800033569336,
1101
+ end: 64.72000122070312,
1102
+ },
1103
+ {
1104
+ word: 'Are',
1105
+ start: 64.91999816894531,
1106
+ end: 64.95999908447266,
1107
+ },
1108
+ {
1109
+ word: 'you',
1110
+ start: 64.95999908447266,
1111
+ end: 65.05999755859375,
1112
+ },
1113
+ {
1114
+ word: 'getting',
1115
+ start: 65.05999755859375,
1116
+ end: 65.26000213623047,
1117
+ },
1118
+ {
1119
+ word: 'one',
1120
+ start: 65.26000213623047,
1121
+ end: 65.41999816894531,
1122
+ },
1123
+ ],
1124
+ };
1125
+ (0, bun_test_1.test)('should not crash', () => {
1126
+ (0, bun_test_1.expect)((0, openai_whisper_api_to_captions_1.openAiWhisperApiToCaptions)({ transcription: exports.transcript }).captions);
1127
+ });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/openai-whisper"
4
4
  },
5
5
  "name": "@remotion/openai-whisper",
6
- "version": "4.0.250",
6
+ "version": "4.0.252",
7
7
  "description": "Work with the output of the OpenAI Whisper API",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -16,13 +16,13 @@
16
16
  "author": "Jonny Burger <jonny@remotion.dev>",
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
- "@remotion/captions": "4.0.250"
19
+ "@remotion/captions": "4.0.252"
20
20
  },
21
21
  "peerDependencies": {},
22
22
  "devDependencies": {
23
23
  "openai": "4.67.1",
24
24
  "eslint": "9.14.0",
25
- "@remotion/eslint-config-internal": "4.0.250"
25
+ "@remotion/eslint-config-internal": "4.0.252"
26
26
  },
27
27
  "keywords": [
28
28
  "remotion"