communicate

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioData

type AudioData struct {
	Data  []byte
	Index int
}

type Communicate

type Communicate struct {
	AudioDataIndex int
	// contains filtered or unexported fields
}

func NewCommunicate

func NewCommunicate(text string, options ...communicateOption.Option) (*Communicate, error)

func (*Communicate) CloseOutput

func (c *Communicate) CloseOutput()

func (*Communicate) WriteStreamTo

func (c *Communicate) WriteStreamTo(rc io.Writer) error

WriteStreamTo write audio stream to io.WriteCloser

type DataEntry

type DataEntry struct {
	Offset   int       `json:"Offset"`
	Duration int       `json:"Duration"`
	Text     TextEntry `json:"text"`
}

type MetaDataEntry

type MetaDataEntry struct {
	Type string    `json:"Type"`
	Data DataEntry `json:"Data"`
}

type NoAudioReceived

type NoAudioReceived struct {
	Message string
}

type TextEntry

type TextEntry struct {
	Text         string `json:"text"`
	Length       int64  `json:"Length"`
	BoundaryType string `json:"BoundaryType"`
}

type UnexpectedResponse

type UnexpectedResponse struct {
	Message string
}

type UnknownResponse

type UnknownResponse struct {
	Message string
}

type WebSocketError

type WebSocketError struct {
	Message string
}

Jump to

Keyboard shortcuts

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