예제 #1
0
        public static async Task RecVoiceTwo()
        {
            Console.WriteLine("recording for only 10secs");
            await player.Record();

            System.Threading.Thread.Sleep(10000);
            await player.StopRecording();

            EnrollSpeaker.EnrollVoice(VarHolder.ProfileId);
        }
예제 #2
0
        public static async Task RecVoiceOne(string nameDesc)
        {
            VarHolder.ProfileName = nameDesc.Split(":")[0];
            VarHolder.ProfileDesc = nameDesc.Split(":")[1];
            Console.WriteLine("You need to record two audio notes to enroll your voice");
            Console.WriteLine("recording for only 10secs");
            await player.Record();

            System.Threading.Thread.Sleep(10000);
            await player.StopRecording();

            profileId = await CreateSpeaker.CreateProfile();

            VarHolder.ProfileId = profileId;
            EnrollSpeaker.EnrollVoice(profileId);
        }