nazemi commited on
Commit
21b1ffc
·
verified ·
1 Parent(s): 7ff1c5c

Update tts.py

Browse files
Files changed (1) hide show
  1. tts.py +3 -3
tts.py CHANGED
@@ -2,9 +2,9 @@ from transformers import VitsModel, AutoTokenizer
2
  import torch
3
  import numpy as np
4
  from scipy.io.wavfile import write
5
-
6
- model = VitsModel.from_pretrained("tts_arabic")
7
- tokenizer = AutoTokenizer.from_pretrained("SeyedAli/Arabic-Speech-synthesis")
8
 
9
  text = "عشر ديما خمسة وعشرين رجلا في ليلة واحدة ومن ثم قام بقتلها"
10
  text = "يوفر مجتمع البناء قروضا عقارية وقروض وعقارية"
 
2
  import torch
3
  import numpy as np
4
  from scipy.io.wavfile import write
5
+ #"SeyedAli/Arabic-Speech-synthesis"
6
+ model = VitsModel.from_pretrained("arabic-tts")
7
+ tokenizer = AutoTokenizer.from_pretrained("arabic-tts")
8
 
9
  text = "عشر ديما خمسة وعشرين رجلا في ليلة واحدة ومن ثم قام بقتلها"
10
  text = "يوفر مجتمع البناء قروضا عقارية وقروض وعقارية"