assemblyai

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type STT added in v0.10.1

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

func NewAssemblyAI

func NewAssemblyAI() *STT

NewAssemblyAI 创建并返回一个新的 AssemblyAI STT 实例

func (*STT) Recognize added in v0.10.1

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

Recognize 实现了 stt.Service 接口,使用 AssemblyAI 进行语音识别

func (*STT) StreamRecognize added in v0.10.1

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

StreamRecognize 实现实时转录接口

Jump to

Keyboard shortcuts

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