diff --git a/native_client/dotnet/DeepSpeechConsole/DeepSpeechConsole.csproj b/native_client/dotnet/DeepSpeechConsole/DeepSpeechConsole.csproj index a05fca6141..4feb88d6ea 100644 --- a/native_client/dotnet/DeepSpeechConsole/DeepSpeechConsole.csproj +++ b/native_client/dotnet/DeepSpeechConsole/DeepSpeechConsole.csproj @@ -35,8 +35,8 @@ true - - ..\packages\NAudio.1.8.5\lib\net35\NAudio.dll + + ..\packages\NAudio.2.0.0\lib\netstandard2.0\NAudio.dll @@ -67,4 +67,4 @@ - \ No newline at end of file + diff --git a/native_client/dotnet/DeepSpeechConsole/Program.cs b/native_client/dotnet/DeepSpeechConsole/Program.cs index 55bd8fd574..35b4f44b1f 100644 --- a/native_client/dotnet/DeepSpeechConsole/Program.cs +++ b/native_client/dotnet/DeepSpeechConsole/Program.cs @@ -81,8 +81,8 @@ static void Main(string[] args) } string audioFile = audio ?? "arctic_a0024.wav"; - var waveBuffer = new WaveBuffer(File.ReadAllBytes(audioFile)); - using (var waveInfo = new WaveFileReader(audioFile)) + var waveBuffer = new NAudio.Wave.WaveBuffer(File.ReadAllBytes(audioFile)); + using (var waveInfo = new NAudio.Wave.WaveFileReader(audioFile)) { Console.WriteLine("Running inference...."); diff --git a/native_client/dotnet/DeepSpeechConsole/packages.config b/native_client/dotnet/DeepSpeechConsole/packages.config index 17c1f32691..87f4312a8b 100644 --- a/native_client/dotnet/DeepSpeechConsole/packages.config +++ b/native_client/dotnet/DeepSpeechConsole/packages.config @@ -1,4 +1,4 @@  - - \ No newline at end of file + + diff --git a/native_client/dotnet/DeepSpeechWPF/DeepSpeech.WPF.csproj b/native_client/dotnet/DeepSpeechWPF/DeepSpeech.WPF.csproj index 7f46a31e1f..ede05f84b8 100644 --- a/native_client/dotnet/DeepSpeechWPF/DeepSpeech.WPF.csproj +++ b/native_client/dotnet/DeepSpeechWPF/DeepSpeech.WPF.csproj @@ -61,8 +61,8 @@ packages\MvvmLightLibs.5.4.1.1\lib\net45\GalaSoft.MvvmLight.Platform.dll - - packages\NAudio.1.9.0\lib\net35\NAudio.dll + + packages\NAudio.2.0.0\lib\netstandard2.0\NAudio.dll diff --git a/native_client/dotnet/DeepSpeechWPF/packages.config b/native_client/dotnet/DeepSpeechWPF/packages.config index ececb977cf..26cf3ce43b 100644 --- a/native_client/dotnet/DeepSpeechWPF/packages.config +++ b/native_client/dotnet/DeepSpeechWPF/packages.config @@ -5,5 +5,5 @@ - - \ No newline at end of file + + diff --git a/taskcluster/tc-dotnet-utils.sh b/taskcluster/tc-dotnet-utils.sh index e62ad6e286..167cb05ef2 100755 --- a/taskcluster/tc-dotnet-utils.sh +++ b/taskcluster/tc-dotnet-utils.sh @@ -34,8 +34,8 @@ install_nuget() ls -halR "${PROJECT_NAME}.${DS_VERSION}" - nuget install NAudio -Version 1.10.0 - cp NAudio*/lib/net35/NAudio.dll ${TASKCLUSTER_TMP_DIR}/ds/ + nuget install NAudio -Version 2.0.0 + cp NAudio*/lib/netstandard2.0/NAudio.dll ${TASKCLUSTER_TMP_DIR}/ds/ cp ${PROJECT_NAME}.${DS_VERSION}/build/libdeepspeech.so ${TASKCLUSTER_TMP_DIR}/ds/ cp ${PROJECT_NAME}.${DS_VERSION}/lib/net46/DeepSpeechClient.dll ${TASKCLUSTER_TMP_DIR}/ds/