Skip to content

v0.0.37

Choose a tag to compare

@djthorpe djthorpe released this 25 Jan 12:03
a3a9ee8

What's Changed

Dependency Updates:
Updated github.com/mutablelogic/go-client from v1.3.3 to v1.3.4 and github.com/mutablelogic/go-server from v1.5.17 to v1.5.18 in go.mod for improved stability and bug fixes. Also replaced github.com/djthorpe/go-pg with github.com/mutablelogic/go-pg v1.1.1 as an indirect dependency. [1] [2] [3]
Updated the third_party/whisper.cpp submodule to a newer commit for latest upstream improvements.

HTTP Client Improvements:
Added the ability to pass custom request options via a new WithRequestOpts function and reqOpts field in the opt struct in pkg/httpclient/opts.go, allowing more flexible HTTP requests. [1] [2]
Refactored request option handling in both Transcribe and Translate methods to utilize the new reqOpts field, ensuring custom options are included in all requests. [1] [2]

Transcription Response Handling:
Implemented the client.Unmarshaler interface for the Transcription struct in pkg/schema/transcription.go, allowing it to handle various response formats (JSON, SRT, VTT, plain text) based on content type headers. [1] [2]
Added necessary imports to support content type parsing and response handling.
These changes collectively make the HTTP client more extensible and robust when interacting with transcription and translation endpoints.

Full Changelog: v0.0.36...v0.0.37

Downloading the CLI

Download the CLI for Linux and MacOS here. This does not contain the server. To check the integrity of the binary, and make it executable:

# Download and check against the SHA256 hash on the releases page (MacOS)
wget -O gowhisper -q https://github.com/mutablelogic/go-whisper/releases/download/v0.0.37/gowhisper-darwin-arm64
sha256sum gowhisper
chmod +x gowhisper

# For MacOS, remove quarantine attribute
xattr -d com.apple.quarantine gowhisper

# Run the executable
./gowhisper --help