Spaces:
Sleeping
Sleeping
Commit
·
f056f8e
1
Parent(s):
7bb8fab
Added links in footer for better attribution
Browse files
README.md
CHANGED
|
@@ -27,10 +27,21 @@ models:
|
|
| 27 |
short_description: A sample of the Piper Model with Argentinian female voice
|
| 28 |
---
|
| 29 |
|
| 30 |
-
This is a sample showcasing how to use [Piper](https://github.com/rhasspy/piper) with [Gradio](https://github.com/gradio-app/gradio) to create a TTS app with Argentinian female voice.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
## References
|
| 33 |
|
| 34 |
- [Piper](https://github.com/rhasspy/piper)
|
| 35 |
- [Argentinian Female Voice](https://huggingface.co/larcanio/piper-voices)
|
| 36 |
-
- [Persian
|
|
|
|
|
|
| 27 |
short_description: A sample of the Piper Model with Argentinian female voice
|
| 28 |
---
|
| 29 |
|
| 30 |
+
This is a sample showcasing how to use [Piper](https://github.com/rhasspy/piper) with [Gradio](https://github.com/gradio-app/gradio) to create a TTS app with [Argentinian female voice]((https://huggingface.co/larcanio/piper-voices).
|
| 31 |
+
|
| 32 |
+
You can get this sample and run locally and consume the API to have a local TTS.
|
| 33 |
+
|
| 34 |
+
Ideas for further work:
|
| 35 |
+
|
| 36 |
+
* Create a shortcut to tell something that is in the clipboard
|
| 37 |
+
* Make a reminder with voice telling you to do something:
|
| 38 |
+
* Know what time is it
|
| 39 |
+
* Remind you about taking some medicine
|
| 40 |
+
* Can be enhanced to read for you in another language
|
| 41 |
|
| 42 |
## References
|
| 43 |
|
| 44 |
- [Piper](https://github.com/rhasspy/piper)
|
| 45 |
- [Argentinian Female Voice](https://huggingface.co/larcanio/piper-voices)
|
| 46 |
+
- [Persian Voice](https://huggingface.co/gyroing/Persian-Piper-Model-gyro)
|
| 47 |
+
- [Glued by Igor Támara](https://huggingface.co/spaces/igortamara/)
|
app.py
CHANGED
|
@@ -42,6 +42,14 @@ sin exigir GPU. Inicialmente diseñado para Raspberri Pi.
|
|
| 42 |
Este demo solo muestra español, puedes probar [voces en otros idiomas](https://rhasspy.github.io/piper-samples/).
|
| 43 |
"""
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
# Using Gradio Blocks
|
| 46 |
with gr.Blocks(theme=gr.themes.Base()) as blocks:
|
| 47 |
gr.Markdown(BANNER_TEXT)
|
|
@@ -49,6 +57,7 @@ with gr.Blocks(theme=gr.themes.Base()) as blocks:
|
|
| 49 |
output_audio = gr.Audio(label="Audio generado", type="numpy")
|
| 50 |
output_text = gr.Textbox(label="Tokens generados", visible=False)
|
| 51 |
submit_button = gr.Button("Genera audio")
|
|
|
|
| 52 |
|
| 53 |
submit_button.click(synthesize_speech, inputs=input_text, outputs=[output_audio, output_text])
|
| 54 |
# Run the app
|
|
|
|
| 42 |
Este demo solo muestra español, puedes probar [voces en otros idiomas](https://rhasspy.github.io/piper-samples/).
|
| 43 |
"""
|
| 44 |
|
| 45 |
+
FOOTER_TEXT = """
|
| 46 |
+
# Credits
|
| 47 |
+
|
| 48 |
+
[voice trained](https://huggingface.co/larcanio/piper-voices) by [larcanio](https://huggingface.co/larcanio/),
|
| 49 |
+
[original demo](https://huggingface.co/gyroing/Persian-Piper-Model-gyro) by [gyroing](https://huggingface.co/gyroing/)
|
| 50 |
+
on [piper's shoulders](https://huggingface.co/rhasspy/piper-voices) by [rhasspy](https://github.com/rhasspy). [More info](https://huggingface.co/spaces/igortamara/sample-tts-piper/blob/main/README.md)
|
| 51 |
+
"""
|
| 52 |
+
|
| 53 |
# Using Gradio Blocks
|
| 54 |
with gr.Blocks(theme=gr.themes.Base()) as blocks:
|
| 55 |
gr.Markdown(BANNER_TEXT)
|
|
|
|
| 57 |
output_audio = gr.Audio(label="Audio generado", type="numpy")
|
| 58 |
output_text = gr.Textbox(label="Tokens generados", visible=False)
|
| 59 |
submit_button = gr.Button("Genera audio")
|
| 60 |
+
gr.Markdown(FOOTER_TEXT)
|
| 61 |
|
| 62 |
submit_button.click(synthesize_speech, inputs=input_text, outputs=[output_audio, output_text])
|
| 63 |
# Run the app
|