I'm building a C# .net application for STT and I'm creating credentials manually. I find the documentation hugely confusing for me and I dont know how to add the credentials properly.
I added a project, created a json credential and downloaded and kept on a folder and pointing to it for manually with GoogleCredential
for authorization and everythings working good. But this cant be a solution for a shipped app. Current approach:
GoogleCredential credentials =
GoogleCredential.FromFile(Path.Combine("*PATH"), "myProject-123XXXx32.json"));
TextToSpeechClient client = TextToSpeechClient.Create(credentials);
If I use a default credential json by environment variable then how my production app that is running on users machine will have credential?
So I have to put the json directly to my app? Isn't it less secure than using a key?
What should I use to authenticate my application with GoogleCredential
?