Talk Analytics API, gRPC: TalkService.Upload
rpc for uploading talk document as single message
gRPC request
rpc Upload (UploadTalkRequest) returns (UploadTalkResponse)
UploadTalkRequest
{
"talk_id": "string",
"metadata": {
"connection_id": "string",
"fields": "map<string, string>",
"users": [
{
"id": "string",
"role": "UserRole",
"fields": "map<string, string>"
}
]
},
"audio": {
"audio_metadata": {
// Includes only one of the fields `raw_audio`, `container_audio`
"raw_audio": {
"audio_encoding": "AudioEncoding",
"sample_rate_hertz": "int64",
"audio_channel_count": "int64"
},
"container_audio": {
"container_audio_type": "ContainerAudioType"
}
// end of the list of possible fields
},
"audio_data": {
"data": "bytes"
}
}
}
request to create audio dialog
Field |
Description |
talk_id |
string talk_id, blank if initial upload request and present on metadata update |
metadata |
|
audio |
audio payload |
TalkMetadata
Field |
Description |
connection_id |
string id of connection this talk belongs too |
fields |
object (map<string, string>) channel defined fields |
users[] |
per user specific metadata |
UserMetadata
Field |
Description |
id |
string |
role |
enum UserRole
|
fields |
object (map<string, string>) |
AudioRequest
request for sending small audios (< 128 mb) in one go
Field |
Description |
audio_metadata |
audio metadata |
audio_data |
Bytes with audio data. |
AudioMetadata
Audio format options.
Field |
Description |
raw_audio |
Audio without container. Includes only one of the fields |
container_audio |
Audio is wrapped in container. Includes only one of the fields |
RawAudio
RAW Audio format spec (no container to infer type). Used in AudioFormat options.
Field |
Description |
audio_encoding |
enum AudioEncoding Type of audio encoding
|
sample_rate_hertz |
int64 PCM sample rate |
audio_channel_count |
int64 PCM channel count. |
ContainerAudio
Audio with fixed type in container. Used in AudioFormat options.
Field |
Description |
container_audio_type |
enum ContainerAudioType Type of audio container.
|
AudioChunk
Data chunk with audio.
Field |
Description |
data |
bytes Bytes with audio data. |
UploadTalkResponse
{
"talk_id": "string"
}
Field |
Description |
talk_id |
string id of created talk document |