Spaces:
Running
Running
Update generate_audio.py
Browse files- generate_audio.py +2 -2
generate_audio.py
CHANGED
@@ -34,8 +34,8 @@ class TTSGenerator:
|
|
34 |
|
35 |
|
36 |
# Load Parler model and tokenizer for Speaker 1
|
37 |
-
self.parler_model = ParlerTTSForConditionalGeneration.from_pretrained("parler-tts/
|
38 |
-
self.parler_tokenizer = AutoTokenizer.from_pretrained("parler-tts/
|
39 |
self.speaker1_description = """
|
40 |
Laura's voice is expressive and dramatic in delivery, speaking at a moderately fast pace with a very close recording that almost has no background noise and very clear audio.
|
41 |
"""
|
|
|
34 |
|
35 |
|
36 |
# Load Parler model and tokenizer for Speaker 1
|
37 |
+
self.parler_model = ParlerTTSForConditionalGeneration.from_pretrained("parler-tts/parler-tts-mini-v1").to(self.device)
|
38 |
+
self.parler_tokenizer = AutoTokenizer.from_pretrained("parler-tts/parler-tts-mini-v1")
|
39 |
self.speaker1_description = """
|
40 |
Laura's voice is expressive and dramatic in delivery, speaking at a moderately fast pace with a very close recording that almost has no background noise and very clear audio.
|
41 |
"""
|