Forum Discussion

Tyan98's avatar
Tyan98
Honored Guest
14 days ago

Wit.ai Dictation Request Timing Out

Hi,

I've been running into an issue with the Wit.ai dictation service in my Unity VR project and would really appreciate any help or pointers from people who've dealt with something similar.

The cofigurations that i'm using as follows:

- Device: Meta Quest Pro (standalone mode)

- Unity version: 2022.3.x LTS

- SDK: com.meta.xr.sdk.voice@69.0.0

 

What's happening:

The microphone starts fine, audio is captured and transmitted without any apparent issue, but the request consistently fails at the point where the server should return a transcription. Here is the error I'm seeing:

[VSDK] [SpeechService] [BaseSpeechService.cs:264] Request Failed

HTTP Error 503: System.Net.WebException: The remote server returned an error: (503) Service Unavailable.

at System.Net.HttpWebRequest.GetResponseFromData (System.Net.WebResponseStream stream, System.Threading.CancellationToken cancellationToken) [0x00146] in <36d5d97f0e39429283d80156f1c7f1fc>:0

at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <36d5d97f0e39429283d80156f1c7f1fc>:0

at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00020] in <36d5d97f0e39429283d80156f1c7f1fc>:0

at Meta.WitAi.WitRequest.HandleResponse (System.IAsyncResult asyncResult) [0x00034] in .\Library\PackageCache\com.meta.xr.sdk.voice@69.0.0\Lib\Wit.ai\Scripts\Runtime\WitRequest.cs:633

Request Id: 1777907594-580491d1-b43e-4335-8900-4001fba36b2d [1d5ec5c8-9c59-4de2-9c01-256ea3d2135a]

=== STACK TRACE ===

 

One thing worth mentioning: this service has been working reliably in my project for a long time with no code changes on my end. The issue started appearing on April 22nd out of nowhere, which makes me think something may have changed on the service side rather than in my setup.

Any suggestions would be much appreciated — thanks!

Tonglin

1 Reply

  • Degly's avatar
    Degly
    Start Mentor

    A 503 usually points to a server-side/service availability issue rather than your microphone pipeline.

    Since the audio capture still works, you checked that requests are sent, you have made no code changes and it started suddenly breaking

    I would strongly suspect that either there is a Wit.ai backend instability, the API/service changed or you have an expired/invalid app configuration/token.

    A few things to check:

    • Recreate/regenerate the Wit Server Access Token
    • Test with a completely new minimal Wit app/project
    • Try upgrading from Voice SDK 69 if possible

    Also check if:

    • Your app is hitting rate limits
    • The endpoint region/service changed

    But honestly, repeated 503s with previously working code usually indicate a backend/service issue, not a Unity-side bug.

→ Find helpful resources to begin your development journey in Getting Started

→ Get the latest information about HorizonOS development in News & Announcements.

→ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.

→ Get support or provide help in Questions & Discussions.

→ Show off your work in What I’m Building to get feedback and find playtesters.

→ Looking for documentation?  Developer Docs

→ Looking for account support?  Support Center

→ Looking for the previous forum?  Forum Archive

→ Looking to join the Start program? Apply here.

 

Recent Discussions