Update app.py
Browse files
app.py
CHANGED
@@ -28,6 +28,37 @@ with bl:
|
|
28 |
|
29 |
|
30 |
with gr.Tabs():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
with gr.TabItem("Vowel quantity"):
|
32 |
gr.Markdown(
|
33 |
"""
|
@@ -62,28 +93,6 @@ All phoneme durations are measured automatically with no human correction. The p
|
|
62 |
btn2.click(manager, [wmenu2, lmenu2, amenu2, btn2], pl2)
|
63 |
|
64 |
|
65 |
-
with gr.TabItem("CTC alignment"):
|
66 |
-
gr.Markdown(
|
67 |
-
"""
|
68 |
-
# Forced alignment with CTC decoding
|
69 |
-
Choose a language to upload a sentence with corresponding text. Generate word and letter time-alignments from the language's wav2vec-2.0 model, with output in MFA (Montreal Forced Aligner)-compatible format. It is best to upload short recordings of a sentence or so; recordings over a couple minutes require excessive memory to align, and should be divided into shorter pieces.
|
70 |
-
"""
|
71 |
-
)
|
72 |
-
|
73 |
-
with gr.Row():
|
74 |
-
with gr.Column():
|
75 |
-
transcript_boxx = gr.Textbox(label="Transcript",placeholder="Type or paste the transcript here. Capitalisation and punctuation, if any, will be ignored.")
|
76 |
-
|
77 |
-
audio_file = gr.Audio(type="filepath")
|
78 |
-
|
79 |
-
alangmenu = gr.Radio(["Icelandic", "Faroese", "Norwegian"],value="Icelandic",label="Language")
|
80 |
-
|
81 |
-
al_btn = gr.Button(value="Run forced alignment")
|
82 |
-
|
83 |
-
with gr.Column():
|
84 |
-
output_box = gr.Textbox(label="Forced alignment output")
|
85 |
-
|
86 |
-
al_btn.click(aligning, [transcript_boxx, audio_file, alangmenu], output_box)
|
87 |
|
88 |
|
89 |
|
|
|
28 |
|
29 |
|
30 |
with gr.Tabs():
|
31 |
+
|
32 |
+
with gr.TabItem("CTC alignment"):
|
33 |
+
gr.Markdown(
|
34 |
+
"""
|
35 |
+
# Forced alignment with CTC decoding
|
36 |
+
Choose a language to upload a sentence with corresponding text. Generate word and letter time-alignments from the language's wav2vec-2.0 model, with output in MFA (Montreal Forced Aligner)-compatible format. It is best to upload short recordings of a sentence or so; recordings over a couple minutes require excessive memory to align, and should be divided into shorter pieces. Use only lower case letters with no punctuation.
|
37 |
+
"""
|
38 |
+
)
|
39 |
+
|
40 |
+
gr.Markdown(
|
41 |
+
"""
|
42 |
+
Contact [email protected] with feedback, problems, and to request changes.
|
43 |
+
"""
|
44 |
+
)
|
45 |
+
|
46 |
+
with gr.Row():
|
47 |
+
with gr.Column():
|
48 |
+
transcript_boxx = gr.Textbox(label="Transcript",placeholder="Type or paste the transcript here. Capitalisation and punctuation, if any, will be ignored.")
|
49 |
+
|
50 |
+
audio_file = gr.Audio(type="filepath")
|
51 |
+
|
52 |
+
alangmenu = gr.Radio(["Icelandic", "Faroese", "Norwegian"],value="Icelandic",label="Language")
|
53 |
+
|
54 |
+
al_btn = gr.Button(value="Run forced alignment")
|
55 |
+
|
56 |
+
with gr.Column():
|
57 |
+
output_box = gr.Textbox(label="Forced alignment output")
|
58 |
+
|
59 |
+
al_btn.click(aligning, [transcript_boxx, audio_file, alangmenu], output_box)
|
60 |
+
|
61 |
+
|
62 |
with gr.TabItem("Vowel quantity"):
|
63 |
gr.Markdown(
|
64 |
"""
|
|
|
93 |
btn2.click(manager, [wmenu2, lmenu2, amenu2, btn2], pl2)
|
94 |
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
|
98 |
|