Beispiel #1
0
 /// <summary>
 /// 录制
 /// </summary>
 public void Record(int duration, Action <byte[]> callback, int recordRate = 16000)
 {
     Record(duration, (AudioClip clip) =>
     {
         callback?.Invoke(WavUtility.FromAudioClip(clip));
     }, recordRate);
 }
Beispiel #2
0
 /// <summary>
 /// 停止录制
 /// </summary>
 public void StopRecord(Action <byte[]> callback)
 {
     StopRecord((AudioClip clip) =>
     {
         callback?.Invoke(WavUtility.FromAudioClip(clip));
     });
 }