utils

package
v0.3.0-dev4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeTrack

func DecodeTrack(t *webrtc.TrackRemote) (<-chan []float32, error)

func EncodeAudio

func EncodeAudio(samplesCh <-chan []int16) (<-chan []byte, error)

func SynthesizeText

func SynthesizeText(transcribedCh <-chan string, stopCh <-chan struct{}, opts map[string]any) (<-chan []int16, error)

func TranscribeAudio

func TranscribeAudio(decodedCh <-chan []float32, opts map[string]any) (chan string, error)

func TransmitAudio

func TransmitAudio(pktsCh <-chan []byte, outTrack *webrtc.TrackLocalStaticRTP,
	getSender func() *webrtc.RTPSender, isActive func() bool, setActive func(val bool)) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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