sasan commited on
Commit
364da54
·
1 Parent(s): ecd1c48

chore: Update TTS text replacements for units and temperatures

Browse files
Files changed (1) hide show
  1. kitt/core/tts.py +4 -4
kitt/core/tts.py CHANGED
@@ -57,10 +57,10 @@ voices_replicate = [
57
 
58
  def prep_for_tts(text: str):
59
  text_tts = copy.deepcopy(text)
60
- text_tts = text_tts.replace("km/h", "kilometers per hour")
61
- text_tts = text_tts.replace("°C", "degrees Celsius")
62
- text_tts = text_tts.replace("°F", "degrees Fahrenheit")
63
- text_tts = text_tts.replace("km", "kilometers")
64
  return text_tts
65
 
66
 
 
57
 
58
  def prep_for_tts(text: str):
59
  text_tts = copy.deepcopy(text)
60
+ text_tts = text_tts.replace("km/h", " kilometers per hour")
61
+ text_tts = text_tts.replace("°C", " degree Celsius")
62
+ text_tts = text_tts.replace("°F", " degree Fahrenheit")
63
+ text_tts = text_tts.replace("km", " kilometers")
64
  return text_tts
65
 
66