Skip to main content

whisper

函数名函数描述/介绍
whisper.ConvertAudioToSRTFilewhisper.ConvertAudioToSRTFile can convert audio to srt file example: ``` srtfilename = whisper.ConvertAudioToSRTFile("audio.mp3")~ println(sr...
whisper.CreateSRTManagerNewSRTManagerFromFile 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)

参数#

参数名参数类型参数解释
istring

返回值#

返回值(顺序)返回值类型返回值解释
r1string
r2error

CreateSRTManager#

详细描述#

NewSRTManagerFromFile creates a new SRT manager from an SRT file

定义#

CreateSRTManager(srtFilePath string) (*SRTManager, error)

参数#

参数名参数类型参数解释
srtFilePathstring

返回值#

返回值(顺序)返回值类型返回值解释
r1*SRTManager
r2error