chore: Update TTS text replacements for units and temperatures
Browse files- 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", "
|
62 |
-
text_tts = text_tts.replace("°F", "
|
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 |
|