ã¯ããã«
以åãUnity 㧠MMD4Mecanim ãå©ç¨ãã MMD ã¢ãã«ããéããªããã·ã³ã¯ãã¦ããã¹ã£ã¦ãããã¢ã»ããã®ä½æãè¡ãã¾ããã
ãããå©ç¨ãã¦ãã¦ããã£ã¡ããã«ãªããã·ã³ã¯ããã¦ããããã¨ä½åº¦ãææ¦ãããã¨ããã®ã§ãããã¢ã¼ãã®ããæ¹ãåããã諦ãã¦ããæãå æ¥ãMMD4Mecanim ä½è ã§ãã Nora ããï¼@Setereoartsï¼ããMMD4Mecanim ã«ã¦ããã£ã¡ããç¨ã®ã¢ã¼ãã¢ã»ããã追å ãã¦ãã ããã¾ããã
- Stereoarts Homepageï¼2014/07/17çï¼
ãããå©ç¨ãã¦ã¦ããã£ã¡ããããã¤ã¹ãã¼ã¿ã«åããã¦å£ãã¯ãã¦ãããããã«æ´æ°ãã¦ã¿ã¾ããã®ã§ããã®ç´¹ä»ããã¾ãã
ãã¢
å©ç¨æ¹æ³
ã¾ããã¦ããã£ã¡ããã¢ã»ãããMMD4MecanimãMMD4Mecanim-LipSync-Plugin ããããããã¦ã³ãã¼ãã import ãã¾ãã
- http://unity-chan.com/download/guideline.html
- Stereoarts Homepage
- GitHub - hecomi/MMD4Mecanim-LipSync-Plugin: LipSync and TTS Plugin for MMD4Mecanim
ã¦ããã£ã¡ããï¼UnityChan/Prefabs/unitychan
ï¼ãã·ã¼ã³ã«é
ç½®ããMMD4Mecanim-LipSync-Plugin/UnityChanLipSync.cs
ãããã¸ã¢ã¿ãããã¾ããããã¦ãé©å½ãªã¦ããã£ã¡ãããã¤ã¹ï¼e.g. UnityChan/Voice/univ0015
ï¼ã Inspector ã®ãUniy Chan Lip Sync > Play Voice Sound > Audio Clipãã«ã»ããããã²ã¼ã ãéå§ãã¦ãUniy Chan Lip Sync > Play Voice Sound > Audio Clip > Playããã¿ã³ãæ¼ãã¨ãå£ãã¯ããªããåã£ã¦ãããããã«ãªãã¾ãã
ã¹ã¯ãªããããå©ç¨ããé㯠UnityChanLipSync
ã³ã³ãã¼ãã³ããåå¾ã㦠Play()
ãå¼ãã§ä¸ãããåç»ã§ä½¿ç¨ããã¹ã¯ãªããã¯ä»¥ä¸ã«ãªãã¾ãã
using UnityEngine; using System.Collections; [RequireComponent( typeof(UnityChanLipSync) )] public class UnityChanVoicePlayer : MonoBehaviour { private UnityChanLipSync lipSync_; public AudioClip[] audioClips; public int index = 0; void Start() { lipSync_ = GetComponent<UnityChanLipSync>(); } void Update() { if (Input.anyKeyDown) { if (index < 0 || index >= audioClips.Length) index = 0; lipSync_.Play( audioClips[index] ); ++index; } } }
MMD4Mecanim-LipSync-Plugin ã®è©³ç´°ãªå©ç¨æ¹æ³ã¯ä»¥åã®ã¨ã³ããªãã覧ãã ããã
課é¡
åçç´åã«ä¸ç¬ããããªã¼ãºãçºçãã¦ãã¾ã£ã¦ãã¾ããããã¯ãé³å£°è§£æãããããã« AudioClip.Create
㧠PCMReaderCallback
ãã»ãããã¦ããã®ã§ããããã®å
é¨ã§å¼ã³åºããã AudioClip.InvokePCMReaderCallback_Internal()
ãéãå¦çã®ããã§ããããã¡ã¤ã©ãè¦ãã¨ä¸ç¬ 98% ãããã®å¦çãæã£ã¦ãããã¦ããããã®ããã§ããæéãåºæ¥ãæã«è¿½ã£ã¦èª¿æ»ãããã¨æãã¾ãã
ãããã«
表æ ã«å ãã¦å£ãåãããããã¨ãããã£ã©ã¯ã¿ã¼ãæ´»ãæ´»ãããã¨æãã¾ãã®ã§ããæ´»ç¨é ããã¨å¬ããã§ããä½ãä¸å ·åããä¸æãªç¹ãããã¾ããã Twitter çã§ãé£çµ¡ä¸ããã
UCL
ãã®ã³ã³ãã³ãã¯ããã¦ããã£ã¡ããã©ã¤ã»ã³ã¹ãã§æä¾ããã¦ãã¾ã