update text in ui to account for change to enhancement
Browse files
app.py
CHANGED
@@ -6,13 +6,13 @@ model = separator.from_hparams(source="speechbrain/sepformer-whamr-enhancement",
|
|
6 |
|
7 |
def speechbrain(aud):
|
8 |
est_sources = model.separate_file(path=aud)
|
9 |
-
torchaudio.save("
|
10 |
-
return "
|
11 |
|
12 |
|
13 |
-
title = "Speech
|
14 |
-
description = "Gradio demo for Speech
|
15 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2010.13154' target='_blank'>Attention is All You Need in Speech Separation</a> | <a href='https://github.com/speechbrain/speechbrain/tree/develop/
|
16 |
examples = [
|
17 |
['samples_audio_samples_test_mixture.wav']
|
18 |
]
|
|
|
6 |
|
7 |
def speechbrain(aud):
|
8 |
est_sources = model.separate_file(path=aud)
|
9 |
+
torchaudio.save("clean_audio_file.wav", est_sources[:, :, 0].detach().cpu(), 8000)
|
10 |
+
return "clean_audio_file.wav"
|
11 |
|
12 |
|
13 |
+
title = "Speech Enhancement"
|
14 |
+
description = "Gradio demo for Speech Enhancement by SpeechBrain. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below."
|
15 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2010.13154' target='_blank'>Attention is All You Need in Speech Separation</a> | <a href='https://github.com/speechbrain/speechbrain/tree/develop/templates/enhancement' '_blank'>Github Repo</a></p>"
|
16 |
examples = [
|
17 |
['samples_audio_samples_test_mixture.wav']
|
18 |
]
|