Documentation ¶
Index ¶
- Variables
- func InitRecogniseService()
- func TokenGenerator() string
- type AudioFileReader
- type ReadCloserWithCallback
- type RecogniseService
- func (r *RecogniseService) LoadFromURL(url string, token string, waitConverted *sync.WaitGroup) *SubtitlesRecognitionResultArray
- func (r *RecogniseService) Recognise(source io.ReadCloser, contentType string, interrupt *context.CancelFunc) *speechtotextv1.SpeechRecognitionResults
- func (r *RecogniseService) UploadToRecogniseWithAudioSplitting(file io.ReadCloser, fileExt string, token string, ...) *SubtitlesRecognitionResultArray
- type Subtitles
- type SubtitlesChunk
- type SubtitlesRecognitionResultArray
- type TokeData
Constants ¶
This section is empty.
Variables ¶
View Source
var TokenMap map[string]TokeData
Functions ¶
func InitRecogniseService ¶
func InitRecogniseService()
func TokenGenerator ¶
func TokenGenerator() string
Types ¶
type AudioFileReader ¶
type AudioFileReader struct {
// contains filtered or unexported fields
}
type ReadCloserWithCallback ¶
type ReadCloserWithCallback struct {
// contains filtered or unexported fields
}
func (*ReadCloserWithCallback) Close ¶
func (r *ReadCloserWithCallback) Close() error
type RecogniseService ¶
type RecogniseService struct {
// contains filtered or unexported fields
}
var Recogniser *RecogniseService
func (*RecogniseService) LoadFromURL ¶
func (r *RecogniseService) LoadFromURL(url string, token string, waitConverted *sync.WaitGroup) *SubtitlesRecognitionResultArray
func (*RecogniseService) Recognise ¶
func (r *RecogniseService) Recognise(source io.ReadCloser, contentType string, interrupt *context.CancelFunc) *speechtotextv1.SpeechRecognitionResults
func (*RecogniseService) UploadToRecogniseWithAudioSplitting ¶
func (r *RecogniseService) UploadToRecogniseWithAudioSplitting(file io.ReadCloser, fileExt string, token string, waitConverted *sync.WaitGroup) *SubtitlesRecognitionResultArray
type SubtitlesChunk ¶
type SubtitlesRecognitionResultArray ¶
type SubtitlesRecognitionResultArray []SubtitlesChunk
func (*SubtitlesRecognitionResultArray) Len ¶
func (s *SubtitlesRecognitionResultArray) Len() int
func (*SubtitlesRecognitionResultArray) Less ¶
func (s *SubtitlesRecognitionResultArray) Less(i, j int) bool
func (*SubtitlesRecognitionResultArray) Swap ¶
func (s *SubtitlesRecognitionResultArray) Swap(i, j int)
type TokeData ¶
type TokeData struct { Subtitles chan Subtitles Cancel *context.CancelFunc }
Directories ¶
Path | Synopsis |
---|---|
middleware/httprouterwrapper
Package httprouterwrapper allows the use of http.HandlerFunc compatible funcs with julienschmidt/httprouter
|
Package httprouterwrapper allows the use of http.HandlerFunc compatible funcs with julienschmidt/httprouter |
shared
|
|
Click to show internal directories.
Click to hide internal directories.