Skip to content

Commit

Permalink
fix cosyvoice1.0 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aluminumbox committed Dec 17, 2024
1 parent 26c7740 commit b00d8a0
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 b00d8a0

Please sign in to comment.