@viamrobotics/sdk 0.52.2 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.479";
1
+ export declare const apiVersion = "v0.1.483";
@@ -0,0 +1,20 @@
1
+ export interface AudioProperties {
2
+ /** List of audio codecs supported by the device */
3
+ supportedCodecs: string[];
4
+ /** Current sample rate in Hz */
5
+ sampleRateHz: number;
6
+ /** Maximum number of audio channels supported (e.g., 1 for mono, 2 for stereo) */
7
+ numChannels: number;
8
+ }
9
+ /** Common audio codec constants */
10
+ export declare const AudioCodec: {
11
+ readonly MP3: "mp3";
12
+ readonly PCM16: "pcm16";
13
+ readonly PCM32: "pcm32";
14
+ readonly PCM32_FLOAT: "pcm32float";
15
+ readonly AAC: "aac";
16
+ readonly OPUS: "opus";
17
+ readonly FLAC: "flac";
18
+ readonly WAV: "wav";
19
+ };
20
+ export type AudioCodecType = (typeof AudioCodec)[keyof typeof AudioCodec];
@@ -0,0 +1,36 @@
1
+ import type { Resource, Struct } from '../../types';
2
+ import type { AudioInfo } from '../../gen/common/v1/common_pb';
3
+ import type { AudioProperties } from '../../audio-common';
4
+ export interface AudioChunk {
5
+ audioData: Uint8Array;
6
+ audioInfo?: AudioInfo;
7
+ startTimeNs: bigint;
8
+ endTimeNs: bigint;
9
+ sequence: number;
10
+ requestID: string;
11
+ }
12
+ /** Represents a device that takes audio input. */
13
+ export interface AudioIn extends Resource {
14
+ /**
15
+ * Stream audio from the device.
16
+ *
17
+ * @example
18
+ *
19
+ * ```ts
20
+ * const audioIn = new VIAM.AudioInClient(machine, 'my_audio_in');
21
+ * const stream = audioIn.getAudio(VIAM.AudioCodec.PCM16, 3, 0n, {});
22
+ * ```
23
+ */
24
+ getAudio(codec: string, durationSeconds: number, previousTimestamp?: bigint, extra?: Struct): AsyncIterable<AudioChunk>;
25
+ /**
26
+ * Return the audio input properties.
27
+ *
28
+ * @example
29
+ *
30
+ * ```ts
31
+ * const audioIn = new VIAM.AudioInClient(machine, 'my_audio_in');
32
+ * const properties = await audioIn.getProperties();
33
+ * ```
34
+ */
35
+ getProperties: () => Promise<AudioProperties>;
36
+ }
@@ -0,0 +1,19 @@
1
+ import type { RobotClient } from '../../robot';
2
+ import type { Options } from '../../types';
3
+ import { Struct, type JsonValue } from '@bufbuild/protobuf';
4
+ import type { CallOptions } from '@connectrpc/connect';
5
+ import { type AudioIn, type AudioChunk } from './audio-in';
6
+ export declare class AudioInClient implements AudioIn {
7
+ private client;
8
+ readonly name: string;
9
+ private readonly options;
10
+ callOptions: CallOptions;
11
+ constructor(client: RobotClient, name: string, options?: Options);
12
+ getAudio(codec: string, durationSeconds: number, previousTimestamp?: bigint, extra?: {}, callOptions?: CallOptions): AsyncIterable<AudioChunk>;
13
+ getProperties(callOptions?: CallOptions): Promise<{
14
+ supportedCodecs: string[];
15
+ sampleRateHz: number;
16
+ numChannels: number;
17
+ }>;
18
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,34 @@
1
+ import type { Resource, Struct } from '../../types';
2
+ import type { AudioInfo } from '../../gen/common/v1/common_pb';
3
+ import type { AudioProperties } from '../../audio-common';
4
+ /** Represents a device that outputs audio. */
5
+ export interface AudioOut extends Resource {
6
+ /**
7
+ * Play audio on the device.
8
+ *
9
+ * @example
10
+ *
11
+ * ```ts
12
+ * const audioOut = new VIAM.AudioOutClient(machine, 'my_audio_out');
13
+ * const audioData = new Uint8Array([...]); // Your audio data
14
+ * const audioInfo = { codec: 'pcm16', sampleRateHz: 48000, numChannels: 2 };
15
+ * await audioOut.play(audioData, audioInfo);
16
+ * ```
17
+ *
18
+ * @param audioData - The audio data to play
19
+ * @param audioInfo - Information about the audio format (optional, required
20
+ * for raw pcm data)
21
+ */
22
+ play: (audioData: Uint8Array, audioInfo?: AudioInfo, extra?: Struct) => Promise<void>;
23
+ /**
24
+ * Return the audio output properties.
25
+ *
26
+ * @example
27
+ *
28
+ * ```ts
29
+ * const audioOut = new VIAM.AudioOutClient(machine, 'my_audio_out');
30
+ * const properties = await audioOut.getProperties();
31
+ * ```
32
+ */
33
+ getProperties: () => Promise<AudioProperties>;
34
+ }
@@ -0,0 +1,25 @@
1
+ import type { RobotClient } from '../../robot';
2
+ import type { Options } from '../../types';
3
+ import { Struct, type JsonValue } from '@bufbuild/protobuf';
4
+ import type { CallOptions } from '@connectrpc/connect';
5
+ import { type AudioInfo } from '../../gen/common/v1/common_pb';
6
+ import { type AudioOut } from './audio-out';
7
+ /**
8
+ * A gRPC-web client for the AudioOut component.
9
+ *
10
+ * @group Clients
11
+ */
12
+ export declare class AudioOutClient implements AudioOut {
13
+ private client;
14
+ readonly name: string;
15
+ private readonly options;
16
+ callOptions: CallOptions;
17
+ constructor(client: RobotClient, name: string, options?: Options);
18
+ play(audioData: Uint8Array, audioInfo?: AudioInfo, extra?: {}, callOptions?: CallOptions): Promise<void>;
19
+ getProperties(callOptions?: CallOptions): Promise<{
20
+ supportedCodecs: string[];
21
+ sampleRateHz: number;
22
+ numChannels: number;
23
+ }>;
24
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
25
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export { type AudioIn, type AudioChunk } from './audio-in/audio-in';
2
+ export { AudioInClient } from './audio-in/client';
3
+ export { type AudioProperties, AudioCodec, type AudioCodecType, } from '../audio-common';
@@ -0,0 +1,3 @@
1
+ export { type AudioOut } from './audio-out/audio-out';
2
+ export { AudioOutClient } from './audio-out/client';
3
+ export { type AudioProperties, AudioCodec, type AudioCodecType, } from '../audio-common';
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { GetLogsRequest, GetLogsResponse, LinkOrgRequest, LinkOrgResponse, LinkRepoRequest, LinkRepoResponse, ListAppLinksRequest, ListAppLinksResponse, ListJobsRequest, ListJobsResponse, ListRepoLinksRequest, ListRepoLinksResponse, RemoveAppLinkRequest, RemoveAppLinkResponse, StartBuildRequest, StartBuildResponse, UnlinkOrgRequest, UnlinkOrgResponse, UnlinkRepoRequest, UnlinkRepoResponse } from "./build_pb.js";
6
+ import { GetLogsRequest, GetLogsResponse, LinkOrgRequest, LinkOrgResponse, LinkRepoRequest, LinkRepoResponse, ListAppLinksRequest, ListAppLinksResponse, ListJobsRequest, ListJobsResponse, ListRepoLinksRequest, ListRepoLinksResponse, RemoveAppLinkRequest, RemoveAppLinkResponse, StartBuildRequest, StartBuildResponse, StartReloadBuildRequest, StartReloadBuildResponse, UnlinkOrgRequest, UnlinkOrgResponse, UnlinkRepoRequest, UnlinkRepoResponse } from "./build_pb.js";
7
7
  import { MethodKind } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
@@ -124,6 +124,17 @@ export declare const BuildService: {
124
124
  readonly O: typeof UnlinkOrgResponse,
125
125
  readonly kind: MethodKind.Unary,
126
126
  },
127
+ /**
128
+ * upload the local dev environment and build a module for hot reloading
129
+ *
130
+ * @generated from rpc viam.app.build.v1.BuildService.StartReloadBuild
131
+ */
132
+ readonly startReloadBuild: {
133
+ readonly name: "StartReloadBuild",
134
+ readonly I: typeof StartReloadBuildRequest,
135
+ readonly O: typeof StartReloadBuildResponse,
136
+ readonly kind: MethodKind.ClientStreaming,
137
+ },
127
138
  }
128
139
  };
