transcribe

package
v0.0.0-...-2ce81c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transcriber

type Transcriber interface {
	Transcribe(ctx context.Context, lang, path string, hints []string) ([]Transcription, error)
	ConvertToFLAC(ctx context.Context, soxPath, input string) ([]string, error)
}

Transcriber allows transcription of an audio file.

func NewGSpeechTranscriber

func NewGSpeechTranscriber(ctx context.Context) (Transcriber, error)

NewGSpeechTranscriber creates a new transcriber using the Google Speech API.

type Transcription

type Transcription struct {
	Text string
	// contains filtered or unexported fields
}

Transcription contains what was said with a given confidence score for the overall transcription.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL