Commit b7fbfcc
Fix trailing audio loss in Streaming Paraformer
- Move inputFinished() inside recognitionQueue to ensure all audio
is submitted before signaling end of input
- Add extra decode() call after the while loop to process any
remaining frames that become decodable after inputFinished()
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 807295f commit b7fbfcc
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | 401 | | |
405 | 402 | | |
406 | 403 | | |
| |||
409 | 406 | | |
410 | 407 | | |
411 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
417 | 420 | | |
418 | 421 | | |
419 | 422 | | |
| |||
0 commit comments