Streaming Live Demo by D-ID
Please consider leaving as star this was some work :)
Initial Setup:
- (install express) open a terminal in the folder:
run this: npm install express
run this: npm install openai
- (add your d-id api key) edit the
api.json
inside the uncompressed folder and replace the emoji with your key
- Run a test to ensure yor api is set correctly by checking d-id credit balance: Run test_d_id.js
- (add your OpenAI api key) edit the
config.json
inside the uncompressed folder and replace the emoji with your key
- Run a test to ensure yor api is set correctly by checking ChatGPT: Run test_openai.js
- Got issues? Cut and paste to ChartGPT and ask for assistance as both tests must woprk before proceeding
Start the demo:
- You should see this message - server started on port localhost:3000
- (open index.html app) in the browser add localhost:3000
Start the demo:
- Open a session in your terminal in the folder with our code run this: node app.js
- You should see this message - server started on port localhost:3000
- (open index.html app) in the browser add localhost:3000
- (connect) press connect you should see the connection ready
- (Enter Chat Text) press the start button to start streaming
Final Thoughts
- Be patient and enjoy the puzzle if things are not working right away -- stay with it you will get it!
https://youtu.be/WTONZ6T1LmA
![image](https://private-user-images.githubusercontent.com/47751509/278777070-f10480b6-530e-478c-8723-8d7f4aca34f6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDc0MTcyNTAsIm5iZiI6MTcwNzQxNjk1MCwicGF0aCI6Ii80Nzc1MTUwOS8yNzg3NzcwNzAtZjEwNDgwYjYtNTMwZS00NzhjLTg3MjMtOGQ3ZjRhY2EzNGY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjA4VDE4MjkxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA1MmZhMDVhNWE0OTEyNzhhMWVjMTNiYWY5YTFiZDk0MDZhZGE0YmZhODc0OTFlMTcyZGM3MGJjMmUwOWRmMzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.iYLis8xCZYQSXiMYnU1rbwD14s67poI4IdsQtOQy00c)