Flux9665 commited on
Commit
ab21602
1 Parent(s): bccc203

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ import soundfile as sf
7
  import torch
8
  from tqdm import tqdm
9
 
10
- os.system("git clone --branch v2.3 https://github.com/DigitalPhonetics/IMS-Toucan.git toucan_codebase")
11
  os.system("mv toucan_codebase/* .")
12
 
13
  from run_model_downloader import download_models
@@ -173,7 +173,7 @@ class TTS_Interface:
173
  self.speaker_path_lookup["Voice 1"], \
174
  self.speaker_path_lookup["Voice 2"], \
175
  self.speaker_path_lookup["Voice 3"], \
176
- (48000, float2pcm(torch.cat([torch.tensor(part_1), torch.tensor(part_2), torch.tensor(part_3)], dim=0).numpy()))
177
 
178
  def split_audio(self, path_to_audio, text_list):
179
  # extract audio
 
7
  import torch
8
  from tqdm import tqdm
9
 
10
+ os.system("git clone --branch v2.5 https://github.com/DigitalPhonetics/IMS-Toucan.git toucan_codebase")
11
  os.system("mv toucan_codebase/* .")
12
 
13
  from run_model_downloader import download_models
 
173
  self.speaker_path_lookup["Voice 1"], \
174
  self.speaker_path_lookup["Voice 2"], \
175
  self.speaker_path_lookup["Voice 3"], \
176
+ (24000, float2pcm(torch.cat([torch.tensor(part_1), torch.tensor(part_2), torch.tensor(part_3)], dim=0).numpy()))
177
 
178
  def split_audio(self, path_to_audio, text_list):
179
  # extract audio