When using "GoogleSpeech" in SpeechSynthesize for the first time, a window opens asking for the API key. I entered what I thought was my API key and checked the box to save the key. However, I used the wrong key.
Now I get the error message
"SpeechSynthesize::apierr: The service returned the following error message: API key not valid. Please pass a valid API key.."
whenever trying to use GoogleSpeech.
This makes sense, but I cannot determine how to delete that bad, stored API key. I've done some spelunking in GoogleSpeech.m, and the debugger shows it obtains the bad key at some point. However, I can't determine where it might be stored.
I have also messed around with PermissionsKey(s), DeletePermissionsKey, and SystemCredentialKeys but still cannot delete the bad key.
SystemCredentialKeys[All]. If the API key for Google Speech is listed, thenUnset[SystemCredential["nameOfKey"]]should clear it. A more brutal approach would be to runUnset@*SystemCredential /@ SystemCredentialKeys[All];and get rid of all saved system credentials, but that may be overkill. $\endgroup$