129
140
 
@@ -5,6 +5,7 @@
5
5
 
6
6
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
7
7
  import { Message, proto3 } from "@bufbuild/protobuf";
8
+ import type { CreatePackageRequest } from "../../packages/v1/packages_pb.js";
8
9
 
9
10
  /**
10
11
  * @generated from enum viam.app.build.v1.JobStatus
@@ -155,6 +156,106 @@ export declare class GetLogsRequest extends Message<GetLogsRequest> {
155
156
  static equals(a: GetLogsRequest | PlainMessage<GetLogsRequest> | undefined, b: GetLogsRequest | PlainMessage<GetLogsRequest> | undefined): boolean;
156
157
  }
157
158
 
159
+ /**
160
+ * @generated from message viam.app.build.v1.ReloadBuildInfo
161
+ */
162
+ export declare class ReloadBuildInfo extends Message<ReloadBuildInfo> {
163
+ /**
164
+ * platform to build the reload module for
165
+ *
166
+ * @generated from field: string platform = 1;
167
+ */
168
+ platform: string;
169
+
170
+ /**
171
+ * optional working directory. defaults to repo root
172
+ *
173
+ * @generated from field: optional string workdir = 2;
174
+ */
175
+ workdir?: string;
176
+
177
+ /**
178
+ * org ID for the module
179
+ *
180
+ * @generated from field: string module_id = 3;
181
+ */
182
+ moduleId: string;
183
+
184
+ constructor(data?: PartialMessage<ReloadBuildInfo>);
185
+
186
+ static readonly runtime: typeof proto3;
187
+ static readonly typeName = "viam.app.build.v1.ReloadBuildInfo";
188
+ static readonly fields: FieldList;
189
+
190
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReloadBuildInfo;
191
+
192
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReloadBuildInfo;
193
+
194
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReloadBuildInfo;
195
+
196
+ static equals(a: ReloadBuildInfo | PlainMessage<ReloadBuildInfo> | undefined, b: ReloadBuildInfo | PlainMessage<ReloadBuildInfo> | undefined): boolean;
197
+ }
198
+
199
+ /**
200
+ * @generated from message viam.app.build.v1.StartReloadBuildRequest
201
+ */
202
+ export declare class StartReloadBuildRequest extends Message<StartReloadBuildRequest> {
203
+ /**
204
+ * @generated from oneof viam.app.build.v1.StartReloadBuildRequest.cloud_build
205
+ */
206
+ cloudBuild: {
207
+ /**
208
+ * @generated from field: viam.app.packages.v1.CreatePackageRequest package = 1;
209
+ */
210
+ value: CreatePackageRequest;
211
+ case: "package";
212
+ } | {
213
+ /**
214
+ * @generated from field: viam.app.build.v1.ReloadBuildInfo build_info = 2;
215
+ */
216
+ value: ReloadBuildInfo;
217
+ case: "buildInfo";
218
+ } | { case: undefined; value?: undefined };
219
+
220
+ constructor(data?: PartialMessage<StartReloadBuildRequest>);
221
+
222
+ static readonly runtime: typeof proto3;
223
+ static readonly typeName = "viam.app.build.v1.StartReloadBuildRequest";
224
+ static readonly fields: FieldList;
225
+
226
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartReloadBuildRequest;
227
+
228
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartReloadBuildRequest;
229
+
230
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartReloadBuildRequest;
231
+
232
+ static equals(a: StartReloadBuildRequest | PlainMessage<StartReloadBuildRequest> | undefined, b: StartReloadBuildRequest | PlainMessage<StartReloadBuildRequest> | undefined): boolean;
233
+ }
234
+
235
+ /**
236
+ * @generated from message viam.app.build.v1.StartReloadBuildResponse
237
+ */
238
+ export declare class StartReloadBuildResponse extends Message<StartReloadBuildResponse> {
239
+ /**
240
+ * @generated from field: string build_id = 1;
241
+ */
242
+ buildId: string;
243
+
244
+ constructor(data?: PartialMessage<StartReloadBuildResponse>);
245
+
246
+ static readonly runtime: typeof proto3;
247
+ static readonly typeName = "viam.app.build.v1.StartReloadBuildResponse";
248
+ static readonly fields: FieldList;
249
+
250
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartReloadBuildResponse;
251
+
252
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartReloadBuildResponse;
253
+
254
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartReloadBuildResponse;
255
+
256
+ static equals(a: StartReloadBuildResponse | PlainMessage<StartReloadBuildResponse> | undefined, b: StartReloadBuildResponse | PlainMessage<StartReloadBuildResponse> | undefined): boolean;
257
+ }
258
+
158
259
  /**
159
260
  * GetLogsResponse is a streaming endpoint that may have multiple messages that belong
160
261
  * to the same build_step if there are too many bytes to fit into a single gRPC
@@ -913,6 +913,11 @@ export declare class CreateInvoiceAndChargeImmediatelyRequest extends Message<Cr
913
913
  */
