I’m using LiveKit (and my own Grok) to build my xAI Grok Voice Agent and 3 things are problematic. (1) I chose “Leo” for the voice, and when I go back to make sure “Leo” is still clicked, it’s reverted back to no choice even after saving. (2) When I run a Preview test, I only get a chat box; the ‘microphone’ doesn’t light up (Not sure it’s supposed to, to show connectivity) but if the mic is pressed, it turns red/off only. (3) My AI should greet the user upon initiation of chat, but I hear nothing and when I speak, hear no response (I’m assuming because what I see is a type-to-chat box, and not anything else). After deployment, still no interaction with Agent. The log below shows multiple errors. My own personal disclaimer: I am neither a web developer, web designer, etc.. I am doing this myself out of necessity; so I apologize in advance for my naivete.
It looks like something is wrong with the connection to xAI. I had something similar happen to me and the root cause is I had not provided a valid xAI API key. I see you have defined an environment variable for the key (though obviously I don’t have permission to see what value you have defined), but I wonder if the key is valid - the first place to check would be your xAI dashboard at console.x.ai.
Hi, Darryn! Thanks for the suggestion to check my API key via xAI. I’ve been working on a Windows system and just got my Mac back up so I’m migrating my work back to IOS and will check my API key as soon as I can and we’ll see if it’s good or bad. I’ll report back as soon as I’ve migrated. Cyndi
Darryn, I wanted to thank you again, so much, for your reply. Since you were kind enough to reach out to me, I wanted to let you know the honest truth – regardless of how utterly embarrassing it is – LiveKit was working just fine. What wasn’t working is the fact that I had run out of credits on xAI and couldn’t test any more until I topped-off my account! Once I figured this out, I was able to go back in to LiveKit and now “Myles” is working beautifully! You were 100% correct when you said my “connection to xAI”, although it wasn’t the wrong API Key, it was financial! Warmest Regards, Cyndi
Glad Myles is up and talking . For what it’s worth, every voice-AI dev has lost at least one afternoon to “connection errors” that turned out to be a credit balance issue, auth_failed and your_card_declined look basically identical from the app side. You’re in very good company. @cyndi
Oh my gosh, Muhammad! It took every-single-one of those hours in that day, and the next and perhaps into the next(?) to figure out the culprit. It feels great to be in brilliant company! Thanks for letting me know I’m not the only one!