Changes to reduce pylint output
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
Text-to-speech synthesis (TTS)
|
Text-to-speech synthesis (TTS)
|
||||||
|
|
||||||
@@ -36,8 +35,8 @@ def main():
|
|||||||
sentences = []
|
sentences = []
|
||||||
|
|
||||||
# Read input file
|
# Read input file
|
||||||
with open(args['input'], "r", encoding="utf-8") as f:
|
with open(args['input'], "r", encoding="utf-8") as file:
|
||||||
lines = f.readlines()
|
lines = file.readlines()
|
||||||
|
|
||||||
# Convert to sentences
|
# Convert to sentences
|
||||||
for line in lines:
|
for line in lines:
|
||||||
@@ -67,8 +66,8 @@ def main():
|
|||||||
line = line.replace("?", "?. ")
|
line = line.replace("?", "?. ")
|
||||||
line = line.replace("(", ". ")
|
line = line.replace("(", ". ")
|
||||||
|
|
||||||
for x in line.split(". "):
|
for sentence in line.split(". "):
|
||||||
sentences.append(x.strip())
|
sentences.append(sentence.strip())
|
||||||
sentences.append("<PAUSE>")
|
sentences.append("<PAUSE>")
|
||||||
|
|
||||||
# Synthesis text
|
# Synthesis text
|
||||||
|
|||||||
Reference in New Issue
Block a user