Skip to content

Commit

Permalink
fixing reader_handler and tiktok initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
metalalchemist committed Aug 28, 2024
1 parent 2b79b38 commit 89cd68a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VeTube.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def acceder(self, event=None,url=""):
reader.leer_sapi(_("Ingresando al chat."))
if config['sonidos'] and config['listasonidos'][6]: player.playsound(ajustes.rutasonidos[6],False)
else:
self.leer_sapi(_("cargando..."))
reader.leer_sapi(_("cargando..."))
self.megusta=self.seguidores=self.unidos=self.compartidas=0
self.gustados=[]
if url!="sala":
Expand Down
8 changes: 4 additions & 4 deletions helpers/reader_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
from TTS.lector import configurar_tts
class ReaderHandler:
def __init__(self,lector=None):
if lector is None: self.__config=fajustes.leerConfiguracion()
self._lector=configurar_tts(self.__config['sistemaTTS'] if lector is None else lector)
if lector is None: self._config=fajustes.leerConfiguracion()
self._lector=configurar_tts(self._config['sistemaTTS'] if lector is None else lector)
self._leer=configurar_tts("sapi5")
def leer_mensaje(self, mensaje):
if hasattr(self, 'config'):
if self.__config['sapi']: self.leer_sapi(mensaje)
if hasattr(self, '_config'):
if self._config['sapi']: self.leer_sapi(mensaje)
else: self.leer_auto(mensaje)
else: self.leer_auto(mensaje)
def leer_sapi(self, mensaje): self._leer.speak(mensaje)
Expand Down

0 comments on commit 89cd68a

Please sign in to comment.