Skip to content

Commit

Permalink
Merge pull request #736 from FunAudioLLM/dev/lyuxiang.lx
Browse files Browse the repository at this point in the history
fix cosyvoice1.0 bug
  • Loading branch information
aluminumbox authored Dec 17, 2024
2 parents 8a88446 + b00d8a0 commit 0d1e562
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cosyvoice/cli/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def __init__(self,
self.token_min_hop_len = 2 * self.flow.input_frame_rate
self.token_max_hop_len = 4 * self.flow.input_frame_rate
self.token_overlap_len = 20
# here we fix set flow.decoder.estimator.static_chunk_size = 0 for compatibability
self.flow.decoder.estimator.static_chunk_size = 0
# mel fade in out
self.mel_overlap_len = int(self.token_overlap_len / self.flow.input_frame_rate * 22050 / 256)
self.mel_window = np.hamming(2 * self.mel_overlap_len)
Expand Down

0 comments on commit 0d1e562

Please sign in to comment.