├── .eslintrc.json ├── .github └── workflows │ └── nextjs.yml ├── .gitignore ├── LICENSE ├── README.md ├── next.config.js ├── package.json ├── postcss.config.js ├── public ├── bg-c.png ├── github-mark-white.svg ├── idle_loop.vrma ├── ogp-en.png └── ogp.png ├── src ├── components │ ├── assistantText.tsx │ ├── chatLog.tsx │ ├── githubLink.tsx │ ├── iconButton.tsx │ ├── introduction.tsx │ ├── link.tsx │ ├── menu.tsx │ ├── messageInput.tsx │ ├── messageInputContainer.tsx │ ├── meta.tsx │ ├── restreamTokens.tsx │ ├── settings.tsx │ ├── textButton.tsx │ └── vrmViewer.tsx ├── features │ ├── chat │ │ └── openAiChat.ts │ ├── constants │ │ ├── elevenLabsParam.ts │ │ ├── koeiroParam.ts │ │ └── systemPromptConstants.ts │ ├── elevenlabs │ │ └── elevenlabs.ts │ ├── emoteController │ │ ├── autoBlink.ts │ │ ├── autoLookAt.ts │ │ ├── emoteConstants.ts │ │ ├── emoteController.ts │ │ └── expressionController.ts │ ├── lipSync │ │ ├── lipSync.ts │ │ └── lipSyncAnalyzeResult.ts │ ├── messages │ │ ├── messageMiddleOut.ts │ │ ├── messages.ts │ │ └── speakCharacter.ts │ └── vrmViewer │ │ ├── model.ts │ │ ├── viewer.ts │ │ └── viewerContext.ts ├── lib │ ├── VRMAnimation │ │ ├── VRMAnimation.ts │ │ ├── VRMAnimationLoaderPlugin.ts │ │ ├── VRMAnimationLoaderPluginOptions.ts │ │ ├── VRMCVRMAnimation.ts │ │ ├── loadVRMAnimation.ts │ │ └── utils │ │ │ ├── arrayChunk.ts │ │ │ ├── linearstep.ts │ │ │ └── saturate.ts │ └── VRMLookAtSmootherLoaderPlugin │ │ ├── VRMLookAtSmoother.ts │ │ └── VRMLookAtSmootherLoaderPlugin.ts ├── pages │ ├── _app.tsx │ ├── _document.tsx │ ├── api │ │ ├── chat.ts │ │ ├── refresh-token.ts │ │ └── tts.ts │ └── index.tsx ├── services │ ├── sample_event_messages.txt │ ├── tokenRefreshService.ts │ └── websocketService.ts ├── styles │ └── globals.css └── utils │ ├── auth.ts │ ├── buildUrl.ts │ └── wait.ts ├── tailwind.config.js ├── tsconfig.json └── watch.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.github/workflows/nextjs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/.github/workflows/nextjs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/README.md -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/bg-c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/public/bg-c.png -------------------------------------------------------------------------------- /public/github-mark-white.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/public/github-mark-white.svg -------------------------------------------------------------------------------- /public/idle_loop.vrma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/public/idle_loop.vrma -------------------------------------------------------------------------------- /public/ogp-en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/public/ogp-en.png -------------------------------------------------------------------------------- /public/ogp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/public/ogp.png -------------------------------------------------------------------------------- /src/components/assistantText.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/assistantText.tsx -------------------------------------------------------------------------------- /src/components/chatLog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/chatLog.tsx -------------------------------------------------------------------------------- /src/components/githubLink.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/githubLink.tsx -------------------------------------------------------------------------------- /src/components/iconButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/iconButton.tsx -------------------------------------------------------------------------------- /src/components/introduction.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/introduction.tsx -------------------------------------------------------------------------------- /src/components/link.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/link.tsx -------------------------------------------------------------------------------- /src/components/menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/menu.tsx -------------------------------------------------------------------------------- /src/components/messageInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/messageInput.tsx -------------------------------------------------------------------------------- /src/components/messageInputContainer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/messageInputContainer.tsx -------------------------------------------------------------------------------- /src/components/meta.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/meta.tsx -------------------------------------------------------------------------------- /src/components/restreamTokens.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/restreamTokens.tsx -------------------------------------------------------------------------------- /src/components/settings.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/settings.tsx -------------------------------------------------------------------------------- /src/components/textButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/textButton.tsx -------------------------------------------------------------------------------- /src/components/vrmViewer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/components/vrmViewer.tsx -------------------------------------------------------------------------------- /src/features/chat/openAiChat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/chat/openAiChat.ts -------------------------------------------------------------------------------- /src/features/constants/elevenLabsParam.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/constants/elevenLabsParam.ts -------------------------------------------------------------------------------- /src/features/constants/koeiroParam.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/constants/koeiroParam.ts -------------------------------------------------------------------------------- /src/features/constants/systemPromptConstants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/constants/systemPromptConstants.ts -------------------------------------------------------------------------------- /src/features/elevenlabs/elevenlabs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/elevenlabs/elevenlabs.ts -------------------------------------------------------------------------------- /src/features/emoteController/autoBlink.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/emoteController/autoBlink.ts -------------------------------------------------------------------------------- /src/features/emoteController/autoLookAt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/emoteController/autoLookAt.ts -------------------------------------------------------------------------------- /src/features/emoteController/emoteConstants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/emoteController/emoteConstants.ts -------------------------------------------------------------------------------- /src/features/emoteController/emoteController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/emoteController/emoteController.ts -------------------------------------------------------------------------------- /src/features/emoteController/expressionController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/emoteController/expressionController.ts -------------------------------------------------------------------------------- /src/features/lipSync/lipSync.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/lipSync/lipSync.ts -------------------------------------------------------------------------------- /src/features/lipSync/lipSyncAnalyzeResult.ts: -------------------------------------------------------------------------------- 1 | export interface LipSyncAnalyzeResult { 2 | volume: number; 3 | } 4 | -------------------------------------------------------------------------------- /src/features/messages/messageMiddleOut.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/messages/messageMiddleOut.ts -------------------------------------------------------------------------------- /src/features/messages/messages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/messages/messages.ts -------------------------------------------------------------------------------- /src/features/messages/speakCharacter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/messages/speakCharacter.ts -------------------------------------------------------------------------------- /src/features/vrmViewer/model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/vrmViewer/model.ts -------------------------------------------------------------------------------- /src/features/vrmViewer/viewer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/vrmViewer/viewer.ts -------------------------------------------------------------------------------- /src/features/vrmViewer/viewerContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/features/vrmViewer/viewerContext.ts -------------------------------------------------------------------------------- /src/lib/VRMAnimation/VRMAnimation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/lib/VRMAnimation/VRMAnimation.ts -------------------------------------------------------------------------------- /src/lib/VRMAnimation/VRMAnimationLoaderPlugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/lib/VRMAnimation/VRMAnimationLoaderPlugin.ts -------------------------------------------------------------------------------- /src/lib/VRMAnimation/VRMAnimationLoaderPluginOptions.ts: -------------------------------------------------------------------------------- 1 | export interface VRMAnimationLoaderPluginOptions { 2 | } 3 | -------------------------------------------------------------------------------- /src/lib/VRMAnimation/VRMCVRMAnimation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/lib/VRMAnimation/VRMCVRMAnimation.ts -------------------------------------------------------------------------------- /src/lib/VRMAnimation/loadVRMAnimation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/lib/VRMAnimation/loadVRMAnimation.ts -------------------------------------------------------------------------------- /src/lib/VRMAnimation/utils/arrayChunk.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/lib/VRMAnimation/utils/arrayChunk.ts -------------------------------------------------------------------------------- /src/lib/VRMAnimation/utils/linearstep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/lib/VRMAnimation/utils/linearstep.ts -------------------------------------------------------------------------------- /src/lib/VRMAnimation/utils/saturate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/lib/VRMAnimation/utils/saturate.ts -------------------------------------------------------------------------------- /src/lib/VRMLookAtSmootherLoaderPlugin/VRMLookAtSmoother.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/lib/VRMLookAtSmootherLoaderPlugin/VRMLookAtSmoother.ts -------------------------------------------------------------------------------- /src/lib/VRMLookAtSmootherLoaderPlugin/VRMLookAtSmootherLoaderPlugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/lib/VRMLookAtSmootherLoaderPlugin/VRMLookAtSmootherLoaderPlugin.ts -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/pages/_document.tsx -------------------------------------------------------------------------------- /src/pages/api/chat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/pages/api/chat.ts -------------------------------------------------------------------------------- /src/pages/api/refresh-token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/pages/api/refresh-token.ts -------------------------------------------------------------------------------- /src/pages/api/tts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/pages/api/tts.ts -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/services/sample_event_messages.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/services/sample_event_messages.txt -------------------------------------------------------------------------------- /src/services/tokenRefreshService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/services/tokenRefreshService.ts -------------------------------------------------------------------------------- /src/services/websocketService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/services/websocketService.ts -------------------------------------------------------------------------------- /src/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/styles/globals.css -------------------------------------------------------------------------------- /src/utils/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/utils/auth.ts -------------------------------------------------------------------------------- /src/utils/buildUrl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/utils/buildUrl.ts -------------------------------------------------------------------------------- /src/utils/wait.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/src/utils/wait.ts -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/tsconfig.json -------------------------------------------------------------------------------- /watch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoan37/ChatVRM/HEAD/watch.json --------------------------------------------------------------------------------