Merge branch 'main' of https://github.com/xanthousm/text-generation-webui
This commit is contained in:
commit
5648a41a27
16 changed files with 352 additions and 166 deletions
|
@ -1,4 +1,3 @@
|
|||
import asyncio
|
||||
from pathlib import Path
|
||||
|
||||
import gradio as gr
|
||||
|
@ -94,7 +93,7 @@ def output_modifier(string):
|
|||
string ='<speak>'+prosody+xmlesc(string)+'</prosody></speak>'
|
||||
|
||||
output_file = Path(f'extensions/silero_tts/outputs/{wav_idx:06d}.wav')
|
||||
audio = model.save_wav(ssml_text=string, speaker=params['speaker'], sample_rate=int(params['sample_rate']), audio_path=str(output_file))
|
||||
model.save_wav(text=string, speaker=params['speaker'], sample_rate=int(params['sample_rate']), audio_path=str(output_file))
|
||||
string = f'<audio src="file/{output_file.as_posix()}" controls></audio>'
|
||||
|
||||
#reset if too many wavs. set max to -1 for unlimited.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue