Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions native_client/dotnet/DeepSpeech.sln
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DeepSpeechClient", "DeepSpe
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeepSpeechConsole", "DeepSpeechConsole\DeepSpeechConsole.csproj", "{312965E5-C4F6-4D95-BA64-79906B8BC7AC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DeepSpeechConsoleNetCore", "DeepSpeechConsoleNetCore\DeepSpeechConsoleNetCore.csproj", "{913D0781-3DCD-43F1-988D-F26622FA0D2B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Expand All @@ -20,6 +22,10 @@ Global
{312965E5-C4F6-4D95-BA64-79906B8BC7AC}.Debug|x64.Build.0 = Debug|x64
{312965E5-C4F6-4D95-BA64-79906B8BC7AC}.Release|x64.ActiveCfg = Release|x64
{312965E5-C4F6-4D95-BA64-79906B8BC7AC}.Release|x64.Build.0 = Release|x64
{913D0781-3DCD-43F1-988D-F26622FA0D2B}.Debug|x64.ActiveCfg = Debug|Any CPU
{913D0781-3DCD-43F1-988D-F26622FA0D2B}.Debug|x64.Build.0 = Debug|Any CPU
{913D0781-3DCD-43F1-988D-F26622FA0D2B}.Release|x64.ActiveCfg = Release|Any CPU
{913D0781-3DCD-43F1-988D-F26622FA0D2B}.Release|x64.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFrameworks>net452;net46;net47;uap10.0</TargetFrameworks>
<TargetFrameworks>net452;net46;net47;uap10.0;netstandard1.3</TargetFrameworks>
<Platforms>x64</Platforms>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private static Models.CandidateTranscript PtrToCandidateTranscript(this IntPtr i
managedTranscript.Confidence = transcript.confidence;

//we need to manually read each item from the native ptr using its size
var sizeOfTokenMetadata = Marshal.SizeOf(typeof(TokenMetadata));
var sizeOfTokenMetadata = Marshal.SizeOf<TokenMetadata>();
for (int i = 0; i < transcript.num_tokens; i++)
{
managedTranscript.Tokens[i] = transcript.tokens.PtrToTokenMetadata();
Expand All @@ -79,7 +79,7 @@ internal static Models.Metadata PtrToMetadata(this IntPtr intPtr)
managedMetadata.Transcripts = new Models.CandidateTranscript[metadata.num_transcripts];

//we need to manually read each item from the native ptr using its size
var sizeOfCandidateTranscript = Marshal.SizeOf(typeof(CandidateTranscript));
var sizeOfCandidateTranscript = Marshal.SizeOf<CandidateTranscript>();
for (int i = 0; i < metadata.num_transcripts; i++)
{
managedMetadata.Transcripts[i] = metadata.transcripts.PtrToCandidateTranscript();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NAudio" Version="2.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\DeepSpeechClient\DeepSpeechClient.csproj" />
</ItemGroup>

<ItemGroup>
<Compile Include="..\DeepSpeechConsole\Program.cs" />
<None Include="..\DeepSpeechConsole\arctic_a0024.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>