Spaces:
Runtime error
Runtime error
add audio samples
Browse files- app.py +8 -1
- sample_indonesian_01.mp3 +0 -0
- sample_indonesian_02.mp3 +0 -0
- sample_javanese_01.mp3 +0 -0
- sample_sundanese_01.mp3 +0 -0
app.py
CHANGED
@@ -36,6 +36,12 @@ def parse_transcription(wav_file):
|
|
36 |
output = gr.outputs.Textbox(label="The transcript")
|
37 |
|
38 |
input_ = gr.inputs.Audio(source="microphone", type="file")
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
gr.Interface(parse_transcription, inputs=input_, outputs=[output],
|
41 |
analytics_enabled=False,
|
@@ -44,5 +50,6 @@ gr.Interface(parse_transcription, inputs=input_, outputs=[output],
|
|
44 |
article="This demo was built for the project "
|
45 |
"<a href='https://github.com/indonesian-nlp/multilingual-asr' target='_blank'>Multilingual Speech Recognition for Indonesian Languages</a>. "
|
46 |
"It uses the <a href='https://huggingface.co/indonesian-nlp/wav2vec2-indonesian-javanese-sundanese' target='_blank'>indonesian-nlp/wav2vec2-indonesian-javanese-sundanese</a> model "
|
47 |
-
"which was fine-tuned on Indonesian Common Voice, Javanese and Sundanese OpenSLR speech datasets."
|
|
|
48 |
).launch( inline=False, server_name="0.0.0.0", show_tips=False, enable_queue=True)
|
|
|
36 |
output = gr.outputs.Textbox(label="The transcript")
|
37 |
|
38 |
input_ = gr.inputs.Audio(source="microphone", type="file")
|
39 |
+
examples = [
|
40 |
+
["sample_indonesian_01.mp3"],
|
41 |
+
["sample_indonesian_02.mp3"],
|
42 |
+
["sample_javanese_01.mp3"],
|
43 |
+
["sample_sundanese_01.mp3"]
|
44 |
+
]
|
45 |
|
46 |
gr.Interface(parse_transcription, inputs=input_, outputs=[output],
|
47 |
analytics_enabled=False,
|
|
|
50 |
article="This demo was built for the project "
|
51 |
"<a href='https://github.com/indonesian-nlp/multilingual-asr' target='_blank'>Multilingual Speech Recognition for Indonesian Languages</a>. "
|
52 |
"It uses the <a href='https://huggingface.co/indonesian-nlp/wav2vec2-indonesian-javanese-sundanese' target='_blank'>indonesian-nlp/wav2vec2-indonesian-javanese-sundanese</a> model "
|
53 |
+
"which was fine-tuned on Indonesian Common Voice, Javanese and Sundanese OpenSLR speech datasets.",
|
54 |
+
examples=examples
|
55 |
).launch( inline=False, server_name="0.0.0.0", show_tips=False, enable_queue=True)
|
sample_indonesian_01.mp3
ADDED
Binary file (72.2 kB). View file
|
|
sample_indonesian_02.mp3
ADDED
Binary file (71.5 kB). View file
|
|
sample_javanese_01.mp3
ADDED
Binary file (28.4 kB). View file
|
|
sample_sundanese_01.mp3
ADDED
Binary file (22.5 kB). View file
|
|