using System.Collections; using System.Collections.Generic; using UnityEngine; using NSpeex; public static class VoiceSettings { public static BandMode bandMode = BandMode.Wide; public static int frequency { get { switch (bandMode) { case BandMode.Wide: return 16000; default: return 8000; } } } public static int length { get { return 8; } } public static int frameSize { get { switch (bandMode) { case BandMode.Wide: return 160; default: return 80; } } } public static int channels { get { return 1; } } }