Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/alesr/whisperclient
- Owner: alesr
- License: mit
- Created: 2023-08-22T13:11:48.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-22T13:17:40.000Z (over 1 year ago)
- Last Synced: 2024-11-22T05:28:41.010Z (2 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)
```