mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2023-11-04 02:52:44 +03:00
* Initial import of golang bindings * Updated makefile rules * Updated bindings * Makefile update to add in more tests
28 lines
728 B
Go
Executable File
28 lines
728 B
Go
Executable File
package whisper
|
|
|
|
import (
|
|
"errors"
|
|
|
|
// Bindings
|
|
whisper "github.com/ggerganov/whisper.cpp/bindings/go"
|
|
)
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// ERRORS
|
|
|
|
var (
|
|
ErrUnableToLoadModel = errors.New("unable to load model")
|
|
ErrInternalAppError = errors.New("internal application error")
|
|
ErrProcessingFailed = errors.New("processing failed")
|
|
ErrUnsupportedLanguage = errors.New("unsupported language")
|
|
)
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// CONSTANTS
|
|
|
|
// SampleRate is the sample rate of the audio data.
|
|
const SampleRate = whisper.SampleRate
|
|
|
|
// SampleBits is the number of bytes per sample.
|
|
const SampleBits = whisper.SampleBits
|