I built a google speech api in c# and now google is not supporting V1 anymore so I built a code for the V2 speech api and I'm getting a different response from the server.
Here:
{"result":[]} {"result":[{"alternative":[{"transcript":"hello","confidence":0.88741958} }],"final":true}],"result_index":0}
I tried this code with JSON but it's not working:
dynamic obj = JsonConvert.DeserializeObject(responseFromServer); var transcript = obj.alternative[0].transcript.ToString();
It returnes an exception which says:
Additional text encountered after finishing reading JSON content: {.Path", line 2, position 1.
Thank you for helping.