Voices list now populated from the folder

This commit is contained in:
erew123 authored and GitHub committed 2023-12-10 09:48:10 +00:00
1 parent d5836bffd6
commit 3264dfecde
1 file changed
+10 -2
+10 -2
View File
@@ -100,7 +100,11 @@
</select>
<label for="voice" style="color: #33cc33;">&nbsp; &nbsp; Default voice:</label>
<input id="voice" name="voice" required="" type="text" value="{{ data.voice }}" />
<select id="voice" name="voice" required="">
{% for file in wav_files %}
<option value="{{ file }}" {% if data.voice == file %}selected{% endif %}>{{ file }}</option>
{% endfor %}
</select>
<label for="language" style="color: #33cc33;">Default Language:</label>
@@ -124,7 +128,11 @@
</select>
<label for="narrator_voice" style="color: #33cc33;">&nbsp; &nbsp; Narrator voice:</label>
<input id="narrator_voice" name="narrator_voice" required="" type="text" value="{{ data.narrator_voice }}" />
<select id="narrator_voice" name="narrator_voice" required="">
{% for file in wav_files %}
<option value="{{ file }}" {% if data.narrator_voice == file %}selected{% endif %}>{{ file }}</option>
{% endfor %}
</select>
<label for="remove_trailing_dots" style="color: #33cc33;"> Remove Trailing Dots:</label>
<select id="remove_trailing_dots" name="remove_trailing_dots" required="">