RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

When text has italics it says _word_

Open kalanscr opened this issue 4 years ago • 3 comments

when reading text the tts says word

kalanscr avatar Jun 05 '22 01:06 kalanscr

One solution I can think of is simply sanitizing the TTS input e.g.

TEXT_WHITELIST = set('abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890') 
  
  
 def textify(text): 
     return ''.join(filter(TEXT_WHITELIST.__contains__, text))

Then Just call the textify function on the comment content

JasonLovesDoggo avatar Jun 05 '22 02:06 JasonLovesDoggo

Good idea, seems to work, do you wanna make a pull?

kalanscr avatar Jun 05 '22 06:06 kalanscr

Good idea, seems to work, do you wanna make a pull?

Unfortunately I already have a fork and it is vastly different from this repo with almost everything being different

JasonLovesDoggo avatar Jun 05 '22 06:06 JasonLovesDoggo