Documentation ¶
Index ¶
- Variables
- func NewError(err error, e string) error
- type VPREngine
- func (this *VPREngine) AddTrainBuffer(buf []byte) error
- func (this *VPREngine) AddVerifyBuffer(buf []byte) error
- func (this *VPREngine) ClearAllBuffer()
- func (this *VPREngine) ClearTrainBuffer()
- func (this *VPREngine) ClearVerifyBuffer()
- func (this *VPREngine) GetScore() float64
- func (this *VPREngine) TrainModel() error
- func (this *VPREngine) VerifyModel() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LSV_ERR_ENGINE_NOT_INIT error = fmt.Errorf("engine not init") LSV_ERR_TIMEOUT error = fmt.Errorf("timeout") LSV_ERR_NEED_MORE_SAMPLE error = fmt.Errorf("need more sample ") LSV_ERR_ILLEGAL_HANDLE error = fmt.Errorf("illegal handle") LSV_ERR_FILE_ERROR error = fmt.Errorf("file error") LSV_ERR_NO_AVAILABLE_DATA error = fmt.Errorf("no available data") LSV_ERR_VOICE_TOO_SHORT error = fmt.Errorf("voice too short") LSV_ERR_TRAINING_FAILED error = fmt.Errorf("train failed") LSV_ERR_VERIFY_FAILED error = fmt.Errorf("verify failed") LSV_ERR_MODEL_NOT_FOUND error = fmt.Errorf("model not found") LSV_ERR_MODEL_LOAD_FAILED error = fmt.Errorf("model load failed") LSV_ERR_MEM_INSUFFICIENT error = fmt.Errorf("memory insufficient") LSV_ERR_CONF_PARAM error = fmt.Errorf("conf param error") LSV_ERR_NO_ACTIVE_SPEECH error = fmt.Errorf("no active speech") LSV_ERR_INVALID_PARAM error = fmt.Errorf("invalid param") )
Functions ¶
Types ¶
type VPREngine ¶
type VPREngine struct {
// contains filtered or unexported fields
}
func NewVPREngine ¶
func (*VPREngine) AddTrainBuffer ¶
func (*VPREngine) AddVerifyBuffer ¶
func (*VPREngine) ClearAllBuffer ¶
func (this *VPREngine) ClearAllBuffer()
func (*VPREngine) ClearTrainBuffer ¶
func (this *VPREngine) ClearTrainBuffer()
func (*VPREngine) ClearVerifyBuffer ¶
func (this *VPREngine) ClearVerifyBuffer()
func (*VPREngine) TrainModel ¶
func (*VPREngine) VerifyModel ¶
Click to show internal directories.
Click to hide internal directories.