common

package
v0.0.0-...-08ba86d Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthorizationKeysFromEnv

func GetAuthorizationKeysFromEnv() (auth.KeyPair, error)

func OpenWavFormat

func OpenWavFormat(file *os.File, expectedEncoding string, expectedNumChannels int, expectedRate int) (io.Reader, error)

func PrettyPrintProtobuf

func PrettyPrintProtobuf(message proto.Message) error

Types

type SpeechToTextClient

type SpeechToTextClient interface {
	sttPb.SpeechToTextClient
	Close() error
}

func NewSttClient

func NewSttClient() (SpeechToTextClient, error)

type TextToSpeechClient

type TextToSpeechClient interface {
	ttsPb.TextToSpeechClient
	Close() error
}

func NewTtsClient

func NewTtsClient() (TextToSpeechClient, error)

Jump to

Keyboard shortcuts

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