Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze
|
|
22 |
|
23 |
|
24 |
def translate(audio):
|
25 |
-
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language" : "<|
|
26 |
return outputs["text"]
|
27 |
|
28 |
|
@@ -41,10 +41,8 @@ def speech_to_speech_translation(audio):
|
|
41 |
|
42 |
title = "Cascaded STST"
|
43 |
description = """
|
44 |
-
Demo for cascaded speech-to-speech translation (STST), mapping from source speech in any language to target speech in
|
45 |
-
[
|
46 |
-
|
47 |
-

|
48 |
"""
|
49 |
|
50 |
demo = gr.Blocks()
|
|
|
22 |
|
23 |
|
24 |
def translate(audio):
|
25 |
+
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language" : "<|nl|>"})
|
26 |
return outputs["text"]
|
27 |
|
28 |
|
|
|
41 |
|
42 |
title = "Cascaded STST"
|
43 |
description = """
|
44 |
+
Demo for cascaded speech-to-speech translation (STST), mapping from source speech in any language to target speech in Dutch. Demo uses OpenAI's [Whisper Base](https://huggingface.co/openai/whisper-base) model for speech translation, and a Dutch Fine-Tune of Microsoft's
|
45 |
+
[sanchit-gandhi/speecht5_tts_vox_nl](https://huggingface.co/sanchit-gandhi/speecht5_tts_vox_nl) model for text-to-speech:
|
|
|
|
|
46 |
"""
|
47 |
|
48 |
demo = gr.Blocks()
|