https://github.com/ln613/d-id
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ln613/d-id
- Owner: ln613
- License: mit
- Created: 2024-07-29T22:41:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-07T18:45:28.000Z (almost 2 years ago)
- Last Synced: 2025-06-03T17:57:10.288Z (about 1 year ago)
- Language: JavaScript
- Size: 20.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Streaming Live Demo by D-ID
* (install express) Open a terminal in the folder and run - `npm install express`
* (add your API key) Edit the `api.json` inside the uncompressed folder and replace the emoji with your key
* (select service) in the same `api.json` file, edit the `service` field to choose your avatar type, use `talks` for an avatar made from an image or `clips` to use a premade HQ avatar from a video
## Start Streaming Demo:
* (bring up the app) in the folder (ctr left click on folder through finder) open the terminal run `node app.js`
* you should see this message - server started on port localhost:3000
* (open the app) In the browser add localhost:3000
* (connect) press connect you should see the connection ready
* (stream) Press the start button to start streaming

## ⭐ Start Agents Demo [NEW!] ⭐
* (bring up the app) in the folder (ctr left click on folder through finder) open the terminal `run node app.js`
* you should see this message - server started on port localhost:3000
* (open the app) In the browser add localhost:3000/agents
* press 'Create new Agent with Knowledge' to create a new Agent. All API endpoints' responses are visible in the console.
* press 'Connect' to connect to the agent, once done, type a message and press 'Send' to start a chat
* you can store the created `agentId` and `chatID` variables and at the bottom of the `agents-client-api.js` file for future chats with your newly created Agent.
