TheComputerMan commited on
Commit
2b882ad
1 Parent(s): 551fffc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
  import numpy as np
5
  import torch
6
 
7
- from InferenceInterfaces.Meta_FastSpeech2 import Meta_FastSpeech2
8
 
9
  os.system("pip uninstall -y gradio")
10
  os.system("pip install gradio==2.7.5.2")
@@ -49,18 +49,18 @@ class TTS_Interface:
49
  'Italian' : "it",
50
  }
51
  self.speaker_path_lookup = {
52
- "English Speaker's Voice" : "reference_audios/english.wav",
53
- "German Speaker's Voice" : "reference_audios/german.wav",
54
- "Greek Speaker's Voice" : "reference_audios/greek.wav",
55
- "Spanish Speaker's Voice" : "reference_audios/spanish.wav",
56
- "Finnish Speaker's Voice" : "reference_audios/finnish.wav",
57
- "Russian Speaker's Voice" : "reference_audios/russian.wav",
58
- "Hungarian Speaker's Voice" : "reference_audios/hungarian.wav",
59
- "Dutch Speaker's Voice" : "reference_audios/dutch.wav",
60
- "French Speaker's Voice" : "reference_audios/french.wav",
61
- "Polish Speaker's Voice" : "reference_audios/polish.flac",
62
- "Portuguese Speaker's Voice": "reference_audios/portuguese.wav",
63
- "Italian Speaker's Voice" : "reference_audios/italian.flac",
64
  }
65
  self.model.set_utterance_embedding(self.speaker_path_lookup[self.current_speaker])
66
 
 
4
  import numpy as np
5
  import torch
6
 
7
+ from IMS-Toucan-modified import Meta_FastSpeech2
8
 
9
  os.system("pip uninstall -y gradio")
10
  os.system("pip install gradio==2.7.5.2")
 
49
  'Italian' : "it",
50
  }
51
  self.speaker_path_lookup = {
52
+ "English Speaker's Voice" : "IMS-Toucan-modified/english.wav",
53
+ "German Speaker's Voice" : "IMS-Toucan-modified/german.wav",
54
+ "Greek Speaker's Voice" : "IMS-Toucan-modified/greek.wav",
55
+ "Spanish Speaker's Voice" : "IMS-Toucan-modified/spanish.wav",
56
+ "Finnish Speaker's Voice" : "IMS-Toucan-modified/finnish.wav",
57
+ "Russian Speaker's Voice" : "IMS-Toucan-modified/russian.wav",
58
+ "Hungarian Speaker's Voice" : "IMS-Toucan-modified/hungarian.wav",
59
+ "Dutch Speaker's Voice" : "IMS-Toucan-modified/dutch.wav",
60
+ "French Speaker's Voice" : "IMS-Toucan-modified/french.wav",
61
+ "Polish Speaker's Voice" : "IMS-Toucan-modified/polish.flac",
62
+ "Portuguese Speaker's Voice": "IMS-Toucan-modified/portuguese.wav",
63
+ "Italian Speaker's Voice" : "IMS-Toucan-modified/italian.flac",
64
  }
65
  self.model.set_utterance_embedding(self.speaker_path_lookup[self.current_speaker])
66