Service Client: Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::EmbeddedAssistantClient

Client stub representing the remote EmbeddedAssistant gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to assistant.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant - Compiled Protocol Buffers messages for google/assistant/embedded/v1alpha1/embedded_assistant.proto

SYNOPSIS

use Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant;

my $msg = Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseConfig->new({
    audio_in_config => $audio_in_config,
    audio_out_config => $audio_out_config,
    converse_state => $converse_state,
});

# Read or update a field
my $val = $msg->audio_in_config();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseConfig->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/assistant/embedded/v1alpha1/embedded_assistant.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseConfig

Specifies how to process the `ConverseRequest` messages.

Inherits from Protobuf::Message.

Accessors

Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::AudioInConfig

Specifies how to process the `audio_in` data that will be provided in subsequent requests. For recommended settings, see the Google Assistant SDK [best practices](https://developers.google.com/assistant/sdk/develop/grpc/best-practices/audio).

Inherits from Protobuf::Message.

Accessors

  • $msg->encoding() / $msg->encoding($value)

    Type: Enum (Google::Assistant::Embedded::V1alpha1::AudioInConfig::Encoding)

    *Required* Encoding of audio data sent in all `audio_in` messages.

  • $msg->sample_rate_hertz() / $msg->sample_rate_hertz($value)

    Type: Int32

    *Required* Sample rate (in Hertz) of the audio data sent in all `audio_in` messages. Valid values are from 16000-24000, but 16000 is optimal. For best results, set the sampling rate of the audio source to 16000 Hz. If that's not possible, use the native sample rate of the audio source (instead of re-sampling).

Enum: AudioInConfig::Encoding

  • ENCODING_UNSPECIFIED => 0

  • LINEAR16 => 1

  • FLAC => 2

Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::AudioOutConfig

Specifies the desired format for the server to use when it returns `audio_out` messages.

Inherits from Protobuf::Message.

Accessors

  • $msg->encoding() / $msg->encoding($value)

    Type: Enum (Google::Assistant::Embedded::V1alpha1::AudioOutConfig::Encoding)

    *Required* The encoding of audio data to be returned in all `audio_out` messages.

  • $msg->sample_rate_hertz() / $msg->sample_rate_hertz($value)

    Type: Int32

    *Required* The sample rate in Hertz of the audio data returned in `audio_out` messages. Valid values are: 16000-24000.

  • $msg->volume_percentage() / $msg->volume_percentage($value)

    Type: Int32

    *Required* Current volume setting of the device's audio output. Valid values are 1 to 100 (corresponding to 1% to 100%).

Enum: AudioOutConfig::Encoding

  • ENCODING_UNSPECIFIED => 0

  • LINEAR16 => 1

  • MP3 => 2

  • OPUS_IN_OGG => 3

Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseState

Provides information about the current dialog state.

Inherits from Protobuf::Message.

Accessors

  • $msg->conversation_state() / $msg->conversation_state($value)

    Type: Bytes

    *Required* The `conversation_state` value returned in the prior `ConverseResponse`. Omit (do not set the field) if there was no prior `ConverseResponse`. If there was a prior `ConverseResponse`, do not omit this field; doing so will end that conversation (and this new request will start a new conversation).

Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::AudioOut

The audio containing the assistant's response to the query. Sequential chunks of audio data are received in sequential `ConverseResponse` messages.

Inherits from Protobuf::Message.

Accessors

  • $msg->audio_data() / $msg->audio_data($value)

    Type: Bytes

    *Output-only* The audio data containing the assistant's response to the query. Sequential chunks of audio data are received in sequential `ConverseResponse` messages.

Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseResult

The semantic result for the user's spoken query.

Inherits from Protobuf::Message.

Accessors

  • $msg->spoken_request_text() / $msg->spoken_request_text($value)

    Type: String

    *Output-only* The recognized transcript of what the user said.

  • $msg->spoken_response_text() / $msg->spoken_response_text($value)

    Type: String

    *Output-only* The text of the assistant's spoken response. This is only returned for an IFTTT action.

  • $msg->conversation_state() / $msg->conversation_state($value)

    Type: Bytes

    *Output-only* State information for subsequent `ConverseRequest`. This value should be saved in the client and returned in the `conversation_state` with the next `ConverseRequest`. (The client does not need to interpret or otherwise use this value.) There is no need to save this information across device restarts.

  • $msg->microphone_mode() / $msg->microphone_mode($value)

    Type: Enum (Google::Assistant::Embedded::V1alpha1::ConverseResult::MicrophoneMode)

    *Output-only* Specifies the mode of the microphone after this `Converse` RPC is processed.

  • $msg->volume_percentage() / $msg->volume_percentage($value)

    Type: Int32

    *Output-only* Updated volume level. The value will be 0 or omitted (indicating no change) unless a voice command such as "Increase the volume" or "Set volume level 4" was recognized, in which case the value will be between 1 and 100 (corresponding to the new volume level of 1% to 100%). Typically, a client should use this volume level when playing the `audio_out` data, and retain this value as the current volume level and supply it in the `AudioOutConfig` of the next `ConverseRequest`. (Some clients may also implement other ways to allow the current volume level to be changed, for example, by providing a knob that the user can turn.)

Enum: ConverseResult::MicrophoneMode

  • MICROPHONE_MODE_UNSPECIFIED => 0

  • CLOSE_MICROPHONE => 1

  • DIALOG_FOLLOW_ON => 2

Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseRequest

The top-level message sent by the client. Clients must send at least two, and typically numerous `ConverseRequest` messages. The first message must contain a `config` message and must not contain `audio_in` data. All subsequent messages must contain `audio_in` data and must not contain a `config` message.

Inherits from Protobuf::Message.

Accessors

  • $msg->config() / $msg->config($value)

    Type: Message (Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseConfig)

    The `config` message provides information to the recognizer that specifies how to process the request. The first `ConverseRequest` message must contain a `config` message.

  • $msg->audio_in() / $msg->audio_in($value)

    Type: Bytes

    The audio data to be recognized. Sequential chunks of audio data are sent in sequential `ConverseRequest` messages. The first `ConverseRequest` message must not contain `audio_in` data and all subsequent `ConverseRequest` messages must contain `audio_in` data. The audio bytes must be encoded as specified in `AudioInConfig`. Audio must be sent at approximately real-time (16000 samples per second). An error will be returned if audio is sent significantly faster or slower.

Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::ConverseResponse

The top-level message received by the client. A series of one or more `ConverseResponse` messages are streamed back to the client.

Inherits from Protobuf::Message.

Accessors

Enum: ConverseResponse::EventType

  • EVENT_TYPE_UNSPECIFIED => 0

  • END_OF_UTTERANCE => 1

SEE ALSO

Protobuf, Protobuf::Message, Google::Assistant::Embedded::V1alpha1::EmbeddedAssistant::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.