voice.proto
Generated from proto/blitz/v1/voice.proto by proto-gen-md-diagrams.
| Import | Description |
|---|
| Name | Value | Description |
|---|---|---|
| go_package | github.com/retail-cortex/blitz/proto/blitz/v1 |
classDiagram
direction LR
%% Mermaid Diagram for package: blitz.v1
%% Request message for VoiceService.DescribeVoice.
class DescribeVoiceRequest {
+ string workspace
+ bool list_models
}
%% Response message for VoiceService.DescribeVoice.
class DescribeVoiceResponse {
+ bool enabled
+ string model
+ string voice
+ string listen
+ string summaries
+ int32 idle_minutes
+ string not_set_up
+ string model_in_use
+ string backend
+ List~string~ voices
+ List~string~ models
+ string personality_voice
+ bool org_off
+ string noise
+ int32 pause_ms
+ int32 start_ms
+ int32 buffer_ms
+ string engine
+ string text_model
+ string language
+ string hear_model
+ string hear_location
+ List~string~ locales
+ string cloud_not_set_up
+ string cloud_project
+ string personality_locale
+ double personality_speed
+ double personality_pitch
+ string engine_in_use
+ string text_model_in_use
}
%% Request message for VoiceService.Converse.
class ConverseRequest {
+ string workspace
+ string session_id
+ bool summary_only
+ string sample_voice
+ bool sample_tuned
+ string sample_locale
+ double sample_speed
+ double sample_pitch
}
%% Response message for VoiceService.Converse: one of its fields.
class ConverseResponse {
+ VoiceStarted started
+ bytes audio
+ VoiceText heard
+ VoiceText said
+ string state
+ bool interrupted
+ string run_task
+ string steer
+ bool stop
+ string answer
+ VoiceApproval approve
+ string error
+ string ended
}
ConverseResponse --> `VoiceStarted`
ConverseResponse --> `VoiceText`
ConverseResponse --> `VoiceText`
ConverseResponse --> `VoiceApproval`
%% VoiceStarted is a conversation's start.
class VoiceStarted {
+ string id
+ string model
+ string voice
+ string listen
+ string engine
}
%% VoiceText is a piece of a transcript.
class VoiceText {
+ string text
+ bool final
}
%% VoiceApproval is the voice answering the approval showing (VOX-13).
class VoiceApproval {
+ string id
+ string decision
}
%% Request message for VoiceService.SendVoice: one of its fields.
class SendVoiceRequest {
+ string workspace
+ string id
+ bytes audio
+ Optional~bool~ speaking
+ VoiceWaiting waiting
+ bool end
}
SendVoiceRequest --> `VoiceWaiting`
%% VoiceWaiting is what the window shows waiting on the person.
class VoiceWaiting {
+ string approval_id
+ string approval
+ string question
+ List~string~ options
}
%% Response message for VoiceService.SendVoice.
class SendVoiceResponse {
}
class VoiceService {
<<service>>
+DescribeVoice(DescribeVoiceRequest) DescribeVoiceResponse
+Converse(ConverseRequest) Stream~ConverseResponse~
+SendVoice(SendVoiceRequest) SendVoiceResponse
}
VoiceService --> `DescribeVoiceRequest`
VoiceService --> `DescribeVoiceResponse`
VoiceService --> `ConverseRequest`
VoiceService --o `ConverseResponse` : server stream
VoiceService --> `SendVoiceRequest`
VoiceService --> `SendVoiceResponse`
FQN: blitz.v1
VoiceService is talking to Blitz in the desktop app (spec_063_voice): a live conversation with a Gemini Live model, whose voice agent hands work to the window to run as a typed message. The conversation's audio and events come on a stream; the person's audio and what the window shows waiting go by unary calls, since a browser can't stream to the service. Voice is the person's setting: off, every call but DescribeVoice is refused. Every request names its workspace by absolute directory. Errors carry an ErrorInfo detail: VOICE_OFF, VOICE_NOT_SET_UP, VOICE_MODEL, VOICE_BUSY, UNKNOWN_VOICE.
classDiagram
direction LR
class VoiceService {
<<service>>
+DescribeVoice(DescribeVoiceRequest) DescribeVoiceResponse
+Converse(ConverseRequest) Stream~ConverseResponse~
+SendVoice(SendVoiceRequest) SendVoiceResponse
}
VoiceService --> `DescribeVoiceRequest`
VoiceService --> `DescribeVoiceResponse`
VoiceService --> `ConverseRequest`
VoiceService --o `ConverseResponse` : server stream
VoiceService --> `SendVoiceRequest`
VoiceService --> `SendVoiceResponse`
| Method | Parameter (In) | Parameter (Out) | Description |
|---|---|---|---|
| DescribeVoice | DescribeVoiceRequest | DescribeVoiceResponse | Whether voice is on and set up, its settings and the live models (VOX-40, VOX-41). |
| Converse | ConverseRequest | Stream<ConverseResponse> | Opens a conversation about a session and streams it until it ends (VOX-30): first started, then audio, transcripts, states and the window’s work, then ended. The stream ending ends the conversation. |
| SendVoice | SendVoiceRequest | SendVoiceResponse | Sends the person’s audio, when they start and stop speaking (hold), what the window shows waiting, or the end (VOX-30). |
classDiagram
direction LR
%% Request message for VoiceService.DescribeVoice.
class DescribeVoiceRequest {
+ string workspace
+ bool list_models
}
classDiagram
direction LR
%% Response message for VoiceService.DescribeVoice.
class DescribeVoiceResponse {
+ bool enabled
+ string model
+ string voice
+ string listen
+ string summaries
+ int32 idle_minutes
+ string not_set_up
+ string model_in_use
+ string backend
+ List~string~ voices
+ List~string~ models
+ string personality_voice
+ bool org_off
+ string noise
+ int32 pause_ms
+ int32 start_ms
+ int32 buffer_ms
+ string engine
+ string text_model
+ string language
+ string hear_model
+ string hear_location
+ List~string~ locales
+ string cloud_not_set_up
+ string cloud_project
+ string personality_locale
+ double personality_speed
+ double personality_pitch
+ string engine_in_use
+ string text_model_in_use
}
classDiagram
direction LR
%% Request message for VoiceService.Converse.
class ConverseRequest {
+ string workspace
+ string session_id
+ bool summary_only
+ string sample_voice
+ bool sample_tuned
+ string sample_locale
+ double sample_speed
+ double sample_pitch
}
classDiagram
direction LR
%% Response message for VoiceService.Converse: one of its fields.
class ConverseResponse {
+ VoiceStarted started
+ bytes audio
+ VoiceText heard
+ VoiceText said
+ string state
+ bool interrupted
+ string run_task
+ string steer
+ bool stop
+ string answer
+ VoiceApproval approve
+ string error
+ string ended
}
ConverseResponse --> `VoiceStarted`
ConverseResponse --> `VoiceText`
ConverseResponse --> `VoiceText`
ConverseResponse --> `VoiceApproval`
classDiagram
direction LR
%% VoiceStarted is a conversation's start.
class VoiceStarted {
+ string id
+ string model
+ string voice
+ string listen
+ string engine
}
classDiagram
direction LR
%% VoiceText is a piece of a transcript.
class VoiceText {
+ string text
+ bool final
}
classDiagram
direction LR
%% VoiceApproval is the voice answering the approval showing (VOX-13).
class VoiceApproval {
+ string id
+ string decision
}
classDiagram
direction LR
%% Request message for VoiceService.SendVoice: one of its fields.
class SendVoiceRequest {
+ string workspace
+ string id
+ bytes audio
+ Optional~bool~ speaking
+ VoiceWaiting waiting
+ bool end
}
SendVoiceRequest --> `VoiceWaiting`
classDiagram
direction LR
%% VoiceWaiting is what the window shows waiting on the person.
class VoiceWaiting {
+ string approval_id
+ string approval
+ string question
+ List~string~ options
}
classDiagram
direction LR
%% Response message for VoiceService.SendVoice.
class SendVoiceResponse {
}
FQN: blitz.v1.DescribeVoiceRequest
Request message for VoiceService.DescribeVoice.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| list_models | 2 | bool | Whether to list the provider’s live models (a call to Google). |
FQN: blitz.v1.DescribeVoiceResponse
Response message for VoiceService.DescribeVoice.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| enabled | 1 | bool | [voice] as set (VOX-04). | |
| model | 2 | string | ||
| voice | 3 | string | ||
| listen | 4 | string | ||
| summaries | 5 | string | ||
| idle_minutes | 6 | int32 | ||
| not_set_up | 7 | string | Why voice can’t be used though it’s on ("" when it can): no Google provider, credentials that don’t work (VOX-03). | |
| model_in_use | 8 | string | The model a conversation would use, and its API (“gemini” or “vertex”). | |
| backend | 9 | string | ||
| voices | 10 | string | Repeated | Gemini’s prebuilt voices. |
| models | 11 | string | Repeated | The live models the provider lists, newest first, when asked. |
| personality_voice | 12 | string | The workspace’s personality’s voice ("" for none). | |
| org_off | 13 | bool | Whether the organization’s policy keeps voice off (VOX-52). | |
| noise | 14 | string | How Gemini hears you and how replies play (VOX-08): the room (“normal” or “noisy”), the pause that ends your turn and the speech that starts one (0: Gemini’s own), and how much of a reply is held before it plays (ms). | |
| pause_ms | 15 | int32 | ||
| start_ms | 16 | int32 | ||
| buffer_ms | 17 | int32 | ||
| engine | 18 | string | How the voice hears and speaks, as set (VOX-70): “live”, a Gemini Live model in its own voice; “cloud”, Google Cloud’s Speech-to-Text, a text model and Text-to-Speech, which speak a personality’s locale, speed and pitch; or “auto” (the default): cloud when the personality tunes its voice and Google Cloud is set up, else live. | |
| text_model | 19 | string | The cloud engine’s settings as set ("": their defaults): its text model, the language the person speaks, and Speech-to-Text’s model and location. | |
| language | 20 | string | ||
| hear_model | 21 | string | ||
| hear_location | 22 | string | ||
| locales | 23 | string | Repeated | The locales the cloud engine’s voices speak, for a personality’s locale and for language. |
| cloud_not_set_up | 24 | string | Why the cloud engine can’t be used ("" when it can, as far as was checked: its sign-in is tried only when the models are listed), and the Google Cloud project it would work in. | |
| cloud_project | 25 | string | ||
| personality_locale | 26 | string | How the workspace’s personality tunes the voice (PER-41). | |
| personality_speed | 27 | double | ||
| personality_pitch | 28 | double | ||
| engine_in_use | 29 | string | The engine a conversation here would use, “live” or “cloud”: engine, or what auto comes to for the workspace’s personality (VOX-70a). | |
| text_model_in_use | 30 | string | The cloud engine’s text model: text_model, else the workspace’s small model. |
FQN: blitz.v1.ConverseRequest
Request message for VoiceService.Converse.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| session_id | 2 | string | ||
| summary_only | 3 | bool | Speaks the session’s last turn’s summary and ends (summaries = “always” without a conversation open, VOX-17). | |
| sample_voice | 4 | string | Says a short sample in this voice and ends (Settings › Voice’s Play, VOX-41): one short live call. | |
| sample_tuned | 5 | bool | With sample_voice and the cloud engine: the sample’s locale, speed and pitch, as the personality editor has them (PER-41). With sample_tuned unset, the workspace’s personality’s. | |
| sample_locale | 6 | string | ||
| sample_speed | 7 | double | ||
| sample_pitch | 8 | double |
FQN: blitz.v1.ConverseResponse
Response message for VoiceService.Converse: one of its fields.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| started | 1 | VoiceStarted | The conversation began: its ID for SendVoice, and how it listens. | |
| audio | 2 | bytes | The voice’s audio, 16-bit mono PCM at 24 kHz. | |
| heard | 3 | VoiceText | A piece of what the person said (heard) or the voice says (said); final ends the line. | |
| said | 4 | VoiceText | ||
| state | 5 | string | “listening” or “speaking”. | |
| interrupted | 6 | bool | The person spoke over the voice: drop the audio not yet played. | |
| run_task | 7 | string | The window’s work (VOX-11): run a message as typed, steer the running turn, stop it, answer the question, or answer the approval showing. | |
| steer | 8 | string | ||
| stop | 9 | bool | ||
| answer | 10 | string | ||
| approve | 11 | VoiceApproval | ||
| error | 12 | string | Something went wrong, in a sentence (VOX-24). | |
| ended | 13 | string | The conversation ended: closed, idle, goodbye, off, summary or error. |
FQN: blitz.v1.VoiceStarted
VoiceStarted is a conversation's start.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| id | 1 | string | ||
| model | 2 | string | ||
| voice | 3 | string | ||
| listen | 4 | string | “tap” or “hold”. | |
| engine | 5 | string | “live” or “cloud” (VOX-70). |
FQN: blitz.v1.VoiceText
VoiceText is a piece of a transcript.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| text | 1 | string | ||
| final | 2 | bool |
FQN: blitz.v1.VoiceApproval
VoiceApproval is the voice answering the approval showing (VOX-13).
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| id | 1 | string | ||
| decision | 2 | string | “once” or “deny”. |
FQN: blitz.v1.SendVoiceRequest
Request message for VoiceService.SendVoice: one of its fields.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| workspace | 1 | string | ||
| id | 2 | string | The conversation’s ID, from started. | |
| audio | 3 | bytes | The person’s audio, 16-bit mono PCM at 16 kHz. | |
| speaking | 4 | bool | Optional | With listen = “hold”: the person started (true) or stopped speaking. |
| waiting | 5 | VoiceWaiting | What the window shows waiting on the person, whole each time it changes. | |
| end | 6 | bool | Ends the conversation. |
FQN: blitz.v1.VoiceWaiting
VoiceWaiting is what the window shows waiting on the person.
| Field | Ordinal | Type | Label | Description |
|---|---|---|---|---|
| approval_id | 1 | string | The approval card showing ("" for none) and what it wants. | |
| approval | 2 | string | ||
| question | 3 | string | A question the agent asked, with its options. | |
| options | 4 | string | Repeated |
FQN: blitz.v1.SendVoiceResponse
Response message for VoiceService.SendVoice.
| Field | Ordinal | Type | Label | Description |
|---|