azure

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type STT

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

func NewAzureSTT

func NewAzureSTT() *STT

NewAzureSTT 创建并返回一个新的 AzureSTT 实例

func (*STT) Recognize

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

Recognize 调用 Azure 的 STT API 将音频数据转换为文本 新增 audioURL 参数,但 Azure 不使用该参数

Jump to

Keyboard shortcuts

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