Language-specific instructions to include the SDK in your project are given below.
To use the Luna SDK in a C++ project, you must first download the SDK from GitHub. To help simplify the build process, the C++ SDK uses CMake, although it is possible to use a different build system with some additional work. Details for building and including the SDK in a C++ project are described in detail in this README file.
The Go SDK supports Go modules and requires Go 1.14 or later. To use the SDK, import this package into your application:
import (
"github.com/cobaltspeech/sdk-luna/grpc/go-luna"
"github.com/cobaltspeech/sdk-luna/grpc/go-luna/lunapb"
)
The Python SDK requires Python v3.5.0 or greater. The SDK may be installed
from GitHub using pip
:
pip install "git+https://github.com/cobaltspeech/sdk-luna#egg=cobalt-luna&subdirectory=grpc/py-luna"
Once installed, simply import the Luna module to use the SDK:
import luna
# Or import the required classes
from luna.client import LunaClient
from luna.luna_pb2 import SynthesizeRequest, SynthesizerConfig