Spaces:
Paused
Paused
Commit
·
1e58dbf
1
Parent(s):
790077a
change voice back to english
Browse files- discourse.py +1 -3
discourse.py
CHANGED
@@ -10,10 +10,8 @@ openai.api_key = os.environ['OPEN_AI_KEY']
|
|
10 |
GEN_MODEL = "gpt-3.5-turbo"
|
11 |
TRANSCRIBE_MODEL = "whisper-1"
|
12 |
|
13 |
-
en = "en-GB-ElliotNeural"
|
14 |
-
|
15 |
speech_config = speechsdk.SpeechConfig(subscription=os.environ['AZURE_SPEECH_KEY'], region="westeurope")
|
16 |
-
speech_config.speech_synthesis_voice_name = "
|
17 |
speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config, audio_config=None)
|
18 |
|
19 |
context = [{"role": "system", "content": "You are an intelligent and sarcastic and funny conversation partner.\
|
|
|
10 |
GEN_MODEL = "gpt-3.5-turbo"
|
11 |
TRANSCRIBE_MODEL = "whisper-1"
|
12 |
|
|
|
|
|
13 |
speech_config = speechsdk.SpeechConfig(subscription=os.environ['AZURE_SPEECH_KEY'], region="westeurope")
|
14 |
+
speech_config.speech_synthesis_voice_name = "en-GB-ElliotNeural"
|
15 |
speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config, audio_config=None)
|
16 |
|
17 |
context = [{"role": "system", "content": "You are an intelligent and sarcastic and funny conversation partner.\
|