File tree 1 file changed +3
-3
lines changed
GPT_SoVITS/TTS_infer_pack
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 9
9
sys .path .append (now_dir )
10
10
import ffmpeg
11
11
import os
12
- from typing import Generator , List , Union
12
+ from typing import Generator , List , Tuple , Union
13
13
import numpy as np
14
14
import torch
15
15
import torch .nn .functional as F
@@ -591,7 +591,7 @@ def run(self, inputs:dict):
591
591
"repetition_penalty": 1.35 # float. repetition penalty for T2S model.
592
592
}
593
593
returns:
594
- tuple [int, np.ndarray]: sampling rate and audio data.
594
+ Tuple [int, np.ndarray]: sampling rate and audio data.
595
595
"""
596
596
########## variables initialization ###########
597
597
self .stop_flag :bool = False
@@ -874,7 +874,7 @@ def audio_postprocess(self,
874
874
speed_factor :float = 1.0 ,
875
875
split_bucket :bool = True ,
876
876
fragment_interval :float = 0.3
877
- )-> tuple [int , np .ndarray ]:
877
+ )-> Tuple [int , np .ndarray ]:
878
878
zero_wav = torch .zeros (
879
879
int (self .configs .sampling_rate * fragment_interval ),
880
880
dtype = self .precision ,
You can’t perform that action at this time.
0 commit comments