audio

package
v0.0.0-...-d48bf00 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordAudioToFile

func RecordAudioToFile(ctx context.Context, maxTime time.Duration, filename string) error

func SpeechToText

func SpeechToText(ctx context.Context, config *SpeechConfig) (string, error)

Types

type SpeechConfig

type SpeechConfig struct {
	MaxMinutes time.Duration
	Lang       string
	Detect     bool
}

Jump to

Keyboard shortcuts

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