Versions in this module Expand all Collapse all v1 v1.0.0 Jan 1, 2021 Changes in this version + const HeadRequestTimeout + func SetVerbose(value bool) + type CloudError struct + Err error + Kind cloud.ErrorType + type Conn interface + Close func() error + CloseSend func() error + SendAudio func([]byte) error + WaitForResponse func() (interface{}, error) + type ConnectFunc func(context.Context) (Conn, *CloudError) + type Option func(o *options) + func WithChipperURL(url string) Option + func WithConnectFunc(connectFn ConnectFunc) Option + func WithConnectionCheckOptions(opts chipper.ConnectOpts) Option + func WithIntentOptions(opts chipper.IntentOpts, mode cloud.StreamType) Option + func WithKnowledgeGraphOptions(opts chipper.KGOpts) Option + func WithTokener(t token.Accessor, require bool) Option + type Receiver interface + OnConnectionResult func(*cloud.ConnectionResult) + OnError func(cloud.ErrorType, error) + OnIntent func(*cloud.IntentResult) + OnStreamOpen func(string) + type Streamer struct + func NewStreamer(ctx context.Context, receiver Receiver, streamSize int, opts ...Option) *Streamer + func (strm *Streamer) AddBytes(bytes []byte) + func (strm *Streamer) AddSamples(samples []int16) + func (strm *Streamer) Close() error + func (strm *Streamer) CloseSend() error