Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alesr/whisperclient

A simple Go client for interacting with the WhisperAI API.
https://github.com/alesr/whisperclient

Last synced: 3 days ago
JSON representation

A simple Go client for interacting with the WhisperAI API.

Awesome Lists containing this project

README

        

# whisperclient
A simple Go client for interacting with the WhisperAI API.

## Overview

whisperclient is a Go package that provides a straightforward way to transcribe audio using the WhisperAI API.

## Installation

```bash
go get github.com/alesr/whisperclient
```

## Usage

```go
import "github.com/alesr/whisperclient"

// Initialize the client
client := whisperclient.New(httpClient, apiKey, model)

// Transcribe audio
input := whisperclient.TranscribeAudioInput{
Name: "sample_audio",
Language: whisperclient.LanguageEnglish,
Format: whisperclient.FormatText,
Data: audioDataReader,
}

response, err := client.TranscribeAudio(context.Background(), input)
```