Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for v0.8.0 beta #338

Merged
merged 2 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Material:
m_PrefabAsset: {fileID: 0}
m_Name: N00_000_Hair_00_HAIR (Instance)
m_Shader: {fileID: 4800000, guid: 1a97144e4ad27a04aafd70f7b915cedb, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- MTOON_OUTLINE_COLOR_MIXED
- MTOON_OUTLINE_WIDTH_WORLD
- _ALPHATEST_ON
- _NORMALMAP
m_InvalidKeywords: []
Expand All @@ -20,6 +24,7 @@ Material:
stringTagMap:
RenderType: TransparentCutout
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
Expand Down Expand Up @@ -65,7 +70,7 @@ Material:
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AlphaToMask: 0
- _AlphaToMask: 1
- _BlendMode: 1
- _BumpScale: 1
- _CullMode: 0
Expand All @@ -79,8 +84,8 @@ Material:
- _OutlineCullMode: 1
- _OutlineLightingMix: 1
- _OutlineScaledMaxDistance: 4.34
- _OutlineWidth: 0
- _OutlineWidthMode: 0
- _OutlineWidth: 0.037
- _OutlineWidthMode: 1
- _ReceiveShadowRate: 1
- _RimFresnelPower: 100
- _RimLift: 0.1
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,31 @@
... and more! See [ChatdollKit Documentation](Documents/manual.md) to learn details.


## 💎 What's New in Version 0.8 Beta

- **⚡ Optimized AI Dialog Processing**: We've boosted response speed with parallel processing and made it easier for you to customize behavior with your own code. Enjoy faster, more flexible AI conversations!
- **🥰 Emotionally Rich Speech**: Adjusts vocal tone dynamically to match the conversation, delivering more engaging and natural interactions.
- **🎤 Enhanced Microphone Control**: Microphone control is now more flexible than ever! Easily start/stop devices, mute/unmute, and adjust voice recognition thresholds independently.


## 🚀 Quick start

You can learn how to setup ChatdollKit by watching this video that runs the demo scene(including chat with ChatGPT): https://www.youtube.com/watch?v=rRtm18QSJtc

[![](https://img.youtube.com/vi/rRtm18QSJtc/0.jpg)](https://www.youtube.com/watch?v=rRtm18QSJtc)

To run the demo for version 0.8, please follow the steps below after importing the dependencies:

- Open scene `Demo/Demo08`.
- Select `AIAvatarVRM` object in scene.
- Set OpenAI API key to following components on inspector:
- ChatGPTService
- OpenAITTSLoader
- OpenAISpeechListener
- Run on Unity Editor.
- Say "こんにちは" or word longer than 3 characters.


### 📦 Import packages

Download the latest version of [ChatdollKit.unitypackage](https://github.com/uezo/ChatdollKit/releases) and import it into your Unity project after import dependencies;
Expand Down
4 changes: 0 additions & 4 deletions Scripts/IO/SimpleCamera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public class SimpleCamera : MonoBehaviour
public bool IsCameraEnabled { get; private set; } = false;
public bool IsAlreadyStarted { get; private set; } = false;
private WebCamTexture webCamTexture;
private bool isStillImageAnimating;

private void Awake()
{
Expand Down Expand Up @@ -410,8 +409,6 @@ public byte[] GetStillImage()

private IEnumerator StillButtonFadeEffect()
{
isStillImageAnimating = true;

float originalAlpha = stillFadeImage.color.a;

stillFadeImage.color = new Color(stillFadeImage.color.r, stillFadeImage.color.g, stillFadeImage.color.b, 0.7f);
Expand All @@ -430,7 +427,6 @@ private IEnumerator StillButtonFadeEffect()

stillFadeImage.color = new Color(stillFadeImage.color.r, stillFadeImage.color.g, stillFadeImage.color.b, originalAlpha);
stillFadeImage.gameObject.SetActive(false);
isStillImageAnimating = false;
}
}
}