Compare commits
No commits in common. "dacad9a4f6c59e81b7220666706ef57426f8c95e" and "7b0797cca176993d707e44d11df140d8fb8ccbc0" have entirely different histories.
dacad9a4f6
...
7b0797cca1
|
@ -41,6 +41,9 @@ func InitializeWhisperState(modelPath string) (*WhisperState, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
params.AddFlags(whisper.FlagNoContext)
|
||||||
|
params.AddFlags(whisper.FlagTokenTimestamps)
|
||||||
|
|
||||||
fmt.Printf("Params CPU Threads : %d\n", params.CpuThreads())
|
fmt.Printf("Params CPU Threads : %d\n", params.CpuThreads())
|
||||||
|
|
||||||
return &WhisperState{
|
return &WhisperState{
|
||||||
|
|
|
@ -86,16 +86,6 @@ func (this *FullParams) RemoveFlags(newflag eFullParamsFlags) {
|
||||||
this.cStruct.Flags = this.cStruct.Flags ^ newflag
|
this.cStruct.Flags = this.cStruct.Flags ^ newflag
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *FullParams) SetLanguage(language eLanguage) {
|
|
||||||
if this == nil {
|
|
||||||
return
|
|
||||||
} else if this.cStruct == nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
this.cStruct.Language = language
|
|
||||||
}
|
|
||||||
|
|
||||||
/*using pfnNewSegment = HRESULT( __cdecl* )( iContext* ctx, uint32_t n_new, void* user_data ) noexcept;*/
|
/*using pfnNewSegment = HRESULT( __cdecl* )( iContext* ctx, uint32_t n_new, void* user_data ) noexcept;*/
|
||||||
type NewSegmentCallback_Type func(context *IContext, n_new uint32, user_data unsafe.Pointer) EWhisperHWND
|
type NewSegmentCallback_Type func(context *IContext, n_new uint32, user_data unsafe.Pointer) EWhisperHWND
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue