Instructions for installing the SDK are language specific.
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-cubic/grpc/go-cubic"
The Python SDK depends on Python >= 3.5. You may use pip to perform a system-wide install, or use virtualenv for a local install.
pip install --upgrade pip
pip install "git+https://github.com/cobaltspeech/sdk-cubic#egg=cobalt-cubic&subdirectory=grpc/py-cubic"
The C# SDK utilizes the NuGet package manager. The package is called Cubic-SDK
, under the owners name of CobaltSpeech
.
NuGet allows 4 different ways to install. Further instructions can be found on the nuget webpage. Installing via the dotnet
cli through the command:
dotnet add package Cubic-SDK
The Cubic SDK is published to the jitpack repository. To build using Maven, add the following to your project’s pom.xml file:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
...
</repositories>
<dependencies>
...
<dependency>
<groupId>com.github.cobaltspeech</groupId>
<artifactId>sdk-cubic</artifactId>
<version>v1.6.2-java</version>
</dependency>
</dependencies>
mvn package
Building for Android requires more steps, so it is described on the Android Integrations page.
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: "git@github.com:cobaltspeech/sdk-cubic.git", .upToNextMajor(from: "1.6.1"))
]