Documentation
¶
Overview ¶
Package speech implements the viam-labs:service:speech API
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var API = resource.APINamespace("viam-labs").WithServiceType("speech")
API is the full API definition.
Functions ¶
func NewRPCServiceServer ¶
func NewRPCServiceServer(coll resource.APIResourceCollection[Speech]) interface{}
NewRPCServiceServer returns a new RPC server for the Speech API.
Types ¶
type Speech ¶
type Speech interface { resource.Resource Say(ctx context.Context, text string, blocking bool) (string, error) ToText(ctx context.Context, speech []byte, format string) (string, error) ToSpeech(ctx context.Context, text string) ([]byte, error) Completion(ctx context.Context, text string, blocking bool) (string, error) GetCommands(ctx context.Context, number int) ([]string, error) ListenTrigger(ctx context.Context, typ string) (string, error) Listen(ctx context.Context) (string, error) IsSpeaking(ctx context.Context) (bool, error) }
Speech defines the Go interface for the component (should match the protobuf methods.)
func NewClientFromConn ¶
func NewClientFromConn(conn rpc.ClientConn, remoteName string, name resource.Name, logger logging.Logger) Speech
NewClientFromConn creates a new Speech RPC client from an existing connection.
Click to show internal directories.
Click to hide internal directories.