[C#] NAUDIO 로 마이크 볼륨레벨 가져오기

프로그래밍/C# 2020. 3. 21. 13:44

var waveIn = new NAudio.Wave.WaveInEvent(); waveIn.DeviceNumber = 0; waveIn.WaveFormat = new NAudio.Wave.WaveFormat(16000, 1); waveIn.DataAvailable += WaveIn_DataAvailable; waveIn.StartRecording(); private void WaveIn_DataAvailable(object sender, WaveInEventArgs e) { //if (isRecording) //{ // writer.Write(args.Buffer, 0, args.BytesRecorded); //} float max = 0; // interpret as 16 bit audio for (i..

Article Thumbnail
[C#] 구글 API를 이용한 마이크 음성인식

프로그래밍/C# 2020. 3. 20. 05:58

https://www.youtube.com/watch?v=186KstQ2yOk&feature=youtu.be https://www.youtube.com/watch?v=jHrIi71pGvs&t=15s