small mistake in voices.py

pull/1081/head
Supreme-hub 2 years ago
parent c5fda9d3fe
commit 6ca3223ca3

@ -21,7 +21,7 @@ class pyttsx:
): ):
voice_id = int(settings.config["settings"]["tts"]["python_voice"]) voice_id = int(settings.config["settings"]["tts"]["python_voice"])
voice_num = int(settings.config["settings"]["tts"]["python_voice_number"]) voice_num = int(settings.config["settings"]["tts"]["python_voice_number"])
for i in range(voice_num): for i in range(voice_num-1):
self.voices.append(i) self.voices.append(i)
i=+1 i=+1
if random_voice: if random_voice:

@ -35,5 +35,5 @@ voice_choice = { optional = false, default = "", options = ["streamlabspolly", "
aws_polly_voice = { optional = false, default = "Matthew", example = "Matthew", explanation = "The voice used for AWS Polly" } aws_polly_voice = { optional = false, default = "Matthew", example = "Matthew", explanation = "The voice used for AWS Polly" }
streamlabs_polly_voice = { optional = false, default = "Matthew", example = "Matthew", explanation = "The voice used for Streamlabs Polly" } streamlabs_polly_voice = { optional = false, default = "Matthew", example = "Matthew", explanation = "The voice used for Streamlabs Polly" }
tiktok_voice = { optional = false, default = "en_us_006", example = "en_us_006", explanation = "The voice used for TikTok TTS" } tiktok_voice = { optional = false, default = "en_us_006", example = "en_us_006", explanation = "The voice used for TikTok TTS" }
python_voice = {optional = false, default = "1", example = "1", explanation = "The index of the system tts voices (can be downloaded externally, run ptt.py to find value)"} python_voice = {optional = false, default = "1", example = "1", explanation = "The index of the system tts voices (can be downloaded externally, run ptt.py to find value, start from zero)"}
python_voice_number = {optional = false, default = "2", example = "2", explanation= "the number of system voices(2 are pre-installed in windows)"} python_voice_number = {optional = false, default = "2", example = "2", explanation= "the number of system voices(2 are pre-installed in windows)"}

@ -1,18 +1 @@
[ []
{
"subreddit": "tifu",
"id": "w97htn",
"time": "1658942748",
"background_credit": "Achy Gaming",
"reddit_title": "TIFU by refusing to give tea to a Chinese senator",
"filename": "TIFU by refusing to give tea to a Chinese senator.mp4"
},
{
"subreddit": "tifu",
"id": "w9iqby",
"time": "1658945240",
"background_credit": "Achy Gaming",
"reddit_title": "TIFU by giving my boss a RedBull",
"filename": "TIFU by giving my boss a RedBull.mp4"
}
]

@ -3,7 +3,6 @@
from typing import Dict, Tuple from typing import Dict, Tuple
from rich.console import Console from rich.console import Console
from TTS import pyttsx
from TTS.engine_wrapper import TTSEngine from TTS.engine_wrapper import TTSEngine
from TTS.GTTS import GTTS from TTS.GTTS import GTTS

Loading…
Cancel
Save