whisper
函数名 | 函数描述/介绍 |
---|---|
whisper.ConvertAudioToSRTFile | whisper.ConvertAudioToSRTFile can convert audio to srt file example: ``` srtfilename = whisper.ConvertAudioToSRTFile("audio.mp3")~ println(sr... |
whisper.CreateSRTManager | NewSRTManagerFromFile creates a new SRT manager from an SRT file |
#
函数定义#
ConvertAudioToSRTFile#
详细描述whisper.ConvertAudioToSRTFile can convert audio to srt file
example:
srtfilename = whisper.ConvertAudioToSRTFile("audio.mp3")~println(srtfilename)
#
定义ConvertAudioToSRTFile(i string) (string, error)
#
参数参数名 | 参数类型 | 参数解释 |
---|---|---|
i | string |
#
返回值返回值(顺序) | 返回值类型 | 返回值解释 |
---|---|---|
r1 | string | |
r2 | error |
#
CreateSRTManager#
详细描述NewSRTManagerFromFile creates a new SRT manager from an SRT file
#
定义CreateSRTManager(srtFilePath string) (*SRTManager, error)
#
参数参数名 | 参数类型 | 参数解释 |
---|---|---|
srtFilePath | string |
#
返回值返回值(顺序) | 返回值类型 | 返回值解释 |
---|---|---|
r1 | *SRTManager | |
r2 | error |