NeuralFalcon commited on
Commit
c732fbe
·
verified ·
1 Parent(s): ed74e8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,7 +55,7 @@ def generate_speech(text, voice, speed):
55
  # Open the WAV file for writing
56
  with sf.SoundFile(output_path, mode='w', samplerate=24000, channels=1, subtype='PCM_16') as f:
57
  for chunk in tqdm(chunks, desc="Streaming audio to disk", unit="chunk"):
58
- audio = model.generate(chunk, voice=voice, speed=speed)
59
  f.write(audio) # Write audio directly to disk
60
 
61
  return output_path
@@ -99,7 +99,7 @@ with gr.Blocks(title="KittenTTS - Text to Speech", theme=gr.themes.Soft()) as ap
99
  minimum=0.5,
100
  maximum=2.0,
101
  step=0.01,
102
- value=1.25,
103
  label="Speech Speed",
104
  info="Adjust the speed of speech (0.5x to 2.0x)"
105
  )
 
55
  # Open the WAV file for writing
56
  with sf.SoundFile(output_path, mode='w', samplerate=24000, channels=1, subtype='PCM_16') as f:
57
  for chunk in tqdm(chunks, desc="Streaming audio to disk", unit="chunk"):
58
+ audio = model.generate(chunk+" ....", voice=voice, speed=speed)
59
  f.write(audio) # Write audio directly to disk
60
 
61
  return output_path
 
99
  minimum=0.5,
100
  maximum=2.0,
101
  step=0.01,
102
+ value=1,
103
  label="Speech Speed",
104
  info="Adjust the speed of speech (0.5x to 2.0x)"
105
  )