Commit 33e693f
committed
refactor: enhance end of turn penalty logic
Refactor the EndOfTurnPenaltyItem logic to improve clarity and
functionality. Group related penalty items with descriptive comments
for better maintainability. Adjust penalties for situations with
Smart Turn and VAD to improve detection accuracy, including new
conditions for SMART_TURN_FALSE and ACTIVE combinations. This change
is necessary to fine-tune the configuration for complex speech
patterns and ensure better end-of-turn detection in the transcription
process.1 parent 5a5245e commit 33e693f
1 file changed
Lines changed: 24 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
| 420 | + | |
| 421 | + | |
421 | 422 | | |
422 | 423 | | |
| 424 | + | |
| 425 | + | |
423 | 426 | | |
424 | 427 | | |
| 428 | + | |
| 429 | + | |
425 | 430 | | |
426 | 431 | | |
427 | 432 | | |
428 | 433 | | |
429 | 434 | | |
430 | | - | |
| 435 | + | |
| 436 | + | |
431 | 437 | | |
432 | 438 | | |
433 | 439 | | |
434 | | - | |
435 | | - | |
| 440 | + | |
| 441 | + | |
436 | 442 | | |
437 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
438 | 457 | | |
439 | 458 | | |
440 | 459 | | |
| |||
0 commit comments