File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import cn from "./utils/TailwindMergeAndClsx";
7
7
8
8
interface SimliOpenAIProps {
9
9
simli_faceid : string ;
10
- openai_voice : "alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" ;
10
+ openai_voice : "alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" ;
11
11
openai_model : string ;
12
12
initialPrompt : string ;
13
13
onStart : ( ) => void ;
@@ -103,7 +103,7 @@ const SimliOpenAI: React.FC<SimliOpenAIProps> = ({
103
103
) ;
104
104
// openAIClientRef.current.on('response.canceled', handleResponseCanceled);
105
105
106
-
106
+
107
107
await openAIClientRef . current . connect ( ) . then ( ( ) => {
108
108
console . log ( "OpenAI Client connected successfully" ) ;
109
109
openAIClientRef . current ?. createResponse ( ) ;
@@ -354,8 +354,8 @@ const SimliOpenAI: React.FC<SimliOpenAIProps> = ({
354
354
try {
355
355
console . log ( "Starting..." ) ;
356
356
initializeSimliClient ( ) ;
357
- await simliClient ?. start ( ) ;
358
357
eventListenerSimli ( ) ;
358
+ await simliClient ?. start ( ) ;
359
359
} catch ( error : any ) {
360
360
console . error ( "Error starting interaction:" , error ) ;
361
361
setError ( `Error starting interaction: ${ error . message } ` ) ;
@@ -409,9 +409,8 @@ const SimliOpenAI: React.FC<SimliOpenAIProps> = ({
409
409
return (
410
410
< >
411
411
< div
412
- className = { `transition-all duration-300 ${
413
- showDottedFace ? "h-0 overflow-hidden" : "h-auto"
414
- } `}
412
+ className = { `transition-all duration-300 ${ showDottedFace ? "h-0 overflow-hidden" : "h-auto"
413
+ } `}
415
414
>
416
415
< VideoBox video = { videoRef } audio = { audioRef } />
417
416
</ div >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import GitHubLogo from "@/media/github-mark-white.svg";
9
9
10
10
interface avatarSettings {
11
11
name : string ;
12
- openai_voice : "alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" ;
12
+ openai_voice : "alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse" ;
13
13
openai_model : string ;
14
14
simli_faceid : string ;
15
15
initialPrompt : string ;
You can’t perform that action at this time.
0 commit comments