Spaces:
Runtime error
Runtime error
Commit
·
4066358
1
Parent(s):
9ed883a
Desactivate tts
Browse files
app.py
CHANGED
@@ -50,7 +50,8 @@ speech_config = speechsdk.SpeechConfig(subscription=os.getenv('SPEECH_KEY'), reg
|
|
50 |
audio_config = speechsdk.audio.AudioOutputConfig(use_default_speaker=True)
|
51 |
speech_config.speech_synthesis_voice_name='en-US-JennyNeural'
|
52 |
global speech_synthesizer
|
53 |
-
speech_synthesizer =
|
|
|
54 |
|
55 |
# Custom document loaders
|
56 |
class MyElmLoader(UnstructuredEmailLoader):
|
|
|
50 |
audio_config = speechsdk.audio.AudioOutputConfig(use_default_speaker=True)
|
51 |
speech_config.speech_synthesis_voice_name='en-US-JennyNeural'
|
52 |
global speech_synthesizer
|
53 |
+
speech_synthesizer = ""
|
54 |
+
# speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config, audio_config=audio_config)
|
55 |
|
56 |
# Custom document loaders
|
57 |
class MyElmLoader(UnstructuredEmailLoader):
|