Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google TTS - Cannot connect #19

Open
MisterInsane opened this issue Jul 19, 2022 · 2 comments
Open

Google TTS - Cannot connect #19

MisterInsane opened this issue Jul 19, 2022 · 2 comments

Comments

@MisterInsane
Copy link

I enabled the API and created the OAuth ID credentials and downloaded the JSON file.

I pasted the JSON file in and got the following error in the log.

2022-07-08 19:28:02,254 [3] ERROR TTSGoogle.GoogleSpeechToTextProvider - Cannot connect to Google
System.InvalidOperationException: Error creating credential from JSON. Unrecognized credential type .
at Google.Apis.Auth.OAuth2.DefaultCredentialProvider.CreateDefaultCredentialFromParameters(JsonCredentialParameters credentialParameters)
at Google.Apis.Auth.OAuth2.DefaultCredentialProvider.CreateDefaultCredentialFromJson(String json)
at TTSGoogle.GoogleSpeechToTextProvider.get_Client()
at TTSGoogle.GoogleSpeechToTextProvider.d__13.MoveNext()

@CailanVR
Copy link

I'm currently unable to use Google TTS as well. Attached is a paste of my log upon an attempt to select Google as my provider. Attempting shows a "Provider is not available" error box. My JSON auth previously worked, and this issue seems to have cropped up recently, within the past month.
7-16-2023.log

@xrayman123
Copy link

xrayman123 commented Sep 23, 2024

Sir @medokin I am sorry to ping you I don't know if it's against the rules... but I am not code savvy and I have really been trying for days to do this.

@CailanVR @MisterInsane was anyone able to sort it?

This is my 1st post in like 15 years 2024 And people are prob still struggling. a dummy walk-through would be nice. this is what I have done:

  1. Downloaded Google Cloud SDK CMD
  2. Made a Google https://console.cloud.google.com/ account and made a project just for Google TTS
  • Enabled installed Google TTS API
  • Made Service Account credentials
  • Downloaded API key
  1. Down and install Go lang in Google SDK CMD from https://go.dev/dl/ - go1.23.1
  2. Put the below into Google SDK CMD
  • gcloud init
  • gcloud auth application-default login
  • go install cloud.google.com/go/texttospeech/apiv1@latest
  • *_side note: when I do this it says "package cloud.google.com/go/texttospeech/apiv1 is not a main package" _
  1. Put downloaded API key JSON using Notepad ++ Copy and paste into settings
  2. Restart TTS
  3. Click provider... Grayed out...
  4. IDK WHAT TO DOOOOOO I've been pulling my hair out for days....
  5. GIVE UP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants