Documentation
¶
Index ¶
- func ApplyExitOnHelp(c *cobra.Command, exitCode int)
- func DownloadFile(url string, filepath string) error
- func GetModel(modelType string) (string, error)
- func GetWhisperDll(version string) (string, error)
- func HandleDefaultModel(modelType string) (string, error)
- func HandleWhisperDll(version string) (string, error)
- func IsFileExists(filename string) bool
- func PromptUser(question string) bool
- type Arguments
- type LanguageMap
- type ParsedArguments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyExitOnHelp ¶ added in v0.2.0
func DownloadFile ¶
func GetWhisperDll ¶
func HandleDefaultModel ¶ added in v0.2.0
HandleDefaultModel checks if the default model exists or prompts the user to download it
func HandleWhisperDll ¶ added in v0.2.0
HandleWhisperDll checks if Whisper.dll exists or prompts the user to download it
func IsFileExists ¶
func PromptUser ¶ added in v0.2.0
PromptUser prompts the user with a question and returns true if they agree
Types ¶
type LanguageMap ¶ added in v0.2.0
LanguageMap represents the mapping of languages to their hex codes
type ParsedArguments ¶ added in v0.2.0
ParsedArguments holds the processed arguments
func ParseFlags ¶ added in v0.2.0
func ParseFlags() (*ParsedArguments, error)
Click to show internal directories.
Click to hide internal directories.