MatthewSloyan / final-year-applied-project-and-minor-dissertation

Conflict resolution application built in Unity for Virtual Reality. Azure speech services are used along with an AIML chatbot, a flask server and a MongoDB database to provide a cost-effective and realistic approach to training.
1 stars 2 forks source link

Issue with Azure Speech Services on Android build. #4

Closed MatthewSloyan closed 4 years ago

MatthewSloyan commented 4 years ago

From building to Android the speech services to not seem to register despite implementing the correct specifications outlined on the Azure documentation. I have tried multiple attempts to fix this but I will need to look into it further.

MatthewSloyan commented 4 years ago

I have completed multiple tests to find out what is the problem, which are outlined below.

With some refactoring, I fixed the issue so the Speech to Text API now works on Android. However, the Text to Speech API still doesn't work. It works perfectly on Windows but throws the error below on Android. Possibly it will work on the Oculus Quest as it seems from research online that the error could be a Microsoft issue, as the API key and location I am using is correct, I am connected to the internet and the firewall settings are right.

Connection failed (no connection to the remote host). Internal error 1. Error details -1. Please check network connection, firewall setting. and the region name used to create speech factory. US state 2. Received audio size 0 bytes.

MatthewSloyan commented 4 years ago

Both speech services don't seem to work when running on Oculus Quest now, however, it could be due to the fact the API requires a minimum of Android 6.1 but the Quest runs on 4.4.

MatthewSloyan commented 4 years ago

After isolating the error it was fixed. A full log of how it was fixed is outlined in the system evaluation section of our dissertation.