Skip to content

Commit

Permalink
Temperature labels, and you know what? lets up the max temperature to…
Browse files Browse the repository at this point in the history
… 1.5, for fun results. #39
  • Loading branch information
gitmylo committed Jun 23, 2023
1 parent c8e197d commit 48642d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webui/modules/implementations/ttsmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def update_voices():
gen_prefix = gradio.Textbox(label='Generation prefix', info='Add this text before every generated chunk, better for keeping emotions.', **quick_kwargs)
audio_upload = gradio.File(label='Words to speak', file_types=['audio'], **quick_kwargs)
audio_upload.hide = True
with gradio.Row(visible=False) as temps:
text_temp = gradio.Slider(0.05, 1, 0.7, step=0.05, label='Text temperature', **quick_kwargs)
waveform_temp = gradio.Slider(0.05, 1, 0.7, step=0.05, label='Waveform temperature', **quick_kwargs)
# with gradio.Row(visible=False) as temps:
text_temp = gradio.Slider(0.05, 1.5, 0.7, step=0.05, label='Text temperature', info='Affects the randomness of the generated speech patterns, like with Language models, higher is more random', **quick_kwargs)
waveform_temp = gradio.Slider(0.05, 1.5, 0.7, step=0.05, label='Waveform temperature', info='Affects the randomness of the audio generated from the previous generated speech patterns, like with Language models, higher is more random', **quick_kwargs)

with gradio.Accordion(label='Voice cloning guide and long form generations', open=False, visible=False) as a:
clone_guide = gradio.Markdown('''
Expand Down Expand Up @@ -120,7 +120,7 @@ def update_voices():
mode.select(fn=update_speaker, inputs=mode, outputs=[speaker, refresh_speakers, speaker_file, speaker_name])
input_type.select(fn=update_input, inputs=input_type, outputs=[textbox, audio_upload, gen_prefix])
return [textbox, gen_prefix, audio_upload, input_type, mode, text_temp, waveform_temp,
speaker, speaker_name, speaker_file, refresh_speakers, keep_generating, clone_guide, temps, speakers, min_eos_p, a]
speaker, speaker_name, speaker_file, refresh_speakers, keep_generating, clone_guide, speakers, min_eos_p, a]

model = 'suno/bark'

Expand Down

0 comments on commit 48642d5

Please sign in to comment.