aws

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

internal/stt/aws/aws.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(cfg *config.AWSConfig) (sttservice.Service, error)

NewService 创建新的 AWS STT 服务

Types

type Service

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

func (*Service) Recognize

func (s *Service) Recognize(audioData []byte) (string, error)

Recognize 实现了 stt.Service 接口的 Recognize 方法

func (*Service) StreamRecognize

func (s *Service) StreamRecognize(ctx context.Context, audioDataChan <-chan []byte, transcriptChan chan<- string) error

StreamRecognize 实现了 stt.Service 接口的 StreamRecognize 方法

Jump to

Keyboard shortcuts

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