Skip to content

Commit 7a2adcd

Browse files
committed
Add nuget wraps
1 parent 9ccf3ef commit 7a2adcd

File tree

6 files changed

+40
-2
lines changed

6 files changed

+40
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ csharp/*.exe
5353
csharp/*.c
5454
csharp/model/
5555
csharp/test.wav
56+
Vosk.dll
5657

5758
# Node
5859
nodejs/vosk_wrap.cc

csharp/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ MATH_LIBS = ${KALDI_ROOT}/tools/OpenBLAS/libopenblas.a -lgfortran
3030
all: test.exe
3131

3232
test.exe: libkaldiwrap.so test.cs
33-
mcs test.cs gen/*.cs
33+
mcs -out:Vosk.dll -target:library gen/*.cs
34+
mcs test.cs -r:Vosk.dll -out:test.exe
3435

3536
VOSK_SOURCES = \
3637
vosk_wrap.c \
@@ -59,4 +60,4 @@ run: test.exe
5960
mono test.exe
6061

6162
clean:
62-
$(RM) *.so vosk_wrap.c *.o gen/*.cs test.exe
63+
$(RM) *.so vosk_wrap.c *.o gen/*.cs test.exe *.dll

csharp/nuget/Vosk.nuspec

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0"?>
2+
<package>
3+
<metadata>
4+
<id>Vosk</id>
5+
<version>0.3.16</version>
6+
<authors>Alpha Cephei Inc</authors>
7+
<owners>Alpha Cephei Inc</owners>
8+
<license type="expression">Apache-2.0</license>
9+
<projectUrl>https://alphacephei.com/vosk/</projectUrl>
10+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
11+
<description>Vosk is an offline open source speech recognition toolkit. It enables speech recognition models for 16 languages and dialects - English, Indian English, German, French, Spanish, Portuguese, Chinese, Russian, Turkish, Vietnamese, Italian, Dutch, Catalan, Arabic, Greek, Farsi.
12+
13+
Vosk models are small (50 Mb) but provide continuous large vocabulary transcription, zero-latency response with streaming API, reconfigurable vocabulary and speaker identification.
14+
15+
Speech recognition bindings implemented for various programming languages like Python, Java, Node.JS, C#, C++ and others.
16+
17+
Vosk supplies speech recognition for chatbots, smart home appliances, virtual assistants. It can also create subtitles for movies, transcription for lectures and interviews.
18+
19+
Vosk scales from small devices like Raspberry Pi or Android smartphone to big clusters.</description>
20+
<releaseNotes>See for details https://github.com/alphacep/vosk-api/releases</releaseNotes>
21+
<copyright>Copyright 2020 Alpha Cephei Inc</copyright>
22+
<tags>speech recognition voice stt asr speech-to-text ai offline privacy</tags>
23+
<dependencies>
24+
<group targetFramework=".NETStandard2.0"/>
25+
</dependencies>
26+
</metadata>
27+
</package>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<ItemGroup>
3+
<Content Include="$(MSBuildThisFileDirectory)lib/**/**">
4+
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
5+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6+
<Visible>false</Visible>
7+
</Content>
8+
</ItemGroup>
9+
</Project>

csharp/nuget/build/netstandard2.0/lib/linux-x86/.keep-me

Whitespace-only changes.

csharp/nuget/lib/netstandard2.0/.keep-me

Whitespace-only changes.

0 commit comments

Comments
 (0)