leofltt commited on
Commit
2b69e33
1 Parent(s): f4d7cc2

updated example

Browse files
Files changed (4) hide show
  1. app.py +2 -4
  2. example.wav +0 -0
  3. example_en.mp3 +0 -0
  4. requirements.txt +2 -1
app.py CHANGED
@@ -52,11 +52,9 @@ def speech_to_speech_translation(audio):
52
 
53
 
54
  title = "Cascaded STST"
55
- description = """
56
  Demo for cascaded speech-to-speech translation (STST), mapping from source speech in any language to target speech in Italian. Demo uses Meta's [Speech2Text](https://huggingface.co/facebook/s2t-medium-mustc-multilingual-st) model for speech translation, and Suno's
57
  [Bark](https://huggingface.co/suno/bark) model for text-to-speech:
58
-
59
- ![Cascaded STST](https://huggingface.co/datasets/huggingface-course/audio-course-images/resolve/main/s2st_cascaded.png "Diagram of cascaded speech to speech translation")
60
  """
61
 
62
  demo = gr.Blocks()
@@ -73,7 +71,7 @@ file_translate = gr.Interface(
73
  fn=speech_to_speech_translation,
74
  inputs=gr.Audio(sources="upload"),
75
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
76
- examples=[["./example.wav"]],
77
  title=title,
78
  description=description,
79
  )
 
52
 
53
 
54
  title = "Cascaded STST"
55
+ description = """i
56
  Demo for cascaded speech-to-speech translation (STST), mapping from source speech in any language to target speech in Italian. Demo uses Meta's [Speech2Text](https://huggingface.co/facebook/s2t-medium-mustc-multilingual-st) model for speech translation, and Suno's
57
  [Bark](https://huggingface.co/suno/bark) model for text-to-speech:
 
 
58
  """
59
 
60
  demo = gr.Blocks()
 
71
  fn=speech_to_speech_translation,
72
  inputs=gr.Audio(sources="upload"),
73
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
74
+ examples=[["./example_en.mp3"]],
75
  title=title,
76
  description=description,
77
  )
example.wav DELETED
Binary file (263 kB)
 
example_en.mp3 ADDED
Binary file (37.2 kB). View file
 
requirements.txt CHANGED
@@ -2,4 +2,5 @@ torch
2
  git+https://github.com/huggingface/transformers
3
  datasets
4
  sentencepiece
5
- librosa
 
 
2
  git+https://github.com/huggingface/transformers
3
  datasets
4
  sentencepiece
5
+ librosa
6
+ gradio