914
914
  orgIdForBranding?: string;
915
915
 
916
+ /**
917
+ * @generated from field: bool disable_email = 5;
918
+ */
919
+ disableEmail: boolean;
920
+
916
921
  constructor(data?: PartialMessage<CreateInvoiceAndChargeImmediatelyRequest>);
917
922
 
918
923
  static readonly runtime: typeof proto3;
@@ -52,16 +52,6 @@ export declare class ResourceName extends Message<ResourceName> {
52
52
  */
53
53
  name: string;
54
54
 
55
- /**
56
- * @generated from field: repeated string remote_path = 5;
57
- */
58
- remotePath: string[];
59
-
60
- /**
61
- * @generated from field: string local_name = 6;
62
- */
63
- localName: string;
64
-
65
55
  constructor(data?: PartialMessage<ResourceName>);
66
56
 
67
57
  static readonly runtime: typeof proto3;
@@ -1059,6 +1049,119 @@ export declare class LogEntry extends Message<LogEntry> {
1059
1049
  static equals(a: LogEntry | PlainMessage<LogEntry> | undefined, b: LogEntry | PlainMessage<LogEntry> | undefined): boolean;
1060
1050
  }
1061
1051
 
1052
+ /**
1053
+ * Information about an audio stream or device.
1054
+ *
1055
+ * @generated from message viam.common.v1.AudioInfo
1056
+ */
1057
+ export declare class AudioInfo extends Message<AudioInfo> {
1058
+ /**
1059
+ * Audio codec used for the stream or device (e.g., "pcm16", "pcm32float", "mp3")
1060
+ *
1061
+ * @generated from field: string codec = 1;
1062
+ */
1063
+ codec: string;
1064
+
1065
+ /**
1066
+ * Sample rate of the audio in Hz
1067
+ *
1068
+ * @generated from field: int32 sample_rate_hz = 2;
1069
+ */
1070
+ sampleRateHz: number;
1071
+
1072
+ /**
1073
+ * Number of audio channels in the recording or playback
1074
+ *
1075
+ * @generated from field: int32 num_channels = 3;
1076
+ */
1077
+ numChannels: number;
1078
+
1079
+ constructor(data?: PartialMessage<AudioInfo>);
1080
+
1081
+ static readonly runtime: typeof proto3;
1082
+ static readonly typeName = "viam.common.v1.AudioInfo";
1083
+ static readonly fields: FieldList;
1084
+
1085
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioInfo;
1086
+
1087
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioInfo;
1088
+
1089
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioInfo;
1090
+
1091
+ static equals(a: AudioInfo | PlainMessage<AudioInfo> | undefined, b: AudioInfo | PlainMessage<AudioInfo> | undefined): boolean;
1092
+ }
1093
+
1094
+ /**
1095
+ * Shared properties for AudioIn and AudioOut components.
1096
+ *
1097
+ * @generated from message viam.common.v1.GetPropertiesRequest
1098
+ */
1099
+ export declare class GetPropertiesRequest extends Message<GetPropertiesRequest> {
1100
+ /**
1101
+ * @generated from field: string name = 1;
1102
+ */
1103
+ name: string;
1104
+
1105
+ /**
1106
+ * @generated from field: google.protobuf.Struct extra = 99;
1107
+ */
1108
+ extra?: Struct;
1109
+
1110
+ constructor(data?: PartialMessage<GetPropertiesRequest>);
1111
+
1112
+ static readonly runtime: typeof proto3;
1113
+ static readonly typeName = "viam.common.v1.GetPropertiesRequest";
1114
+ static readonly fields: FieldList;
1115
+
1116
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPropertiesRequest;
1117
+
1118
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPropertiesRequest;
1119
+
1120
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPropertiesRequest;
1121
+
1122
+ static equals(a: GetPropertiesRequest | PlainMessage<GetPropertiesRequest> | undefined, b: GetPropertiesRequest | PlainMessage<GetPropertiesRequest> | undefined): boolean;
1123
+ }
1124
+
1125
+ /**
1126
+ * @generated from message viam.common.v1.GetPropertiesResponse
1127
+ */
1128
+ export declare class GetPropertiesResponse extends Message<GetPropertiesResponse> {
1129
+ /**
1130
+ * List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
1131
+ *
1132
+ * @generated from field: repeated string supported_codecs = 1;
1133
+ */
1134
+ supportedCodecs: string[];
1135
+
1136
+ /**
1137
+ * current sample rate in Hz
1138
+ *
1139
+ * @generated from field: int32 sample_rate_hz = 2;
1140
+ */
1141
+ sampleRateHz: number;
1142
+
1143
+ /**
1144
+ * Maximum number of audio channels supported (e.g., 1 for mono, 2 for stereo)
1145
+ *
1146
+ * @generated from field: int32 num_channels = 3;
1147
+ */
1148
+ numChannels: number;
1149
+
1150
+ constructor(data?: PartialMessage<GetPropertiesResponse>);
1151
+
1152
+ static readonly runtime: typeof proto3;
1153
+ static readonly typeName = "viam.common.v1.GetPropertiesResponse";
1154
+ static readonly fields: FieldList;
1155
+
1156
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPropertiesResponse;
1157
+
1158
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPropertiesResponse;
1159
+
1160
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPropertiesResponse;
1161
+
1162
+ static equals(a: GetPropertiesResponse | PlainMessage<GetPropertiesResponse> | undefined, b: GetPropertiesResponse | PlainMessage<GetPropertiesResponse> | undefined): boolean;
1163
+ }
1164
+
1062
1165
  /**
1063
1166
  * safety_heartbeat_monitored is used on methods to signify that if a session is in use
1064
1167
  * and the session was the last to call this method, the resource associated with the
@@ -0,0 +1,64 @@
1
+ // @generated by protoc-gen-connect-es v1.5.0
2
+ // @generated from file component/audioin/v1/audioin.proto (package viam.component.audioin.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { GetAudioRequest, GetAudioResponse } from "./audioin_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+ import { DoCommandRequest, DoCommandResponse, GetGeometriesRequest, GetGeometriesResponse, GetPropertiesRequest, GetPropertiesResponse } from "../../../common/v1/common_pb.js";
9
+
10
+ /**
11
+ * An AudioInService services all audio inputss associated with a robot
12
+ *
13
+ * @generated from service viam.component.audioin.v1.AudioInService
14
+ */
15
+ export declare const AudioInService: {
16
+ readonly typeName: "viam.component.audioin.v1.AudioInService",
17
+ readonly methods: {
18
+ /**
19
+ * GetAudio streams audio from the given audioin
20
+ *
21
+ * @generated from rpc viam.component.audioin.v1.AudioInService.GetAudio
22
+ */
23
+ readonly getAudio: {
24
+ readonly name: "GetAudio",
25
+ readonly I: typeof GetAudioRequest,
26
+ readonly O: typeof GetAudioResponse,
27
+ readonly kind: MethodKind.ServerStreaming,
28
+ },
29
+ /**
30
+ * GetProperties returns the properties of the audioin
31
+ *
32
+ * @generated from rpc viam.component.audioin.v1.AudioInService.GetProperties
33
+ */
34
+ readonly getProperties: {
35
+ readonly name: "GetProperties",
36
+ readonly I: typeof GetPropertiesRequest,
37
+ readonly O: typeof GetPropertiesResponse,
38
+ readonly kind: MethodKind.Unary,
39
+ },
40
+ /**
41
+ * DoCommand sends/receives arbitrary commands
42
+ *
43
+ * @generated from rpc viam.component.audioin.v1.AudioInService.DoCommand
44
+ */
45
+ readonly doCommand: {
46
+ readonly name: "DoCommand",
47
+ readonly I: typeof DoCommandRequest,
48
+ readonly O: typeof DoCommandResponse,
49
+ readonly kind: MethodKind.Unary,
50
+ },
51
+ /**
52
+ * GetGeometries returns the geometries of the component in their current configuration
53
+ *
54
+ * @generated from rpc viam.component.audioin.v1.AudioInService.GetGeometries
55
+ */
56
+ readonly getGeometries: {
57
+ readonly name: "GetGeometries",
58
+ readonly I: typeof GetGeometriesRequest,
59
+ readonly O: typeof GetGeometriesResponse,
60
+ readonly kind: MethodKind.Unary,
61
+ },
62
+ }
63
+ };
64
+
@@ -0,0 +1,146 @@
1
+ // @generated by protoc-gen-es v1.10.0
2
+ // @generated from file component/audioin/v1/audioin.proto (package viam.component.audioin.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf";
7
+ import { Message, proto3 } from "@bufbuild/protobuf";
8
+ import type { AudioInfo } from "../../../common/v1/common_pb.js";
9
+
10
+ /**
11
+ * @generated from message viam.component.audioin.v1.GetAudioRequest
12
+ */
13
+ export declare class GetAudioRequest extends Message<GetAudioRequest> {
14
+ /**
15
+ * @generated from field: string name = 1;
16
+ */
17
+ name: string;
18
+
19
+ /**
20
+ * Desired duration of audio stream
21
+ * If not set or set to 0, the stream is infinite
22
+ *
23
+ * @generated from field: float duration_seconds = 2;
24
+ */
25
+ durationSeconds: number;
26
+
27
+ /**
28
+ * Requested audio codec for the response (e.g., "mp3", "pcm16")
29
+ *
30
+ * @generated from field: string codec = 3;
31
+ */
32
+ codec: string;
33
+
34
+ /**
35
+ * To match a request to it's responses
36
+ *
37
+ * @generated from field: string request_id = 4;
38
+ */
39
+ requestId: string;
40
+
41
+ /**
42
+ * Timestamp of the previous audio chunk, in nanoseconds, used for resuming and continuity.
43
+ *
44
+ * @generated from field: int64 previous_timestamp_nanoseconds = 5;
45
+ */
46
+ previousTimestampNanoseconds: bigint;
47
+
48
+ /**
49
+ * @generated from field: google.protobuf.Struct extra = 99;
50
+ */
51
+ extra?: Struct;
52
+
53
+ constructor(data?: PartialMessage<GetAudioRequest>);
54
+
55
+ static readonly runtime: typeof proto3;
56
+ static readonly typeName = "viam.component.audioin.v1.GetAudioRequest";
57
+ static readonly fields: FieldList;
58
+
59
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAudioRequest;
60
+
61
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAudioRequest;
62
+
63
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAudioRequest;
64
+
65
+ static equals(a: GetAudioRequest | PlainMessage<GetAudioRequest> | undefined, b: GetAudioRequest | PlainMessage<GetAudioRequest> | undefined): boolean;
66
+ }
67
+
68
+ /**
69
+ * @generated from message viam.component.audioin.v1.GetAudioResponse
70
+ */
71
+ export declare class GetAudioResponse extends Message<GetAudioResponse> {
72
+ /**
73
+ * @generated from field: viam.component.audioin.v1.AudioChunk audio = 1;
74
+ */
75
+ audio?: AudioChunk;
76
+
77
+ /**
78
+ * @generated from field: string request_id = 2;
79
+ */
80
+ requestId: string;
81
+
82
+ constructor(data?: PartialMessage<GetAudioResponse>);
83
+
84
+ static readonly runtime: typeof proto3;
85
+ static readonly typeName = "viam.component.audioin.v1.GetAudioResponse";
86
+ static readonly fields: FieldList;
87
+
88
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAudioResponse;
89
+
90
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAudioResponse;
91
+
92
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAudioResponse;
93
+
94
+ static equals(a: GetAudioResponse | PlainMessage<GetAudioResponse> | undefined, b: GetAudioResponse | PlainMessage<GetAudioResponse> | undefined): boolean;
95
+ }
96
+
97
+ /**
98
+ * @generated from message viam.component.audioin.v1.AudioChunk
99
+ */
100
+ export declare class AudioChunk extends Message<AudioChunk> {
101
+ /**
102
+ * Audio data for this chunk, encoded according to the requested codec.
103
+ *
104
+ * @generated from field: bytes audio_data = 1;
105
+ */
106
+ audioData: Uint8Array;
107
+
108
+ /**
109
+ * Info about the audio stream for this chunk
110
+ *
111
+ * @generated from field: viam.common.v1.AudioInfo audio_info = 2;
112
+ */
113
+ audioInfo?: AudioInfo;
114
+
115
+ /**
116
+ * @generated from field: int64 start_timestamp_nanoseconds = 3;
117
+ */
118
+ startTimestampNanoseconds: bigint;
119
+
120
+ /**
121
+ * @generated from field: int64 end_timestamp_nanoseconds = 4;
122
+ */
123
+ endTimestampNanoseconds: bigint;
124
+
125
+ /**
126
+ * Sequential chunk number
127
+ *
128
+ * @generated from field: int32 sequence = 5;
129
+ */
130
+ sequence: number;
131
+
132
+ constructor(data?: PartialMessage<AudioChunk>);
133
+
134
+ static readonly runtime: typeof proto3;
135
+ static readonly typeName = "viam.component.audioin.v1.AudioChunk";
136
+ static readonly fields: FieldList;
137
+
138
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioChunk;
139
+
140
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioChunk;
141
+
142
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioChunk;
143
+
144
+ static equals(a: AudioChunk | PlainMessage<AudioChunk> | undefined, b: AudioChunk | PlainMessage<AudioChunk> | undefined): boolean;
145
+ }
146
+