==============================================

How to Get an OpenAI API Key

1. Go to the OpenAI platform
   	
	Visit the OpenAI website:
   	https://platform.openai.com

2. Sign In or Create an Account
	
	Log in using your existing OpenAI account, or create a new account if you do not have one. 	

3. Open the API Keys page

	After logging in, navigate to:
	Dashboard → View API keys
	
or use the direct link:
	https://platform.openai.com/api-keys
	https://platform.openai.com/settings/organization/general

4. Create a new API key
	Click “Create new secret key”.

5. Add funds  https://platform.openai.com/settings/organization/billing/overview

5. Use the API Key to Run the Sample Code.

==============================================

VaxServerCOM.pas is the wrapper class for the DLL. Do not modify this file.

==============================================

Open the sample code:

- VaxServerExCOM.pas, please have a look at OnIncomingCall() event. Copy and Paste your "OpenAI API Key".

- VaxServerExCOM.pas, please have a look at OnCallSessionConnected() event and It sends Hello to the Model and then model speaks first.

==============================================

VaxServerVoAI.dll must be copied to the same folder as the .exe file.

==============================================

Project.exe.manifest must be copied to the same folder as the .exe file.

===============================================

VaxServerFileSIP.bin is a trial license key file and must be copied to the same folder as the .exe file.

==============================================

1. Open the project in Delphi RAD Studio 13 or above.
2. Compile and run it.

For troubleshooting in case of SIP client connection failure to Sample Code or, the failure of voice feature, please open the Listen Port (Inbound UDP: 8060) and RTP Ports (Inbound UDP: 20000 to 30000) in the firewall of the machine (computer) where Sample code is running.

===============================================

The Demo VaxPhone application is available for download at the link below for testing purposes:
https://www.vaxvoip.com/phonesdk/AppDemo/wOS/DemoApp.zip