Skip to content

Commit 0dfb05d

Browse files
author
Rasmus Lellep
committed
added convert_sentence docstring
1 parent 767d92f commit 0dfb05d

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

tts_preprocess_et/convert.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,20 @@ def post_process(sentence, accessibility):
292292
def convert_sentence(sentence, accessibility=False):
293293
"""
294294
Converts a sentence to input supported by Estonian text-to-speech application.
295-
:param sentence: str
296-
:return: str
297-
298-
#TODO
299-
:param accessibility: bool
300-
"""
295+
296+
Parameters
297+
----------
298+
sentence: str ()
299+
Input sentence
300+
accessibility: bool (default: False)
301+
True: question and exclamation marks are spelled out, upper case letters in alphanumeric codes are distinguished as such.\\
302+
False: normal conversion.
303+
304+
Returns
305+
----------
306+
str
307+
Converted sentence.
308+
"""
301309

302310
sentence = pre_process(sentence, accessibility)
303311

0 commit comments

Comments
 (0)