实例介绍
C#使用NAudio录音和播放 源码 WPF 专用的,不要下载错误 using System; using System.Collections.Generic; using System.Linq; using System.Text; using VoiceRecorder.Core; using System.Windows.Input; using System.Collections.ObjectModel; using VoiceRecorder.Audio; using System.IO; using GalaSoft.MvvmLight.Command;
【实例截图】
【核心代码】
a5d09211-f854-4b6e-a9f7-69c32f0e84d8
└── voicerecorder-master
├── Home_VoiceRecorderScreen1.png
├── Home_VoiceRecorderScreen2.png
├── Home_VoiceRecorderScreen3.png
├── packages
│ ├── MvvmLight.3.0.0.29166
│ │ ├── lib
│ │ │ ├── 35
│ │ │ │ ├── GalaSoft.MvvmLight.dll
│ │ │ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ │ │ ├── GalaSoft.MvvmLight.Extras.XML
│ │ │ │ ├── GalaSoft.MvvmLight.XML
│ │ │ │ └── System.Windows.Interactivity.dll
│ │ │ ├── 40
│ │ │ │ ├── GalaSoft.MvvmLight.Extras.WPF4.dll
│ │ │ │ ├── GalaSoft.MvvmLight.Extras.WPF4.XML
│ │ │ │ ├── GalaSoft.MvvmLight.WPF4.dll
│ │ │ │ ├── GalaSoft.MvvmLight.WPF4.XML
│ │ │ │ └── System.Windows.Interactivity.dll
│ │ │ ├── SL3
│ │ │ │ ├── GalaSoft.MvvmLight.dll
│ │ │ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ │ │ ├── GalaSoft.MvvmLight.Extras.XML
│ │ │ │ ├── GalaSoft.MvvmLight.XML
│ │ │ │ └── System.Windows.Interactivity.dll
│ │ │ ├── SL4
│ │ │ │ ├── GalaSoft.MvvmLight.Extras.SL4.dll
│ │ │ │ ├── GalaSoft.MvvmLight.Extras.SL4.XML
│ │ │ │ ├── GalaSoft.MvvmLight.SL4.dll
│ │ │ │ ├── GalaSoft.MvvmLight.SL4.XML
│ │ │ │ └── System.Windows.Interactivity.dll
│ │ │ └── WP7
│ │ │ ├── GalaSoft.MvvmLight.Extras.WP7.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.WP7.XML
│ │ │ ├── GalaSoft.MvvmLight.WP7.dll
│ │ │ ├── GalaSoft.MvvmLight.WP7.XML
│ │ │ └── System.Windows.Interactivity.dll
│ │ ├── MvvmLight.3.0.0.29166.nupkg
│ │ ├── MvvmLight.3.0.0.29166.nuspec
│ │ ├── Snippets
│ │ │ └── GalaSoft.MvvmLight.Snippets.V3.zip
│ │ └── Templates
│ │ ├── GalaSoft.MvvmLight.Templates.V3.Blend3.zip
│ │ ├── GalaSoft.MvvmLight.Templates.V3.Blend4.zip
│ │ ├── GalaSoft.MvvmLight.Templates.V3.VS08.zip
│ │ ├── GalaSoft.MvvmLight.Templates.V3.VS10X.zip
│ │ └── GalaSoft.MvvmLight.Templates.V3.VS10.zip
│ ├── NAudio.1.7-beta01
│ │ ├── lib
│ │ │ ├── net35
│ │ │ │ ├── NAudio.dll
│ │ │ │ └── NAudio.XML
│ │ │ └── windows8
│ │ │ ├── NAudio.Win8.dll
│ │ │ └── NAudio.Win8.XML
│ │ ├── license.txt
│ │ ├── NAudio.1.7-beta01.nupkg
│ │ ├── NAudio.1.7-beta01.nuspec
│ │ └── readme.txt
│ ├── NUnit.2.5.7.10213
│ │ ├── Content
│ │ │ └── NUnitSampleTests.cs.pp
│ │ ├── fit-license.txt
│ │ ├── lib
│ │ │ ├── nunit.framework.dll
│ │ │ ├── nunit.framework.xml
│ │ │ ├── nunit.mocks.dll
│ │ │ └── pnunit.framework.dll
│ │ ├── license.txt
│ │ ├── Logo.ico
│ │ ├── NUnit.2.5.7.10213.nupkg
│ │ ├── NUnitFitTests.html
│ │ └── Tools
│ │ ├── agent.conf
│ │ ├── agent.log.conf
│ │ ├── launcher.log.conf
│ │ ├── lib
│ │ │ ├── Failure.png
│ │ │ ├── fit.dll
│ │ │ ├── Ignored.png
│ │ │ ├── Inconclusive.png
│ │ │ ├── log4net.dll
│ │ │ ├── nunit-console-runner.dll
│ │ │ ├── nunit.core.dll
│ │ │ ├── nunit.core.interfaces.dll
│ │ │ ├── nunit.fixtures.dll
│ │ │ ├── nunit-gui-runner.dll
│ │ │ ├── nunit.uiexception.dll
│ │ │ ├── nunit.uikit.dll
│ │ │ ├── nunit.util.dll
│ │ │ ├── Skipped.png
│ │ │ └── Success.png
│ │ ├── nunit-agent.exe
│ │ ├── nunit-agent.exe.config
│ │ ├── nunit-agent-x86.exe
│ │ ├── nunit-agent-x86.exe.config
│ │ ├── nunit-console.exe
│ │ ├── nunit-console.exe.config
│ │ ├── nunit-console-x86.exe
│ │ ├── nunit-console-x86.exe.config
│ │ ├── nunit.exe
│ │ ├── nunit.exe.config
│ │ ├── NUnitFitTests.html
│ │ ├── nunit.framework.dll
│ │ ├── NUnitTests.config
│ │ ├── NUnitTests.nunit
│ │ ├── nunit-x86.exe
│ │ ├── nunit-x86.exe.config
│ │ ├── pnunit-agent.exe
│ │ ├── pnunit-agent.exe.config
│ │ ├── pnunit.framework.dll
│ │ ├── pnunit-launcher.exe
│ │ ├── pnunit-launcher.exe.config
│ │ ├── pnunit.tests.dll
│ │ ├── runFile.exe
│ │ ├── runFile.exe.config
│ │ ├── runpnunit.bat
│ │ └── test.conf
│ └── repositories.config
├── Tasks.txt
├── VoiceRecorder
│ ├── app.config
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── AutoTuneViewModel.cs
│ ├── AutoTuneView.xaml
│ ├── AutoTuneView.xaml.cs
│ ├── IView.cs
│ ├── MainWindowViewModel.cs
│ ├── MainWindow.xaml
│ ├── MainWindow.xaml.cs
│ ├── NoteViewModel.cs
│ ├── obj
│ │ └── Debug
│ │ ├── App.baml
│ │ ├── App.g.cs
│ │ ├── App.g.i.cs
│ │ ├── AutoTuneView.baml
│ │ ├── AutoTuneView.g.cs
│ │ ├── AutoTuneView.g.i.cs
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── MainWindow.baml
│ │ ├── MainWindow.g.cs
│ │ ├── MainWindow.g.i.cs
│ │ ├── RecorderView.baml
│ │ ├── RecorderView.g.cs
│ │ ├── RecorderView.g.i.cs
│ │ ├── SaveView.baml
│ │ ├── SaveView.g.cs
│ │ ├── SaveView.g.i.cs
│ │ ├── TempPE
│ │ │ └── Properties.Resources.Designer.cs.dll
│ │ ├── VoiceRecorder.application
│ │ ├── VoiceRecorder.csprojAssemblyReference.cache
│ │ ├── VoiceRecorder.csproj.CopyComplete
│ │ ├── VoiceRecorder.csproj.FileListAbsolute.txt
│ │ ├── VoiceRecorder.csproj.GenerateResource.cache
│ │ ├── VoiceRecorder.exe
│ │ ├── VoiceRecorder.exe.manifest
│ │ ├── VoiceRecorder.g.resources
│ │ ├── VoiceRecorder_MarkupCompile.cache
│ │ ├── VoiceRecorder_MarkupCompile.i.cache
│ │ ├── VoiceRecorder_MarkupCompile.lref
│ │ ├── VoiceRecorder.pdb
│ │ ├── VoiceRecorder.Properties.Resources.resources
│ │ ├── WelcomeView.baml
│ │ ├── WelcomeView.g.cs
│ │ └── WelcomeView.g.i.cs
│ ├── packages.config
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── RecorderViewModel.cs
│ ├── RecorderView.xaml
│ ├── RecorderView.xaml.cs
│ ├── SaveViewModel.cs
│ ├── SaveView.xaml
│ ├── SaveView.xaml.cs
│ ├── Scales.cs
│ ├── ShuttingDownMessage.cs
│ ├── VoiceRecorder.csproj
│ ├── VoiceRecorder.csproj.user
│ ├── VoiceRecorderState.cs
│ ├── VoiceRecorder_TemporaryKey.pfx
│ ├── WelcomeViewModel.cs
│ ├── WelcomeView.xaml
│ └── WelcomeView.xaml.cs
├── VoiceRecorder.Audio
│ ├── AudioPlayer.cs
│ ├── AudioRecorder.cs
│ ├── AudioSaver.cs
│ ├── AutoCorrelator.cs
│ ├── AutoTuneSettings.cs
│ ├── AutoTuneUtils.cs
│ ├── AutoTuneWaveProvider.cs
│ ├── bin
│ │ └── Debug
│ │ ├── big5.nlp
│ │ ├── bopomofo.nlp
│ │ ├── ksc.nlp
│ │ ├── mscorlib.dll
│ │ ├── NAudio.dll
│ │ ├── NAudio.xml
│ │ ├── normidna.nlp
│ │ ├── normnfc.nlp
│ │ ├── normnfd.nlp
│ │ ├── normnfkc.nlp
│ │ ├── normnfkd.nlp
│ │ ├── prc.nlp
│ │ ├── prcp.nlp
│ │ ├── sortkey.nlp
│ │ ├── sorttbls.nlp
│ │ ├── VoiceRecorder.Audio.dll
│ │ ├── VoiceRecorder.Audio.pdb
│ │ ├── xjis.nlp
│ │ └── zh-CHS
│ │ └── mscorlib.resources.dll
│ ├── FftPitchDetector.cs
│ ├── IAudioPlayer.cs
│ ├── IAudioRecorder.cs
│ ├── IPitchDetector.cs
│ ├── obj
│ │ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── VoiceRecorder.Audio.csproj.CopyComplete
│ │ ├── VoiceRecorder.Audio.csproj.FileListAbsolute.txt
│ │ ├── VoiceRecorder.Audio.dll
│ │ └── VoiceRecorder.Audio.pdb
│ ├── packages.config
│ ├── PitchShifter.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── RecordingState.cs
│ ├── SampleAggregator.cs
│ ├── SmbPitchShift.cs
│ ├── TrimWaveStream.cs
│ ├── VoiceRecorder.Audio.csproj
│ └── WavFileUtils.cs
├── VoiceRecorder.Core
│ ├── bin
│ │ └── Debug
│ │ ├── big5.nlp
│ │ ├── bopomofo.nlp
│ │ ├── GalaSoft.MvvmLight.dll
│ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ ├── GalaSoft.MvvmLight.Extras.xml
│ │ ├── GalaSoft.MvvmLight.xml
│ │ ├── ksc.nlp
│ │ ├── mscorlib.dll
│ │ ├── NAudio.dll
│ │ ├── NAudio.xml
│ │ ├── normidna.nlp
│ │ ├── normnfc.nlp
│ │ ├── normnfd.nlp
│ │ ├── normnfkc.nlp
│ │ ├── normnfkd.nlp
│ │ ├── prc.nlp
│ │ ├── prcp.nlp
│ │ ├── sortkey.nlp
│ │ ├── sorttbls.nlp
│ │ ├── System.Windows.Interactivity.dll
│ │ ├── VoiceRecorder.Audio.dll
│ │ ├── VoiceRecorder.Audio.pdb
│ │ ├── VoiceRecorder.Core.dll
│ │ ├── VoiceRecorder.Core.pdb
│ │ ├── xjis.nlp
│ │ └── zh-CHS
│ │ └── mscorlib.resources.dll
│ ├── IWaveFormRenderer.cs
│ ├── obj
│ │ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── GeneratedInternalTypeHelper.g.cs
│ │ ├── GeneratedInternalTypeHelper.g.i.cs
│ │ ├── PolygonWaveFormControl.baml
│ │ ├── PolygonWaveFormControl.g.cs
│ │ ├── PolygonWaveFormControl.g.i.cs
│ │ ├── RangeSelectionControl.baml
│ │ ├── RangeSelectionControl.g.cs
│ │ ├── RangeSelectionControl.g.i.cs
│ │ ├── VoiceRecorder.Core.csprojAssemblyReference.cache
│ │ ├── VoiceRecorder.Core.csproj.CopyComplete
│ │ ├── VoiceRecorder.Core.csproj.FileListAbsolute.txt
│ │ ├── VoiceRecorder.Core.csproj.GenerateResource.cache
│ │ ├── VoiceRecorder.Core.dll
│ │ ├── VoiceRecorder.Core.g.resources
│ │ ├── VoiceRecorder.Core_MarkupCompile.cache
│ │ ├── VoiceRecorder.Core_MarkupCompile.i.cache
│ │ ├── VoiceRecorder.Core_MarkupCompile.i.lref
│ │ ├── VoiceRecorder.Core_MarkupCompile.lref
│ │ ├── VoiceRecorder.Core.pdb
│ │ ├── VoiceRecorder.Core.Properties.Resources.resources
│ │ ├── WaveFileTrimmerControl.baml
│ │ ├── WaveFileTrimmerControl.g.cs
│ │ └── WaveFileTrimmerControl.g.i.cs
│ ├── packages.config
│ ├── PolygonWaveFormControl.xaml
│ ├── PolygonWaveFormControl.xaml.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── RangeSelectionControl.xaml
│ ├── RangeSelectionControl.xaml.cs
│ ├── VoiceRecorder.Core.csproj
│ ├── WaveFileTrimmerControl.xaml
│ ├── WaveFileTrimmerControl.xaml.cs
│ └── WaveFormVisual.cs
├── VoiceRecorder.sln
└── VoiceRecorder.Tests
├── AutoCorrelatorTests.cs
├── bin
│ └── Debug
│ ├── big5.nlp
│ ├── bopomofo.nlp
│ ├── ksc.nlp
│ ├── mscorlib.dll
│ ├── NAudio.dll
│ ├── NAudio.xml
│ ├── normidna.nlp
│ ├── normnfc.nlp
│ ├── normnfd.nlp
│ ├── normnfkc.nlp
│ ├── normnfkd.nlp
│ ├── nunit.framework.dll
│ ├── nunit.framework.xml
│ ├── nunit.mocks.dll
│ ├── pnunit.framework.dll
│ ├── prc.nlp
│ ├── prcp.nlp
│ ├── sortkey.nlp
│ ├── sorttbls.nlp
│ ├── VoiceRecorder.Audio.dll
│ ├── VoiceRecorder.Audio.pdb
│ ├── VoiceRecorder.Tests.dll
│ ├── VoiceRecorder.Tests.pdb
│ ├── xjis.nlp
│ └── zh-CHS
│ └── mscorlib.resources.dll
├── obj
│ └── Debug
│ ├── VoiceRecorder.Tests.csprojAssemblyReference.cache
│ ├── VoiceRecorder.Tests.csproj.CopyComplete
│ ├── VoiceRecorder.Tests.csproj.FileListAbsolute.txt
│ ├── VoiceRecorder.Tests.dll
│ └── VoiceRecorder.Tests.pdb
├── packages.config
├── PerformanceTests.cs
├── Properties
│ └── AssemblyInfo.cs
└── VoiceRecorder.Tests.csproj
46 directories, 311 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论