All of the documentation for SpeechClient that I've found involves either running a command line after downloading the SDK, or awkwardly setting up a "GOOGLE\_APPLICATION\_CREDENTIALS" environment variable to point to a local credential file.

I hate the environment variable approach, and instead want a solution that loads a shared, source-controlled dev account file from the application root. Something like this:

```
var credential = GoogleCredential.FromStream(/*load shared file from app root*/);
var client = SpeechClient.Create(/*I wish I could pass credential in here*/);

```

Is there a way to do this so that I don't have to rely on the environment variable?