-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dictation API Taking 40 seconds to respond. Speech is API is fast. #2610
Comments
Hi Caz, could you give us the wit appid? |
AppID: 607996611350377
I don't have any audio clips saved, but it was 40s regardless of how long
the clip was. They were all just me saying "Testing 1,2,3" and all worked
immediately when I switched to the Speech API instead.
Mr. Caz Czworkowski
Data Enablement Lead
GSK
Tel: 609.827.1064
…On Tue, Apr 18, 2023 at 8:04 AM maidaneze ***@***.***> wrote:
Hi Caz, could you give us the wit appid?
It would also be useful if you could share the audio clip with us so we
can debug the issue.
—
Reply to this email directly, view it on GitHub
<#2610 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4N4SIDJSWJ3QYDI73VEBH3XBZ7NJANCNFSM6AAAAAAWXRFSKY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I tried reproducing this issue but I couldn't. Is it still persisting? In case it is, could you attach an audio file that can consistently reproduce this issue? |
I am also experiencing this. I have a timeout 30sec for the request and I see in the logs it happens almost every day for a couple of requests. I do not have a file at hand, but I can put a time stamp for today's alert |
For some reason (wit-ai/wit#2610) WitAi takes more than 30sec for dictation api. we do not want users to wait so much time. does not make any sense. I first decrease the timout to 10sec (which is still big) Then I also fallback to speech api to give it a second chance.
Hey Same problem here, AppID: 6KFYX44B6QNIFHIJPK5TJ3OZJ6RYWVAW as well as AppID: MIKTFR2PJPA7OZELOR3KDNVY6RHE4KJU |
Bug
Dictation API Taking 40 seconds to respond with small audio requests. Way too long.
Speech API takes <1 second without any other changes.
I am not using the Unity plugin since I just want pure transcription. I am just doing web requests.
I construct a POST for the dictations api like this:
`// Convert the AudioClip data to a byte array
byte[] data = AudioClipToWav(recording);
If my endpoint is set to this
private const string witAiUrl = "https://api.wit.ai/speech?v=20230215";
it takes <1 second to return the right response.
If I set it to this:
private const string witAiUrl = "https://api.wit.ai/dictation?v=20230215"
it takes 40 seconds to return the correct response.
Same audio length. Just a quick 2 second "Hello world" audio clip that is being sent after 2 seconds.
The text was updated successfully, but these errors were encountered: