transcribe

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package transcribe is a convenience library for Google Speech API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostProcess

func PostProcess(phrases []string) string

PostProcess cleans up the phrases and concatenates them to a single text. For now, such post-processing is trivial.

func Submit

func Submit(ctx context.Context, cl *speech.Client, bucket, object string) ([]string, error)

Submit transcribes an 44.1kHz wav file (uploaded to GCS) via the Google Speech API. The call is blocking. It returns a list of phrases.

Types

This section is empty.

Jump to

Keyboard shortcuts

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