Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,28 @@ from espnet2.bin.tts_inference import Text2Speech
|
|
| 6 |
from arabic_pronounce import phonetise
|
| 7 |
import soundfile as sf
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
examples = [
|
| 10 |
["ู
ูุดูุงุนูุฑู ูููููููุฉ ู
ูุดูุงุนูุฑู ูููููููุฉ ู
ูุดูุงุนูุฑู ูููููููุฉ ูููููููููู ู
ูุดูุงุนูุฑู ูููููููุฉ ูููููููููู ู
ูุดูุงุนูุฑู ูููููููุฉ"],
|
| 11 |
["ู
ูุทูุฑู ู
ูุงุฑูุณู ุฐูููุจู ุฎูุงููุตู"],
|
|
@@ -38,6 +60,8 @@ def generate_audio(inputs):
|
|
| 38 |
|
| 39 |
demo = gr.Interface(
|
| 40 |
generate_audio,
|
|
|
|
|
|
|
| 41 |
inputs= gr.Text(label="Input Text"),
|
| 42 |
examples = examples,
|
| 43 |
outputs ="audio")
|
|
|
|
| 6 |
from arabic_pronounce import phonetise
|
| 7 |
import soundfile as sf
|
| 8 |
|
| 9 |
+
|
| 10 |
+
title = "Tunisian Text To Speech"
|
| 11 |
+
|
| 12 |
+
description = """ If you need help, feel free to drop an email here : zaiemsalah@gmail.com
|
| 13 |
+
Authors :
|
| 14 |
+
* [Imen Laouirine](https://fr.linkedin.com/in/salah-zaiem)
|
| 15 |
+
* [Rami Kammoun](https://www.linkedin.com/in/aabenz/)
|
| 16 |
+
* [Fethi Bougares](https://www.linkedin.com/in/ata-kaboudi-63365b1a8)
|
| 17 |
+
|
| 18 |
+
More in-depth details and insights are available in a released preprint. Please find the paper [here](paper_link).
|
| 19 |
+
If you use or refer to this model, please cite :
|
| 20 |
+
# ```
|
| 21 |
+
# @misc{abdallah2023leveraging,
|
| 22 |
+
# title={Leveraging Data Collection and Unsupervised Learning for Code-switched Tunisian Arabic Automatic Speech Recognition},
|
| 23 |
+
# author={Ahmed Amine Ben Abdallah and Ata Kabboudi and Amir Kanoun and Salah Zaiem},
|
| 24 |
+
# year={2023},
|
| 25 |
+
# eprint={2309.11327},
|
| 26 |
+
# archivePrefix={arXiv},
|
| 27 |
+
# primaryClass={eess.AS}
|
| 28 |
+
# }
|
| 29 |
+
"""
|
| 30 |
+
|
| 31 |
examples = [
|
| 32 |
["ู
ูุดูุงุนูุฑู ูููููููุฉ ู
ูุดูุงุนูุฑู ูููููููุฉ ู
ูุดูุงุนูุฑู ูููููููุฉ ูููููููููู ู
ูุดูุงุนูุฑู ูููููููุฉ ูููููููููู ู
ูุดูุงุนูุฑู ูููููููุฉ"],
|
| 33 |
["ู
ูุทูุฑู ู
ูุงุฑูุณู ุฐูููุจู ุฎูุงููุตู"],
|
|
|
|
| 60 |
|
| 61 |
demo = gr.Interface(
|
| 62 |
generate_audio,
|
| 63 |
+
title = title,
|
| 64 |
+
description = description,
|
| 65 |
inputs= gr.Text(label="Input Text"),
|
| 66 |
examples = examples,
|
| 67 |
outputs ="audio")
|