azure

package
v0.6.0-dev1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpeechRecognizer

type SpeechRecognizer struct {
	// contains filtered or unexported fields
}

func NewSpeechRecognizer

func NewSpeechRecognizer(cfg SpeechRecognizerConfig) (*SpeechRecognizer, error)

func (*SpeechRecognizer) Destroy

func (s *SpeechRecognizer) Destroy() error

func (*SpeechRecognizer) Transcribe

func (s *SpeechRecognizer) Transcribe(samples []float32) ([]transcribe.Segment, string, error)

func (*SpeechRecognizer) TranscribeAsync

func (s *SpeechRecognizer) TranscribeAsync(samplesCh <-chan []float32) (<-chan transcribe.Segment, error)

type SpeechRecognizerConfig

type SpeechRecognizerConfig struct {
	SpeechKey    string
	SpeechRegion string
	Language     string
	DataDir      string
}

func (SpeechRecognizerConfig) IsValid

func (c SpeechRecognizerConfig) IsValid() error

Jump to

Keyboard shortcuts

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