Skip to content

Commit

Permalink
beta 9 april
Browse files Browse the repository at this point in the history
  • Loading branch information
jumping2000 authored Apr 9, 2023
1 parent 64ea1a1 commit 87d769e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/notifier/gh_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def speak(self, google, gh_mode: bool, gh_notifier: str):
self.volume_get(gh_volume,float(self.get_state(self.args["tts_period_of_day_volume"]))/100)
self.mediastate_get(gh_volume,float(self.get_state(self.args["tts_period_of_day_volume"]))/100)
wait_time = float(self.get_state(self.gh_wait_time))
message = h.replace_regular(google["message"], SUB_TTS)
message = h.replace_regular(google["message"], SUB_VOICE)
### set volume
self.volume_set(gh_player,google["volume"])
# queues the message to be handled async, use when_tts_done_do method to supply callback when tts is done
Expand Down Expand Up @@ -163,7 +163,7 @@ def worker(self):
time.sleep(1)
#self.volume_set(entity,data["volume"])
##### Speech time calculator #####
message_clean = h.replace_regular(data["text"], SUB_VOICE)
message_clean = data["text"]
words = len(h.remove_tags(message_clean).split())
chars = h.remove_tags(message_clean).count("")
duration = (words * 0.007) * 60
Expand Down

0 comments on commit 87d769e

Please sign in to comment.