sysf commited on
Commit
1c640cb
·
1 Parent(s): c20f648

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -85,7 +85,7 @@ dict = {
85
  def text_to_speech(text, language_code):
86
  # Replace with your own subscription key and region identifier from Azure portal
87
  subscription_key = os.getenv('subscription_key')
88
- region = "eastus"
89
 
90
  # Creates an instance of a speech config with specified subscription key and service region.
91
  speech_config = speechsdk.SpeechConfig(subscription=subscription_key, region=region, speech_recognition_language=dict[language_code])
 
85
  def text_to_speech(text, language_code):
86
  # Replace with your own subscription key and region identifier from Azure portal
87
  subscription_key = os.getenv('subscription_key')
88
+ region = os.getenv('region')
89
 
90
  # Creates an instance of a speech config with specified subscription key and service region.
91
  speech_config = speechsdk.SpeechConfig(subscription=subscription_key, region=region, speech_recognition_language=dict[language_code])