yandex

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Recognize(ctx context.Context, audioData []byte) (string, error)
}

Client defines the interface for a Yandex SpeechKit client.

func NewSpeechKitClient

func NewSpeechKitClient(_ context.Context, logger *slog.Logger, apiKey, folderID, language, audioFormat, sampleRateStr, target string, opts ...grpc.DialOption) (Client, error)

NewSpeechKitClient creates a new SpeechKitClient.

type SpeechKitClient

type SpeechKitClient struct {
	// contains filtered or unexported fields
}

SpeechKitClient is a client for Yandex SpeechKit API using gRPC.

func (*SpeechKitClient) Close

func (c *SpeechKitClient) Close() error

Close closes the gRPC connection.

func (*SpeechKitClient) Recognize

func (c *SpeechKitClient) Recognize(ctx context.Context, audioData []byte) (string, error)

Recognize sends audio data to SpeechKit API for recognition using streaming gRPC.

Jump to

Keyboard shortcuts

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