This is a multiplatform Speech SDK which supports the following targets:
- JVM
- Native (i.e Linux X64, MacOS X64, etc)
- NodeJs
- More native targets can be added as requested.
- Please see this documentation for available targets: https://kotlinlang.org/docs/mpp-supported-platforms.html
- A dynamic or a static library can be generated which can then be used by C/C++ programs.
https://github.com/rdkcentral/xvcs-speech-sdk-demo
Please see the above demo and follow comments under Demo.kt file. The same sequence of steps apply regardless of the platform.
- Clone the repository
git clone [email protected]:rdkcentral/xvcs-speech-sdk-core.git
- Follow instructions from the appropriate platform below
- In order to publish the library to the local maven repository run
gradle publishToMavenLocal
task - The dependency now can be included in your build system
- Gradle -
implementation("com.comcast.vrex.sdk:vrex-speech-sdk-jvm:1.0.0")
(ensure thatmavenLocal()
is underrepositories
block)
- Gradle -
- See the JVM demo in the
Demos
section above for a complete usage example
For native targets, a dynamic library and a header file will be created so that you can use the SDK from C/C++ projects.
We will use macosX64
target used in a C++ project as an example. But same instructions apply to other targets as well.
- Run the Gradle task
gradle linkReleaseSharedMacosX64
in order generate the above 2 files.- These files can be found in
/build/bin/releaseShared
- The dynamic libary is named
libspeech_sdk.dylib
- The header file is named
libspeech_sdk_api.h
- These files can be found in
- Copy/include both files to your C++ project
- Include the header file in the project
#include "libspeech_sdk_api.h"
- Library can be accessed with following code
libspeech_sdk_ExportedSymbols* lib = libspeech_sdk_symbols();