• Stars
    star
    610
  • Rank 73,497 (Top 2 %)
  • Language
    C#
  • License
    Apache License 2.0
  • Created over 4 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ChatdollKit enables you to make your 3D model into a chatbot

ChatdollKit

3D virtual assistant SDK that enables you to make your 3D model into a voice-enabled chatbot. 🇯🇵日本語のREADMEはこちら

  • 🇬🇧 Live demo English Say "Hello" to start conversation. This demo just returns what you say (echo).
  • 🇯🇵 Live demo in Japanese「こんにちは」と話しかけると会話がスタートします。会話がスタートしたら、雑談に加えて「東京の天気は?」などと聞くと天気予報を教えてくれます。

✨ Features

  • 3D Model

    • Speech and motion synchronization
    • Face expression control
    • Blink and lipsync
  • Dialog

    • Speech-to-Text and Text-to-Speech (Azure, Google, Watson etc)
    • Dialog state management
    • Intent extraction and topic routing
    • ChatGPT with emotion engine
  • I/O

    • Wakeword
    • Camera and QR Code
  • Platforms

    • Windows / Mac / Linux / iOS / Android and anywhere Unity supports
    • VR / AR / WebGL / Gatebox

... and more! See ChatdollKit Documentation to learn details.

🚀 Quick start

You can learn how to setup ChatdollKit by watching this 2 minutes video: https://www.youtube.com/watch?v=aJ0iDZ0o4Es

📦 Import packages

Download the latest version of ChatdollKit.unitypackage and import it into your Unity project after import dependencies;

🐟 Resource preparation

Add 3D model to the scene and adjust as you like. Also install required resources for the 3D model like shaders etc. In this README, I use Cygnet-chan that we can perchase at Booth. https://booth.pm/ja/items/1870320

And, import animation clips. In this README, I use Anime Girls Idle Animations Free. I believe it is worth for you to purchase the pro edition👍

🎁 Put ChatdollKit prefab

Put ChatdollKit/Prefabs/ChatdollKit or ChatdollKit/Prefabs/ChatdollKitVRM to the scene. And, create EventSystem to use UI components.

🐈 ModelController

Select Setup ModelController in the context menu of ModelController. If NOT VRM, make sure that shapekey for blink to Blink Blend Shape Name is set after setup. If not correct or blank, set it manually.

💃 Animator

Select Setup Animator in the context menu of ModelController and select the folder that contains animation clips or their parent folder. In this case put animation clips in 01_Idles and 03_Others onto Base Layer for override blending, 02_Layers onto Additive Layer for additive blending.

Next, see the Base Layer of newly created AnimatorController in the folder you selected. Confirm the value for transition to the state you want to set it for idle animation.

Lastly, set the value to Idle Animation Value on the inspector of ModelController.

🦜 DialogController

