Spaces:
Sleeping
Sleeping
Irpan
commited on
Commit
·
660776b
1
Parent(s):
a651122
asr
Browse files
app.py
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import asr
|
3 |
import tts
|
4 |
-
|
5 |
-
|
6 |
|
7 |
mms_transcribe = gr.Interface(
|
8 |
fn=asr.transcribe,
|
@@ -42,7 +41,7 @@ mms_synthesize = gr.Interface(
|
|
42 |
outputs=[
|
43 |
gr.Audio(label="Generated Audio"),
|
44 |
],
|
45 |
-
|
46 |
title="Text-to-speech",
|
47 |
description=("Generate audio from input text."),
|
48 |
allow_flagging="never",
|
|
|
1 |
import gradio as gr
|
2 |
import asr
|
3 |
import tts
|
4 |
+
import util
|
|
|
5 |
|
6 |
mms_transcribe = gr.Interface(
|
7 |
fn=asr.transcribe,
|
|
|
41 |
outputs=[
|
42 |
gr.Audio(label="Generated Audio"),
|
43 |
],
|
44 |
+
examples=util.example_texts,
|
45 |
title="Text-to-speech",
|
46 |
description=("Generate audio from input text."),
|
47 |
allow_flagging="never",
|
util.py
CHANGED
@@ -2,4 +2,13 @@ from umsc import UgMultiScriptConverter
|
|
2 |
|
3 |
# Initialize uyghur script converter
|
4 |
ug_arab_to_latn = UgMultiScriptConverter('UAS', 'ULS')
|
5 |
-
ug_latn_to_arab = UgMultiScriptConverter('ULS', 'UAS')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
# Initialize uyghur script converter
|
4 |
ug_arab_to_latn = UgMultiScriptConverter('UAS', 'ULS')
|
5 |
+
ug_latn_to_arab = UgMultiScriptConverter('ULS', 'UAS')
|
6 |
+
|
7 |
+
example_texts = [
|
8 |
+
"مەكتەپكە بارغاندا تېخىمۇ بىلىملىك بولۇمەن.",
|
9 |
+
"قىلىچ قان تامغۇزسا، بەگ ئەل ئالىدۇ؛ قەلەمدىن سىياھتانسا، ئالتۇن كېلىدۇ.",
|
10 |
+
"مېنىڭ قەلبىمنى كەڭ قىلغىن",
|
11 |
+
"Bu putbol musabiqisining axirlishishi",
|
12 |
+
"Yaxshimusiz?",
|
13 |
+
"Rehmet sizge!",
|
14 |
+
]
|