Documentation ¶ Index ¶ func NewSpeech(credentialsFile string, sampleRate int32) text.ISpeech type Speech func (s *Speech) Recognize(ctx context.Context, fileURI string) (ret []*srt.Srt, retW []*srt.Srt, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewSpeech ¶ func NewSpeech(credentialsFile string, sampleRate int32) text.ISpeech Types ¶ type Speech ¶ type Speech struct { // contains filtered or unexported fields } func (*Speech) Recognize ¶ func (s *Speech) Recognize(ctx context.Context, fileURI string) (ret []*srt.Srt, retW []*srt.Srt, err error) Source Files ¶ View all Source files google.go Click to show internal directories. Click to hide internal directories.