wit icon indicating copy to clipboard operation
wit copied to clipboard

Speech recogrecognition api is very unstable

Open asfyra opened this issue 8 years ago • 7 comments

Hello the last few days we have noticed an issue with the speech recognition api https://api.wit.ai/speech

We notice big differences on the time required to process a request. Sometimes it responds within 1 to 2 seconds, sometimes it takes 10 to 20 seconds and lot's of times it just times out.

It's very easy to reproduce the issue, if you just post an audio sample to it. Try several times and you 'll get different response times, if not get a response at all.

We would expect it to process our requests within 1 or 2 seconds

Our appid is: 5b1e505b-0e5f-484a-9e44-20d7c4ee12d1 but we also tried with different projects but we got the same behavior. We love this feature, but this unstable behavior prevents us from giving it with our bot users

Does the wit platform offer any api that would do just the speech to text transcription? There are lot's of times during a bot dialog that the context does not require NLP, so it would be very helpfull to have an api that would only return the text from the posted audio stream.

Thank you Alex

asfyra avatar Oct 25 '18 14:10 asfyra

Hi @asfyra,

Thanks for reaching out. The response time depends on the length of the audio input. How long are your inputs in general?

We pushed a fix yesterday to enforce a timeout in our stack, to have a maximum ASR processing time. This results in more 408s, which would otherwise take longer than 10-20 seconds. There's another bug we're working on that should make things better.

patapizza avatar Oct 25 '18 18:10 patapizza

Hi @patapizza, Our inputs are not logner than 5 seconds max. We also have a timeout in our client. I can reproduce the issue with a less than 2 seconds sample. Just did another test and the response took 34 secs This is from postman:

image

asfyra avatar Oct 25 '18 18:10 asfyra

I'm having the exact same issue. Any update on this, please?

(https://twitter.com/zanfranceschi/status/1056988895332761600)

zanfranceschi avatar Oct 29 '18 19:10 zanfranceschi

Yes, still working on this.

patapizza avatar Oct 29 '18 21:10 patapizza

We detected an inefficiency in the speech recognition path, which we mitigated just now. You should not see the symptoms anymore. We are working on a longer term fix along with other improvements to the speech rec endpoint.

Please feel free to comment if you still experience the symptoms.

Thank you for your patience and apologies for the inconvenience everybody.

blandinw avatar Oct 30 '18 00:10 blandinw

Including support for at least one more audio input format I'm guessing?

On Mon, Oct 29, 2018 at 5:33 PM Willy Blandin [email protected] wrote:

We detected an inefficiency in the speech recognition path, which we mitigated just now. You should not see the symptoms anymore. We are working on a longer term fix along with other improvements to the speech rec endpoint.

Thank you for your patience and apologies for the inconvenience everybody.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wit-ai/wit/issues/1249#issuecomment-434130009, or mute the thread https://github.com/notifications/unsubscribe-auth/AXIu_9FyXSKH0zkRKQUCibhdI2J9XZ1tks5up550gaJpZM4X6Wzz .

-- Amplify Your Engagement!

ram-botworxai avatar Oct 30 '18 00:10 ram-botworxai

I confirm the speech API seems stable now. Thank you for your support!

zanfranceschi avatar Oct 30 '18 13:10 zanfranceschi