artiso-solutions / CoVoX

MIT License
1 stars 1 forks source link

AzureConfiguration from environment variable #50

Closed kczornik closed 3 years ago

kczornik commented 3 years ago

Closes #43

tommasobertoni commented 3 years ago

With this we'd have three ways of providing the configuration: via code, via config.json, via env variables. It would be nice to have all these options available within the AzureConfiguration type, so something like:

config = new AzureConfiguration { ... };
config = AzureConfiguration.FromEnvironmentVariables();
config = AzureConfiguration.FromFile(/*optional config.json path*/);

It would be somewhat similar to the SpeechConfig type from the Azure SDK (FromEndpoint, FromSubscription, ...).

cc @artiso-solutions/team-rainbow