Closed n33kos closed 1 year ago
I looked into this a bit more deeply in an attempt to unblock myself and tested a cURL request with a sample audio file. This time I received a much more useful error message, it appears the unity plugin doesn't log out the response JSON body on errors:
$ curl -XPOST 'https://api.wit.ai/speech?v=20211121' \
> -i -L \
> -H 'Authorization: Bearer $TOKEN' \
> -H "Content-Type: audio/wav" \
> --data-binary "@TEST.wav"
HTTP/1.1 100 Continue
Date: Sun, 21 Nov 2021 21:53:40 GMT
HTTP/1.1 400 Bad Request
Content-Type: application/json
Date: Sun, 21 Nov 2021 21:53:40 GMT
Connection: keep-alive
Content-Length: 94
{
"code": "bad-request",
"error": "Speech recognition is not supported for language: la"
}
This is a much more definitive error message. I'm hoping to develop an app which recognizes Latin so this is a lynchpin for using wit as the underlying technology. Are there any plans on the roadmap to support speech recognition for the Latin language?
Closing due to no movement on the issue. Please re-open or file a new task should the issue be persisting.
Do you want to request a feature, report a bug, or ask a question about wit? bug
What is the current behavior? Currently, it appears requests from Oculus Voice SDK for a wit app using the Latin (LA) language are returning a 400 error.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
AppVoiceExperience.Activate()
and begin speakingAppVoiceExperience.Activate()
and begin speakingWhat is the expected behavior? When using Oculus Voice SDK with a Latin (LA) wit app, results are returned without a 400 error.
If applicable, what is the App ID where you are experiencing this issue? If you do not provide this, we cannot help. Latin App Id (Returns 400 error): 3068334726810678 English App Id (Working): 456028309276106
Additional Notes