Allow standalone running
Added logic to allow script to be run as a standalone if required (outside of Text-generation-webui) Corrected spelling mistake in documentation.
This commit is contained in:
1 parent
963f06cc7f
commit
6ea56eddfa
2 files changed
+31
-16
No files matched your search
+1
-1
@@ -933,7 +933,7 @@ simple_webpage = """
|
||||
<p><b>Generating TTS - Linux</b></p>
|
||||
<code><span class="key">curl -X POST -H "Content-Type: application/json" -d '{"text": "This is text to generate as TTS","voice": "female_01.wav", "language": "en", "output_file": "outputfile.wav"}' "http://127.0.0.1:7851/api/generate"</code></span>
|
||||
<p><b>Generating TTS - Windows</b></p>
|
||||
<code><span class="key">curl -X POST -H "Content-Type: application/json" -d="{\"text\": \"This is text to generate as TTS\",\"voice\": \"female_01.wav\", \"language\": \"en\", \"output_file\": \"outputfile.wav\"}" 'http://127.0.0.1:7851/api/generate'</span></code>
|
||||
<code><span class="key">curl -X POST -H "Content-Type: application/json" -d "{\"text\": \"This is text to generate as TTS\", \"voice\": \"female_01.wav\", \"language\": \"en\", \"output_file\": \"outputfile.wav\"}" http://127.0.0.1:7851/api/generate</span></code>
|
||||
<p><b>Generating TTS - Notes</b></p>
|
||||
<p>Replace <code>This is text to generate as TTS</code> with whatever you want it to say. <code>female_01.wav</code> with the voice sample you want to use. <code>output_file.wav</code> with the file name you want it to create.</p>
|
||||
<p>JSON return <code>{"status":"generate-success","data":{"audio_path":"outputfile.wav"}}</code></p>
|
||||
|
||||
Reference in new issue
Block a user