Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 Changes in this version + const CapabilityIncrementalText + const DefaultModel + const DefaultURL + const Protocol + type Adapter struct + func New(config Config) (*Adapter, error) + func (adapter *Adapter) Descriptor() v1.Descriptor + func (adapter *Adapter) Stream(ctx context.Context, plan v1.SpeechPlan, consume func(v1.SpeechChunk) error) error + func (adapter *Adapter) Synthesize(ctx context.Context, plan v1.SpeechPlan) ([]v1.SpeechChunk, error) + type Capabilities struct + IncrementalText bool + InputGranularity string + NonterminalFlush bool + type Chunk struct + PCM16LE []byte + Sequence int + type Config struct + BearerToken string + DialTimeout time.Duration + HTTPClient *http.Client + Header http.Header + IdleTimeout time.Duration + Model string + OutputRateHz uint32 + URL string + Voice string + type Context struct + func Open(ctx context.Context, config Config) (*Context, error) + func (speech *Context) Accepted() int64 + func (speech *Context) Append(ctx context.Context, text string) error + func (speech *Context) Audio() <-chan Chunk + func (speech *Context) Cancel(ctx context.Context) error + func (speech *Context) Capabilities() Capabilities + func (speech *Context) Close() + func (speech *Context) End(ctx context.Context) error + func (speech *Context) Err() error + func (speech *Context) Flush(ctx context.Context) error + func (speech *Context) Model() string + func (speech *Context) SampleRate() uint32 + func (speech *Context) Sent() int64