binqiangliu commited on
Commit
548d109
·
1 Parent(s): 3f4744e

Update app.py

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