Fralet commited on
Commit
10d2f3b
·
verified ·
1 Parent(s): ea62035

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -243,12 +243,8 @@ from TTS.api import TTS
243
  tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=True)
244
 
245
  # generate speech by cloning a voice using default settings
246
- tts.tts_to_file(text="A reporter from Gaza, Abdullah Aljamal, who wrote for the American newspaper The Palestine Chronicle, was holding hostages in his home. The Israeli army killed him, and three hostages were rescued from his house. From October 7 to June 8, while the hostages were held captive, Abdullah reported on the horrors of war, highlighting what he described as a genocide by Israel.
247
-
248
- His last pieces didn't mention that the war started after the October 7 massacre and hostage-taking. Instead, he focused on sick children and elderly people suffering because of Israel. Abdullah was listed as an author on The Palestine Chronicle's website. They published articles about his death, denying any involvement in holding hostages.
249
-
250
- The Palestine Chronicle is run by a nonprofit called People Media. Jason Smith, a Missouri State Representative, believes this organization uses its status to support terrorism. Notably, Noam Chomsky, the famous linguist and leftist philosopher, is an honorary member of The Palestine Chronicle's editorial board. He has called the publication an invaluable source of information and analysis about Palestine."
251
- ,
252
  file_path="output.wav",
253
  speaker_wav="speaker.wav",
254
  language="en")
 
243
  tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=True)
244
 
245
  # generate speech by cloning a voice using default settings
246
+ text_to_audio="A reporter from Gaza, Abdullah Aljamal, who wrote for the American newspaper The Palestine Chronicle, was holding hostages in his home. The Israeli army killed him, and three hostages were rescued from his house. From October 7 to June 8, while the hostages were held captive, Abdullah reported on the horrors of war, highlighting what he described as a genocide by Israel. His last pieces didnt mention that the war started after the October 7 massacre and hostage-taking. Instead, he focused on sick children and elderly people suffering because of Israel. Abdullah was listed as an author on The Palestine Chronicles website. They published articles about his death, denying any involvement in holding hostages. The Palestine Chronicle is run by a nonprofit called People Media. Jason Smith, a Missouri State Representative, believes this organization uses its status to support terrorism. Notably, Noam Chomsky, the famous linguist and leftist philosopher, is an honorary member of The Palestine Chronicles editorial board. He has called the publication an invaluable source of information and analysis about Palestine."
247
+ tts.tts_to_file(text=text_to_audio,
 
 
 
 
248
  file_path="output.wav",
249
  speaker_wav="speaker.wav",
250
  language="en")