Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ print(f"🚀 Running on device: {DEVICE}")
|
|
| 12 |
MODEL = None
|
| 13 |
|
| 14 |
def get_or_load_model():
|
| 15 |
-
"""Loads the
|
| 16 |
and ensures it's on the correct device."""
|
| 17 |
global MODEL
|
| 18 |
if MODEL is None:
|
|
@@ -52,7 +52,7 @@ def generate_tts_audio(
|
|
| 52 |
cfgw_input: float = 0.5
|
| 53 |
) -> tuple[int, np.ndarray]:
|
| 54 |
"""
|
| 55 |
-
Generate high-quality speech audio from text using
|
| 56 |
|
| 57 |
This tool synthesizes natural-sounding speech from input text. When a reference audio file
|
| 58 |
is provided, it captures the speaker's voice characteristics and speaking style. The generated audio
|
|
@@ -97,7 +97,7 @@ def generate_tts_audio(
|
|
| 97 |
with gr.Blocks() as demo:
|
| 98 |
gr.Markdown(
|
| 99 |
"""
|
| 100 |
-
#
|
| 101 |
Yüksek kaliteli ses ve ses klonlama özellikleri ile.
|
| 102 |
"""
|
| 103 |
)
|
|
|
|
| 12 |
MODEL = None
|
| 13 |
|
| 14 |
def get_or_load_model():
|
| 15 |
+
"""Loads the TTS model if it hasn't been loaded already,
|
| 16 |
and ensures it's on the correct device."""
|
| 17 |
global MODEL
|
| 18 |
if MODEL is None:
|
|
|
|
| 52 |
cfgw_input: float = 0.5
|
| 53 |
) -> tuple[int, np.ndarray]:
|
| 54 |
"""
|
| 55 |
+
Generate high-quality speech audio from text using TTS model with optional reference audio styling.
|
| 56 |
|
| 57 |
This tool synthesizes natural-sounding speech from input text. When a reference audio file
|
| 58 |
is provided, it captures the speaker's voice characteristics and speaking style. The generated audio
|
|
|
|
| 97 |
with gr.Blocks() as demo:
|
| 98 |
gr.Markdown(
|
| 99 |
"""
|
| 100 |
+
# Karay Akar TTS Demo Türkçe (Chatterbox)*
|
| 101 |
Yüksek kaliteli ses ve ses klonlama özellikleri ile.
|
| 102 |
"""
|
| 103 |
)
|