updating example to use NuGet of DeepSpeechClient
This commit is contained in:
Родитель
3e921b4c46
Коммит
203b0c8834
|
@ -20,7 +20,7 @@ namespace DeepSpeechWPF
|
||||||
{
|
{
|
||||||
//Register instance of DeepSpeech
|
//Register instance of DeepSpeech
|
||||||
DeepSpeechClient.DeepSpeech deepSpeechClient =
|
DeepSpeechClient.DeepSpeech deepSpeechClient =
|
||||||
new DeepSpeechClient.DeepSpeech("output_graph.pbmm");
|
new DeepSpeechClient.DeepSpeech("deepspeech-0.7.0-models.pbmm");
|
||||||
|
|
||||||
SimpleIoc.Default.Register<IDeepSpeech>(() => deepSpeechClient);
|
SimpleIoc.Default.Register<IDeepSpeech>(() => deepSpeechClient);
|
||||||
SimpleIoc.Default.Register<MainWindowViewModel>();
|
SimpleIoc.Default.Register<MainWindowViewModel>();
|
||||||
|
|
|
@ -52,6 +52,9 @@
|
||||||
<Reference Include="CSCore, Version=1.2.1.2, Culture=neutral, PublicKeyToken=5a08f2b6f4415dea, processorArchitecture=MSIL">
|
<Reference Include="CSCore, Version=1.2.1.2, Culture=neutral, PublicKeyToken=5a08f2b6f4415dea, processorArchitecture=MSIL">
|
||||||
<HintPath>packages\CSCore.1.2.1.2\lib\net35-client\CSCore.dll</HintPath>
|
<HintPath>packages\CSCore.1.2.1.2\lib\net35-client\CSCore.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="DeepSpeechClient, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64">
|
||||||
|
<HintPath>packages\DeepSpeech.0.7.0\lib\net46\DeepSpeechClient.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="GalaSoft.MvvmLight, Version=5.4.1.0, Culture=neutral, PublicKeyToken=e7570ab207bcb616, processorArchitecture=MSIL">
|
<Reference Include="GalaSoft.MvvmLight, Version=5.4.1.0, Culture=neutral, PublicKeyToken=e7570ab207bcb616, processorArchitecture=MSIL">
|
||||||
<HintPath>packages\MvvmLightLibs.5.4.1.1\lib\net45\GalaSoft.MvvmLight.dll</HintPath>
|
<HintPath>packages\MvvmLightLibs.5.4.1.1\lib\net45\GalaSoft.MvvmLight.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
@ -130,11 +133,12 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\..\..\ds\native_client\dotnet\DeepSpeechClient\DeepSpeechClient.csproj">
|
|
||||||
<Project>{56de4091-bbbe-47e4-852d-7268b33b971f}</Project>
|
|
||||||
<Name>DeepSpeechClient</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<Import Project="packages\DeepSpeech.0.7.0\build\DeepSpeech.targets" Condition="Exists('packages\DeepSpeech.0.7.0\build\DeepSpeech.targets')" />
|
||||||
|
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||||
|
<PropertyGroup>
|
||||||
|
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Error Condition="!Exists('packages\DeepSpeech.0.7.0\build\DeepSpeech.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\DeepSpeech.0.7.0\build\DeepSpeech.targets'))" />
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
|
@ -5,8 +5,6 @@ VisualStudioVersion = 15.0.28307.421
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeepSpeech.WPF", "DeepSpeech.WPF.csproj", "{54BFD766-4305-4F4C-BA59-AF45505DF3C1}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeepSpeech.WPF", "DeepSpeech.WPF.csproj", "{54BFD766-4305-4F4C-BA59-AF45505DF3C1}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeepSpeechClient", "..\..\..\ds\native_client\dotnet\DeepSpeechClient\DeepSpeechClient.csproj", "{56DE4091-BBBE-47E4-852D-7268B33B971F}"
|
|
||||||
EndProject
|
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|x64 = Debug|x64
|
Debug|x64 = Debug|x64
|
||||||
|
@ -17,10 +15,6 @@ Global
|
||||||
{54BFD766-4305-4F4C-BA59-AF45505DF3C1}.Debug|x64.Build.0 = Debug|x64
|
{54BFD766-4305-4F4C-BA59-AF45505DF3C1}.Debug|x64.Build.0 = Debug|x64
|
||||||
{54BFD766-4305-4F4C-BA59-AF45505DF3C1}.Release|x64.ActiveCfg = Release|x64
|
{54BFD766-4305-4F4C-BA59-AF45505DF3C1}.Release|x64.ActiveCfg = Release|x64
|
||||||
{54BFD766-4305-4F4C-BA59-AF45505DF3C1}.Release|x64.Build.0 = Release|x64
|
{54BFD766-4305-4F4C-BA59-AF45505DF3C1}.Release|x64.Build.0 = Release|x64
|
||||||
{56DE4091-BBBE-47E4-852D-7268B33B971F}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{56DE4091-BBBE-47E4-852D-7268B33B971F}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{56DE4091-BBBE-47E4-852D-7268B33B971F}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{56DE4091-BBBE-47E4-852D-7268B33B971F}.Release|x64.Build.0 = Release|x64
|
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<package id="AsyncAwaitBestPractices.MVVM" version="3.1.0" targetFramework="net462" />
|
<package id="AsyncAwaitBestPractices.MVVM" version="3.1.0" targetFramework="net462" />
|
||||||
<package id="CommonServiceLocator" version="2.0.2" targetFramework="net462" />
|
<package id="CommonServiceLocator" version="2.0.2" targetFramework="net462" />
|
||||||
<package id="CSCore" version="1.2.1.2" targetFramework="net462" />
|
<package id="CSCore" version="1.2.1.2" targetFramework="net462" />
|
||||||
|
<package id="DeepSpeech" version="0.7.0" targetFramework="net462" />
|
||||||
<package id="MvvmLightLibs" version="5.4.1.1" targetFramework="net462" />
|
<package id="MvvmLightLibs" version="5.4.1.1" targetFramework="net462" />
|
||||||
<package id="NAudio" version="1.9.0" targetFramework="net462" />
|
<package id="NAudio" version="1.9.0" targetFramework="net462" />
|
||||||
</packages>
|
</packages>
|
Загрузка…
Ссылка в новой задаче