- using System.Collections.Generic;
- using UnityEngine;
- namespace Moka
- {
- internal class TalkingTom
- {
- //每秒种产生0.4M数据量
- private readonly LinkedList<float> recordData = new LinkedList<float>();
- public Animation AvatarAnimation2;
- private float analyzeMicDataTimeGap = 0.3f; //秒
- private float clipPlayTime;
- private bool isRecordingMic;
- private bool isWorking;
- private int lastReadPositio;
- private AudioClip microphoneClip;
- private float myMax;
- private float voiceDetectLevel = 0.3f;
- #region 外部接口
- public void setAvatar(GameObject gameObject)
unity自动录音功能
最新推荐文章于 2024-06-09 10:05:24 发布