|
PebbleOS v4.47.0-512-g5285d4236
|
Pebble Protocol voice control endpoint (11000). More...
Data Structures | |
| struct | AudioTransferInfoSpeex |
| Speex stream parameters, sent before the encoded audio. More... | |
| union | VEFlags |
| Message flags. More... | |
| struct | SessionSetupMsg |
| Session setup request, from the watch. More... | |
| struct | SessionSetupResultMsg |
| Session setup result, from the phone. More... | |
| struct | AudioStreamSetupResultMsg |
| Session setup result for VoiceEndpointSessionTypeAudioStream, from the phone. More... | |
| struct | VoiceSessionResultMsg |
| Dictation or NLP result, from the phone. More... | |
| struct | ServiceRetryMsg |
| Service retry, from the phone. More... | |
| struct | VEFlags.__unnamed99__ |
Functions | |
| void | voice_endpoint_setup_session (VoiceEndpointSessionType session_type, AudioEndpointSessionId session_id, AudioTransferInfoSpeex *info, Uuid *app_uuid) |
| Ask the phone to start a voice session. | |
Pebble Protocol voice control endpoint (11000).
Sets up dictation and NLP sessions with the phone, whose audio is streamed through the audio endpoint, and passes the results back to the voice service.
| struct AudioTransferInfoSpeex |
| union VEFlags |
Message flags.
| Data Fields | ||
|---|---|---|
| struct VEFlags.__unnamed99__ | __unnamed__ | |
| uint32_t | all | All flags. |
| struct SessionSetupMsg |
Session setup request, from the watch.
| Data Fields | ||
|---|---|---|
| struct pbl_generic_attr_list | attr_list | Attributes: speex info and, for apps, the app UUID. |
| VEFlags | flags | Flags. |
| MsgId | msg_id: 8 | MsgIdSessionSetup. |
| AudioEndpointSessionId | session_id | Audio endpoint session. |
| VoiceEndpointSessionType | session_type: 8 | Kind of session. |
| struct SessionSetupResultMsg |
Session setup result, from the phone.
| Data Fields | ||
|---|---|---|
| VEFlags | flags | Flags. |
| MsgId | msg_id: 8 | MsgIdSessionSetup. |
| VoiceEndpointResult | result: 8 | Setup result. |
| VoiceEndpointSessionType | session_type: 8 | Kind of session. |
| struct AudioStreamSetupResultMsg |
Session setup result for VoiceEndpointSessionTypeAudioStream, from the phone.
| Data Fields | ||
|---|---|---|
| SessionSetupResultMsg | base | |
| AudioEndpointSessionId | session_id | Audio endpoint session the result is for, so a late answer can't start a newer stream. |
| struct VoiceSessionResultMsg |
Dictation or NLP result, from the phone.
| Data Fields | ||
|---|---|---|
| struct pbl_generic_attr_list | attr_list | Result attributes. |
| VEFlags | flags | Flags. |
| MsgId | msg_id: 8 | MsgIdDictationResult or MsgIdNLPResult. |
| VoiceEndpointResult | result: 8 | Session result. |
| AudioEndpointSessionId | session_id | Audio endpoint session. |
| struct ServiceRetryMsg |
Service retry, from the phone.
| Data Fields | ||
|---|---|---|
| VEFlags | flags | Flags. |
| MsgId | msg_id: 8 | MsgIdServiceRetry. |
| VoiceEndpointService | service: 8 | Service the phone is retrying with. |
| AudioEndpointSessionId | session_id | Audio endpoint session. |
| struct VEFlags.__unnamed99__ |
| Data Fields | ||
|---|---|---|
| uint32_t | app_initiated: 1 | The session was started by an app. |
| uint32_t | service_retry_support: 1 |
The watch accepts MsgIdServiceRetry for this session. Zero on older firmware. |
| enum MsgId |
| enum VEAttributeId |
Attribute identifier in voice endpoint messages.
| enum VoiceEndpointResult |
Result of a voice session, reported by the phone.
| enum VoiceEndpointService |
Dictation service the phone retries a session with, see MsgIdServiceRetry.
| Enumerator | |
|---|---|
| VoiceEndpointServiceOnline | A network speech-to-text service. |
| VoiceEndpointServiceOffline | A model running on the phone. |
| VoiceEndpointServiceCount | Number of services. |
Kind of voice session.
| void voice_endpoint_setup_session | ( | VoiceEndpointSessionType | session_type, |
| AudioEndpointSessionId | session_id, | ||
| AudioTransferInfoSpeex * | info, | ||
| Uuid * | app_uuid | ||
| ) |
Ask the phone to start a voice session.
Also switches the connection to its lowest latency for the duration of a voice session.
| session_type | Kind of session. |
| session_id | Audio endpoint session carrying the audio. |
| info | Speex stream parameters. |
| app_uuid | UUID of the requesting app, or nullptr for a system session. |