Update audio_processing/config.py
Browse files
audio_processing/config.py
CHANGED
@@ -28,9 +28,11 @@ pipe = pipeline(
|
|
28 |
# SAMPLE_RATE = feature_extractor.sampling_rate
|
29 |
# SEED = 42
|
30 |
|
31 |
-
from transformers import VitsModel, AutoTokenizer
|
32 |
-
|
33 |
checkpoint_mms_tts_eng = "facebook/mms-tts-eng"
|
34 |
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
28 |
# SAMPLE_RATE = feature_extractor.sampling_rate
|
29 |
# SEED = 42
|
30 |
|
|
|
|
|
31 |
checkpoint_mms_tts_eng = "facebook/mms-tts-eng"
|
32 |
|
33 |
+
# from transformers import VitsModel, AutoTokenizer
|
34 |
+
|
35 |
+
# model_mms_tts_eng = VitsModel.from_pretrained(checkpoint_mms_tts_eng)
|
36 |
+
# tokenizer_mms_tts_eng = AutoTokenizer.from_pretrained(checkpoint_mms_tts_eng)
|
37 |
+
|
38 |
+
pipe_tts = pipeline("text-to-speech", model=checkpoint_mms_tts_eng)
|