Search code examples
androidunity-game-enginegoogle-speech-to-text-api

Unity Android - Error deserializing JSON credential data - Google STT API


I boiled down the problem to the SpeechClientBuilder class's function .Build() after setting up credentials which I know are 100% right cause I checked and they worked when running the code on the editor.


Solution

  • Go to Edit > Project Settings > Player > Other Settings > Api Comppatibility Level and set it to .Net 4.x. This fixed this problem