johntango / StreamingAvatarJohn

0 stars 0 forks source link

Stuck on "Creating new session...please wait" #1

Open teereximus88 opened 1 month ago

teereximus88 commented 1 month ago

Hey team,

First of all, big thanks for putting this up! If I can get this working it'll be perfect for my use case (building a PoC for post-op patients to have a digital avatar to help them with specific post-op documentation). As the subject states though, I'm getting stuck at the beginning. All I changed in my cloned repo was adding the API keys and OpenAI Assistants ID.

I've triple checked the APIs and they're valid with plenty of usage available. Any other thoughts? Appreciate the help!

Screenshot 2024-09-24 at 2 36 04 PM
johntango commented 1 month ago

You may need a different key for the HeyGen streaming service. I believe you need an Enterprise level account https://docs.heygen.com/reference/authentication

Their API is a bit weird at present. The problem is that for speed we need to make a “Fetch” call from the Web Page to their streaming server. Since a Web Page source code can be viewed by anyone we should create a one time key to use in that call. However, in their demo (which I followed) they just use the Enterprise Key. In their demo using Nextjs they do it properly but I hate using React/NextJS for demo purposes because it clutters up and hides what is really going on.

Anyway I think it’s a Key problem that you have.

-john

From: teereximus88 @.> Date: Tuesday, September 24, 2024 at 14:40 To: johntango/StreamingAvatarJohn @.> Cc: Subscribed @.***> Subject: [johntango/StreamingAvatarJohn] Stuck on "Creating new session...please wait" (Issue #1)

Hey team,

First of all, big thanks for putting this up! If I can get this working it'll be perfect for my use case (building a PoC for post-op patients to have a digital avatar to help them with specific post-op documentation). As the subject states though, I'm getting stuck at the beginning. All I changed in my cloned repo was adding the API keys and OpenAI Assistants ID.

I've triple checked the APIs and they're valid with plenty of usage available. Any other thoughts? Appreciate the help! Screenshot.2024-09-24.at.2.36.04.PM.png (view on web)https://github.com/user-attachments/assets/37c582f5-1de9-4acc-8fb4-a66de942e5a7

— Reply to this email directly, view it on GitHubhttps://github.com/johntango/StreamingAvatarJohn/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKI6AWPVU6ETYOSMJ5TZQ3TZYGWYFAVCNFSM6AAAAABOY5IC36VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DMMBZHE3DANQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

teereximus88 commented 1 month ago

Ahhh, got it. Big thanks for the prompt response!