/charactr-api-sdk-go

Go SDK to interact with the Charactr API.

Primary LanguageGoOtherNOASSERTION

charactr-api-sdk-go

Go SDK to interact with the charactr API.

Terminology

VC - Voice conversion - converting one voice from audio input to another voice.

TTS - Text to speech - converting text to voice audio.

Features

  • making TTS requests
  • making VC requests
  • getting lists of available voices

Installation

$ go get github.com/charactr-platform/charactr-api-sdk-go

Usage

For the detailed SDK usage, please refer to the SDK reference or the ./example directory.

Quick start

import "github.com/charactr-platform/charactr-api-sdk-go"

func main() {
    sdk := charactr.New(&charactr.Credentials{ClientKey: "", APIKey: ""})
}

How to run examples

Clone the SDK locally

$ git clone https://github.com/charactr-platform/charactr-api-sdk-go

Provide credentials

Open ./example/credentials.go and provide your credentials. You can find them in your Client Panel account.

Use TTS

$ go run example/tts/main.go

Use TTS Simplex streaming

$ go run example/tts_stream_simplex/main.go

Use TTS Duplex streaming

$ go run example/tts_stream_duplex/main.go

Use VC

$ go run example/vc/main.go