File size: 1,326 Bytes
808773a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
class InpaintInput:
    def __init__(self, input_text, output_text, input_word_times, audio, num_steps,
                 init_temp, init_diversity, guidance, rescale, topk,
                 audio_token_syllable_ratio):
        self.input_text = input_text
        self.output_text = output_text
        self.input_word_times = input_word_times
        self.audio = audio
        self.num_steps = num_steps
        self.init_temp = init_temp
        self.init_diversity = init_diversity
        self.guidance = guidance
        self.rescale = rescale
        self.topk = topk
        self.audio_token_syllable_ratio = audio_token_syllable_ratio


class TTSInput:
    def __init__(self, output_text, voice, num_steps, init_temp,
                 init_diversity, guidance, rescale, topk,
                 audio_token_syllable_ratio):
        self.output_text = output_text
        self.voice = voice
        self.num_steps = num_steps
        self.init_temp = init_temp
        self.init_diversity = init_diversity
        self.guidance = guidance
        self.rescale = rescale
        self.topk = topk
        self.audio_token_syllable_ratio = audio_token_syllable_ratio


class RVCInput:
    def __init__(self, source_speech, target_voice):
        self.source_speech = source_speech
        self.target_voice = target_voice