// Code generated by sdkgen. DO NOT EDIT.

package stt

import (
	"context"

	"google.golang.org/grpc"
)

// STT provides access to "stt" component of Yandex.Cloud
type STT struct {
	getConn func(ctx context.Context) (*grpc.ClientConn, error)
}

// NewSTT creates instance of STT
func NewSTT(g func(ctx context.Context) (*grpc.ClientConn, error)) *STT {
	return &STT{g}
}

// Recognizer gets Recognizer client
func (s *STT) Recognizer() *RecognizerClient {
	return &RecognizerClient{getConn: s.getConn}
}

// AsyncRecognizer gets AsyncRecognizer client
func (s *STT) AsyncRecognizer() *AsyncRecognizerClient {
	return &AsyncRecognizerClient{getConn: s.getConn}
}
