https://github.com/alesr/whisperclient
A simple Go client for interacting with the WhisperAI API.
https://github.com/alesr/whisperclient
Last synced: 5 months ago
JSON representation
A simple Go client for interacting with the WhisperAI API.
- Host: GitHub
- URL: https://github.com/alesr/whisperclient
- Owner: alesr
- License: mit
- Created: 2023-08-22T13:11:48.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-22T13:17:40.000Z (over 2 years ago)
- Last Synced: 2025-03-16T06:26:49.192Z (8 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```