On the inspector of DialogController, set Wake Word to start conversation (e.g. hello / こんにちは🇯🇵), Cancel Word to stop comversation (e.g. end / おしまい🇯🇵), Prompt Voice to require voice request from user (e.g. what's up? / どうしたの?🇯🇵).

🍣 ChatdollKit

Select the speech service (Azure/Google/Watson) you use and set API key and some properties like Region and BaseUrl on inspector of ChatdollKit.

🍳 Skill

Attach Examples/Echo/Skills/EchoSkill to ChatdollKit. This is a skill for justs echo. Or, attach Examples/ChatGPT/Skills/ChatGPTSkill and set OpenAI API Key if you want to enjoy conversation with AI😊

🤗 Face Expression (NON VRM only)

Select Setup VRC FaceExpression Proxy in the context menu of VRC FaceExpression Proxy. Neutral, Joy, Angry, Sorrow and Fun face expression with all zero value and Blink face with blend shape for blink = 100.0f are automatically created.

You can edit shape keys by editing Face Clip Configuration directly or by capturing on inspector of VRCFaceExpressionProxy.

🥳 Run

Press Play button of Unity editor. You can see the model starts with idling animation and blinking.

  • Say the word you set to Wake Word on inspector (e.g. hello / こんにちは🇯🇵)
  • Your model will reply the word you set to Prompt Voice on inspector (e.g. what's up? / どうしたの?🇯🇵)
  • Say something you want to echo like "Hello world!"
  • Your model will reply "Hello world"

👷‍♀️ Build your own app

See the MultiSkills example. That is more rich application including:

  • Dialog Routing: Router is an example of how to decide the topic user want to talk
  • Processing dialog: TranslateDialog is an example that shows how to process dialog

We are now preparing contents to create more rich virtual assistant using ChatdollKit.

🌐 Run on WebGL

Refer to the following tips for now. We are preparing demo for WebGL.

  • It takes 5-10 minutes to build. (It depends on machine spec)
  • Very hard to debug. Error message doesn't show the stacktrace: To use dlopen, you need to use Emscripten’s linking support, see https://github.com/kripken/emscripten/wiki/Linking
  • Built-in Async/Await doesn't work (app stops at await) because JavaScript doesn't support threading. Use UniTask instead.
  • CORS required for HTTP requests.
  • Microphone is not supported. Use ChatdollMicrophone that is compatible with WebGL.
  • Compressed audio formats like MP3 are not supported. Use WAV in TTS Loaders.
  • OVRLipSync is not supported. Use uLipSync and uLipSyncWebGL instead.
  • If you want to show multibyte characters in message window put the font that includes multibyte characters to your project and set it to message windows.

❤️ Thanks

More Repositories

1

aiavatarkit

🥰 Building AI-based conversational avatars lightning fast ⚡️💬
Python
88
star
2

TinySeleniumVBA

A tiny Selenium wrapper written in pure VBA
VBA
55
star
3

chatmemory

Long-term and medium-term memories between you and chatbot💕
Python
39
star
4

uLipSyncWebGL

An experimental plugin to use uLipSync on WebGL platform.
JavaScript
36
star
5

minette-python

Minette is a minimal and extensible chatbot framework.
Python
28
star
6

aiproxy

🦉AIProxy is a reverse proxy for ChatGPT API that provides monitoring, logging, and filtering requests and responses.
Python
25
star
7

gpt3-contextual

Contextual chat with GPT-3 model of OpenAI API
Python
24
star
8

linebot-project-template

そこそこちゃんとしたLINEBOTを高速開発するプロジェクトテンプレート
Python
16
star
9

aiolinebot

AioLineBotApi provides asynchronous interface for LINE messaging API
Python
16
star
10

vsslite

A vector similarity search engine for humans🥳
Python
13
star
11

DynamicBoneConverter

Convert DynamicBone to VRM SpringBone extremely easily.
C#
7
star
12

chatgpt-vba

ChatGPT API Client for VBA
VBA
7
star
13

pycoki

Python Compatible Key-value-store Interface for databases
Python
7
star
14

linebot-template

A template to build LINE bot extremely fast🚀
Python
5
star
15

linedify

💬⚡ linedify: Supercharging your LINE Bot with Dify power!
Python
4
star
16

dify-voicevox-tts

VOICEVOX text-to-speech custom model for Dify
Python
3
star
17

richmenu

RichMenu Manager for Line Messaging API
Python
2
star
18

chatdollkit-server-python

SDK to create backend APIs for ChatdollKit.
Python
2
star
19

NLogFactoryForUnity

A simple NLog logger factory including UnityConsoleTarget.
C#
1
star
20

UnaSlidesSupport

Support repository for UnaSlides - VRChat Presentation System
Python
1
star
21

signin-with-apple-python

A python sample code for Sign in with Apple.
HTML
1
star
22

webmecab

MeCab over HTTP WebService Sample Project
C#
1
star
23

minette-symphony

Adapter for Symphony to create chatbot using Minette framework.
Python
1
star
24

llm-memory-tool

An experimental implementation for long-term memory in LLMs through function calling.
Python
1
star