K3
October 25, 2024, 5:41pm
21
Reply by jeff_3028 | 2024-10-25 17:41:44
I cloned and tried to run this: GitHub - Conv-AI/ThreeJs-World-Tutorial at tutorial-v3
Images:
Embedded Content:
GitHub - Conv-AI/ThreeJs-World-Tutorial at tutorial-v3
This repository contains a React Three Fiber 3D world with ConvAI NPCs. The 3D world is rendered using Three.js and React Three Fiber. The NPCs are created using Convai. - GitHub - Conv-AI/ThreeJs…
Link:
GitHub - Conv-AI/ThreeJs-World-Tutorial at tutorial-v3
K3
October 25, 2024, 5:41pm
22
Reply by jeff_3028 | 2024-10-25 17:41:59
This is all I can see
K3
October 25, 2024, 5:42pm
23
Reply by jeff_3028 | 2024-10-25 17:42:05
Is it supposed to be like this?
K3
October 26, 2024, 9:37am
24
Reply by jeff_3028 | 2024-10-26 09:37:23
<@448547072527040523> please help
K3
October 26, 2024, 1:42pm
25
Reply by jeff_3028 | 2024-10-26 13:42:08
Is this code correct?
import React, { useEffect, useRef } from ‘react’;
import { BookOpen } from ‘lucide-react’;
import { ConvaiClient } from ‘convai-web-sdk’; // Import Convai SDK
function App() {
const convaiClient = useRef(null); // Ref to hold the Convai client
useEffect(() => {
const convaiContainer = document.getElementById(‘convai-container’); // Get the container div
if (convaiContainer) {
// Initialize the Convai Client
convaiClient.current = new ConvaiClient({
apiKey: ‘…’,
characterId: ‘6ef5977e-8fe1-11ef-8f98-42010a7be011’,
container: convaiContainer, /
enableAudio: true,
disableAudioGeneration: false,
});
convaiClient.current.setResponseCallback((response) => {
if (response.hasTextData()) {
console.log('Response Text:', response.getTextData());
}
if (response.hasAudioData()) {
const audioData = response.getAudioData_asU8();
console.log('Received Audio Data:', audioData);
}
});
return () => {
if (convaiClient.current) {
convaiClient.current.resetSession();
}
};
} else {
console.error('Convai container not found');
}
}, );
return (
Interactive Lesson with Convai Avatar
{/* Convai character container */}
);
}
export default App;
K3
October 26, 2024, 1:42pm
26
Reply by jeff_3028 | 2024-10-26 13:42:22
<@1023671043287699568> please help
K3
October 26, 2024, 2:02pm
27
Reply by k3kalinix | 2024-10-26 14:02:22
My teammates will help you on Monday.
K3
October 27, 2024, 7:22pm
28
Reply by jeff_3028 | 2024-10-27 19:22:02
<@153125407288328193> Could you please review the code and let me know how to fix it. The page loads but the character doesnt
K3
October 28, 2024, 9:31am
29
Reply by k3kalinix | 2024-10-28 09:31:28
<@368669084952428554>
K3
October 28, 2024, 12:45pm
30
Reply by saurav0037 | 2024-10-28 12:45:11
<@640616700751904806> whats the console error
K3
October 28, 2024, 1:01pm
31
Replying to saurav0037’s Message
Reply by saurav0037 | 2024-10-28 12:45:11
<@640616700751904806> whats the console error
Reply by jeff_3028 | 2024-10-28 13:01:17
It doesnt show any error, it just doent load the character
K3
October 28, 2024, 1:10pm
32
Reply by jeff_3028 | 2024-10-28 13:10:01
Images:
K3
October 28, 2024, 1:10pm
33
Reply by jeff_3028 | 2024-10-28 13:10:11
It’s supposed to load in the container
K3
October 28, 2024, 1:11pm
34
Reply by saurav0037 | 2024-10-28 13:11:31
oh its just a container or did you add the canvas element?
K3
October 28, 2024, 7:22pm
35
Replying to jeff_3028’s Message
Reply by jeff_3028 | 2024-10-26 13:42:08
Is this code correct?
import React, { useEffect, useRef } from ‘react’;
import { BookOpen } from ‘lucide-react’;
import { ConvaiClient } from ‘convai-web-sdk’; // Import Convai SDK
function App() {
const convaiClient = useRef(null); // Ref to hold the Convai client
useEffect(() => {
const convaiContainer = document.getElementById(‘convai-container’); // Get the container div
if (convaiContainer) {
// Initialize the Convai Client
convaiClient.current = new ConvaiClient({
apiKey: ‘…’,
characterId: ‘6ef5977e-8fe1-11ef-8f98-42010a7be011’,
container: convaiContainer, /
enableAudio: true,
disableAudioGeneration: false,
});
convaiClient.current.setResponseCallback((response) => {
if (response.hasTextData()) {
console.log('Response Text:', response.getTextData());
}
if (response.hasAudioData()) {
const audioData = response.getAudioData_asU8();
console.log('Received Audio Data:', audioData);
}
});
return () => {
if (convaiClient.current) {
convaiClient.current.resetSession();
}
};
} else {
console.error('Convai container not found');
}
}, );
return (
Interactive Lesson with Convai Avatar
{/* Convai character container */}
);
}
export default App;
Reply by jeff_3028 | 2024-10-28 19:22:55
This is the exact code I used for it
K3
October 29, 2024, 6:02pm
36
Reply by saurav0037 | 2024-10-29 18:02:22
<@640616700751904806> Yes there is no rendering here
K3
October 29, 2024, 6:03pm
37
Reply by saurav0037 | 2024-10-29 18:03:19
Contribute to Conv-AI/RPM-Lipsync development by creating an account on GitHub.
Contribute to Conv-AI/Reallusion-web development by creating an account on GitHub.
Embedded Content:
GitHub - Conv-AI/RPM-Lipsync
Contribute to Conv-AI/RPM-Lipsync development by creating an account on GitHub.
Link: GitHub - Conv-AI/RPM-Lipsync
GitHub - Conv-AI/Reallusion-web
Contribute to Conv-AI/Reallusion-web development by creating an account on GitHub.
Link:
GitHub - Conv-AI/Reallusion-web
K3
October 29, 2024, 6:03pm
38
Reply by saurav0037 | 2024-10-29 18:03:26
You can look into these
K3
October 29, 2024, 8:17pm
39
Replying to saurav0037’s Message
Reply by saurav0037 | 2024-10-29 18:03:26
You can look into these
Reply by jeff_3028 | 2024-10-29 20:17:50
Thank you. Will check them out
K3
Closed
November 25, 2024, 12:14pm
40
This conversation happened on the Convai Discord Server, so this post will be closed.