lib/azure_stt.rb in azure_stt-0.2.0 vs lib/azure_stt.rb in azure_stt-0.3.0
- old
+ new
@@ -13,8 +13,8 @@
require_relative 'azure_stt/models'
require_relative 'azure_stt/parsers'
require_relative 'azure_stt/session'
AzureSTT.configure do |config|
- config.subscription_key = ENV['SUBSCRIPTION_KEY']
- config.region = ENV['REGION']
+ config.subscription_key = ENV.fetch('SUBSCRIPTION_KEY', nil)
+ config.region = ENV.fetch('REGION', 'uscentral')
end