Miki0329 commited on
Commit
483a2a9
·
verified ·
1 Parent(s): 51576cb

Update voice_create.py

Browse files
Files changed (1) hide show
  1. voice_create.py +5 -1
voice_create.py CHANGED
@@ -48,7 +48,11 @@ def text_to_speech(input_file):
48
  text = text.replace("a.m.", 'AM')
49
  text = text.replace("p.m.", 'PM')
50
  text = text.replace("U.S.", 'US')
51
-
 
 
 
 
52
  # テキスト内の改行を1sの間に変換
53
  text = text.replace("\n", '<break time="1s"/>')
54
  text = text.replace(".", '.<break time="500ms"/>')
 
48
  text = text.replace("a.m.", 'AM')
49
  text = text.replace("p.m.", 'PM')
50
  text = text.replace("U.S.", 'US')
51
+ text = text.replace("Mr.", 'Mister')
52
+ text = text.replace("Mrs.", 'Misiz')
53
+ text = text.replace("Ms.", 'Miz')
54
+
55
+
56
  # テキスト内の改行を1sの間に変換
57
  text = text.replace("\n", '<break time="1s"/>')
58
  text = text.replace(".", '.<break time="500ms"/>')