Language-specific instructions to include the SDK in your project are given below.
To use the Diatheke SDK in a C++ project, you must first download the SDK. 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.12 or later. To use the SDK, import this package into your application:
import "github.com/cobaltspeech/sdk-diatheke/grpc/go-diatheke"
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-diatheke#egg=cobalt-diatheke&subdirectory=grpc/py-diatheke"
Once installed, simply import the Diatheke module to use the SDK:
import diatheke
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler.
Once you have your Swift package set up, adding swift-cubic as a dependency is as easy as adding it to the dependencies
value of your Package.swift
.
dependencies: [
.package(url: "https://github.com/cobaltspeech/sdk-diatheke.git", .upToNextMajor(from: "1.0"))
]
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency
dependencies {
implementation 'com.github.cobaltspeech:sdk-diatheke:Tag'
implementation 'io.grpc:grpc-protobuf-lite:1.25.0'
implementation 'io.grpc:grpc-okhttp:1.24.0'
implementation 'io.grpc:grpc-stub:1.24.0'
implementation 'io.grpc:grpc-auth:1.24.0'
}