binqiangliu commited on
Commit
5063145
1 Parent(s): 119cac8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@
7
  import gradio as gr
8
  import openai
9
  import pyttsx3
10
- import python-espeak
11
  #from gtts import gTTS
12
  #import pydantic
13
 
@@ -56,7 +56,7 @@ def transcribe(audio):
56
 
57
 
58
  # Text to speech
59
- engine = pyttsx3.init()
60
  # engine = pyttsx3.init('espeak')
61
  # engine.setProperty('engine', 'gTTS')
62
  engine.setProperty("rate", 150)
 
7
  import gradio as gr
8
  import openai
9
  import pyttsx3
10
+ #import python-espeak
11
  #from gtts import gTTS
12
  #import pydantic
13
 
 
56
 
57
 
58
  # Text to speech
59
+ engine = pyttsx3.init(driverName='sapi5')
60
  # engine = pyttsx3.init('espeak')
61
  # engine.setProperty('engine', 'gTTS')
62
  engine.setProperty("rate", 150)