Spaces:
Sleeping
Sleeping
| import os | |
| from gradio_client import handle_file | |
| # Models to enable, only include models that users can vote on | |
| AVAILABLE_MODELS = { | |
| 'Pendrokar/xVASynth-TTS': 'Pendrokar/xVASynth-TTS', # 4.29 4.32 4.42.0 | |
| } | |
| HF_SPACES = { | |
| # xVASynth (CPU) | |
| 'Pendrokar/xVASynth-TTS': { | |
| 'name': 'xVASynth v3 DeepMoji', | |
| 'function': '/predict', | |
| 'text_param_index': 0, | |
| 'return_audio_index': 0, | |
| 'series': 'xVASynth', | |
| 'title': 'Outclassed', | |
| }, | |
| 'Pendrokar/xVASynth-TTS/NoDeepMoji': { | |
| 'name': 'xVASynth v3', | |
| 'function': '/predict', | |
| 'text_param_index': 0, | |
| 'return_audio_index': 0, | |
| 'series': 'xVASynth', | |
| 'space_link': 'Pendrokar/xVASynth-TTS', | |
| 'title': 'Outclassed', | |
| }, | |
| } | |
| # for zero-shot TTS - voice sample used by XTTS (11 seconds) | |
| DEFAULT_VOICE_SAMPLE_STR = 'voice_samples/xtts_sample.wav' | |
| DEFAULT_VOICE_TRANSCRIPT = "The Hispaniola was rolling scuppers under in the ocean swell. The booms were tearing at the blocks, the rudder was banging to and fro, and the whole ship creaking, groaning, and jumping like a manufactory." | |
| DEFAULT_VOICE_PROMPT = "female voice; very clear audio" | |
| # Older gradio spaces use unnamed parameters, both types are valid | |
| OVERRIDE_INPUTS = { | |
| 'Pendrokar/xVASynth-TTS': { | |
| 1: 'x_ex04', #fine-tuned voice model name | |
| 3: 1.0, #pacing/duration - Gradio Slider issue: takes min. rather than value | |
| }, | |
| 'Pendrokar/xVASynth-TTS/NoDeepMoji': { | |
| 1: 'x_ex02', #fine-tuned voice model name | |
| 3: 1.0, #pacing/duration - Gradio Slider issue: takes min. rather than value | |
| 10: False, #Use DeepMoji | |
| }, | |
| } | |