This directory contains two sub-directories one for WINDOWS OS and one for LINUX OS.
Read corresponding READMEs for each OS .
Only difference for both OS is the library used for gathering audio data from microphone .On WINDOWS portaudio is used while on LINUX ALSA-lib C is used which itself provides an interface to ALSA Kernel module.
Interface to both the libs is provided through NIM code.
libdeepspeech.so
Go to the releases page and download the native client package based on your OS and CPU architecture.
Extract the libdeepspeech.so and put into the subdirectory depending on OS of native Client used.
- Download the
native.client.amd64.win.tar.xzpackage . [ same is true forxx.xx.amd64.cuda.win.xxif CUDA installed orxx.xx.amd64.tflite.win.xx] - Extract and place the
libdeepspeech.soinwin_nim_vad_streamingsubdirectory - Now see
README.mdinwin_nim_vad_streamingsubdirectory.
- Download the
native_client.amd64.linux.cpupackage .[ same is true forxx.xx.amd64.cuda.linux.xxis CUDA installed orxx.xx.amd64.tflite.linux.xx] - Extract and place the
libdeepspeech.soinlinux_nim_vad_streamingsubdirectory - Now see
README.mdinlinux_nim_vad_streamingsubdirectory.
Note: One can put libdeepspeech.so in the system's PATH rather than copying it to one of subdirectories for easy usage.
Used NIM code only depends on the shared library(libdeepspeech.so) used.
Given one has downloaded the native client package and extracted the libdeepspeech.so shared library and copied it to one of the subdirectories or in system's PATH ,Code can be modified to add more functionalities in pure NIM and modified code would compile on any platform as long as that platform is supported by NIM.