Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Audio Connector Sample - Authentication Error

    Posted 08-08-2025 16:02

    Im trying to use the AudioConnector sample but Im receiving an authentication error from OpenAIA. 
    Would like to check if the provider url is correct and if it is public one (wss://api.openai.com/v1/realtime?model=gpt-4o-realtime-preview-2024-10-01): 


    #CXasCode
    #Integrations

    ------------------------------
    Matheus Scharf
    ------------------------------


  • 2.  RE: Audio Connector Sample - Authentication Error

    Posted 08-13-2025 19:27

    Looking at the open-ai.ts file I am wondering if perhaps you did not supply a valid OpenAI key?



    ------------------------------
    George Ganahl GCCX-AI, GCP, GCSME, ICCE, ICHD, etc.
    Technical Adoption Champion
    Genesys
    2024 Community Member of the Year
    ------------------------------



  • 3.  RE: Audio Connector Sample - Authentication Error

    Posted 08-14-2025 18:43

    Hi George. Thanks for your answer.

    I configured the OPENAI_API_KEY inside of .env file. 

    Can I access 'wss://api.openai.com/v1/realtime?model=gpt-4o-realtime-preview-2024-10-01' with my OPENAI_API_KEY? Does not makes sense to me.



    ------------------------------
    Matheus Scharf
    ------------------------------



  • 4.  RE: Audio Connector Sample - Authentication Error

    Posted 08-15-2025 02:58

    Hi!

    In open-ai.ts file the header format should be as follows:

    headers: {
                    Authorization: `Bearer ${OPENAI_API_KEY}`,
                    "OpenAI-Beta": "realtime=v1"
                }


    ------------------------------
    Armands Bunkovskis
    Adventus Solutions Sia
    ------------------------------



  • 5.  RE: Audio Connector Sample - Authentication Error

    Posted 08-25-2025 13:24

    Thank you @Armands Bunkovskis 

    I will adjust it and try again. 



    ------------------------------
    Matheus ScharfMatheus Scharf
    ------------------------------



  • 6.  RE: Audio Connector Sample - Authentication Error

    Posted 09-26-2025 04:01
    Edited by Yonezawa Takuya 09-26-2025 04:40

    @Matheus Scharf

    Hello, sorry to interrupt.
     
    I'm also experiencing the same OpenAI authentication error and can't get the audio connector sample to work. If you've found a solution, would it be possible to share it?

    Also, I believe there are syntax errors in the prompt section as well.
    If you know a solution for that too, I'd appreciate it if you could let me know.

    ------------------------------
    Yonezawa Takuya
    ------------------------------



  • 7.  RE: Audio Connector Sample - Authentication Error

    Posted 3 days ago

    Hi @Yonezawa Takuya. Unfortunately I did not find the solution for the provided sample.



    ------------------------------
    Matheus Scharf
    ------------------------------