Open Logerfo opened 1 year ago
My 180s audio test file returns the last JSON (not final) from Wit.AI with an error attribute:
{
//...
"code": "wit",
"error": "An error occurred in speech recognition."
}
260cc0f70e9411425403f54b4ccee66824ee17a1, d03fd0f0e2129551d7c9a902485fcaaea17acc6a
Seems like the loop and the wit error, both for long pieces of audio, might be somehow unrelated.
Seems like there is no unhandled exception, but still a loop. The bot is only sending one message, but seems like the response from Wit.AI is shorter than the expected transcription. I've implemented at 287d93733814c05fc0c32243059a530ec0a9fab7 (https://github.com/valamistudio/surdobot/commit/e0b2f147af3c22c42c111fa305cbf4ec24516aff) a hard duration limit of 75 seconds as a workaround for now.