View Source ExGoogleSTT.Grpc.Connection (Google Speech gRPC API v0.5.1)

Main module of the library. It provides a high-level API for Google Cloud Speech-to-Text API.

Summary

Functions

Connects to a Google Cloud Speech-to-Text API

Disconnects from Google Cloud Speech-to-Text API

Returns a list of options that need to be passed to a Service Stub when making a gRPC call

Functions

@spec connect() :: {:ok, GRPC.Channel.t()}

Connects to a Google Cloud Speech-to-Text API

@spec disconnect(GRPC.Channel.t()) :: {:ok, GRPC.Channel.t()} | {:error, any()}

Disconnects from Google Cloud Speech-to-Text API

@spec request_opts() :: Keyword.t()

Returns a list of options that need to be passed to a Service Stub when making a gRPC call