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.
Click to show internal directories.
Click to hide internal directories.