Skip to content

Commit 93633cf

Browse files
committed
fix: reduced CPS to 12
1 parent 68aa2e3 commit 93633cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TranscribeService/TranscribeService.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ export class TranscribeService {
197197

198198
private optimizeSegments(segments: TSegment[]): TSegment[] {
199199
const optimized: TSegment[] = [];
200-
const MIN_DURATION = 1.0; // 1 second
200+
const MIN_DURATION = 1.5; // 1.5 second
201201
const MAX_DURATION = 7.0; // 7 seconds
202202
const MAX_CHARS_PER_LINE = 42;
203-
const CHARS_PER_SECOND = 20;
203+
const CHARS_PER_SECOND = 12;
204204

205205
for (const segment of segments) {
206206
const words = segment.text.split(' ');

0 commit comments

Comments
 (0)