What does the colon mean in words_pron_dict: str? I get a syntax error in Python 2.7. Is it python 3? How can i use this?
class TextToSpeech: CHUNK = 1024 def __init__(self, words_pron_dict:str = 'cmudict-0.7b.txt'): self._l = {} self._load_words(words_pron_dict)
source share