mirror of
https://github.com/xzeldon/whisper-api-server.git
synced 2025-07-14 20:44:35 +03:00
Feat/accept cmd args (#2)
* make working dir as executable dir * Add support for cli args
This commit is contained in:
@ -86,14 +86,14 @@ func (this *FullParams) RemoveFlags(newflag eFullParamsFlags) {
|
||||
this.cStruct.Flags = this.cStruct.Flags ^ newflag
|
||||
}
|
||||
|
||||
func (this *FullParams) SetLanguage(language eLanguage) {
|
||||
func (this *FullParams) SetLanguage(language int32) {
|
||||
if this == nil {
|
||||
return
|
||||
} else if this.cStruct == nil {
|
||||
return
|
||||
}
|
||||
|
||||
this.cStruct.Language = language
|
||||
this.cStruct.Language = eLanguage(language)
|
||||
}
|
||||
|
||||
/*using pfnNewSegment = HRESULT( __cdecl* )( iContext* ctx, uint32_t n_new, void* user_data ) noexcept;*/
|
||||
|
Reference in New Issue
Block a user