Skip to content

Commit e57a828

Browse files
Annhiluccopybara-github
authored andcommitted
feat: Introduce TYPE_L16 audio content and optional fields.
PiperOrigin-RevId: 893095424
1 parent a5b2018 commit e57a828

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

src/interactions/resources/interactions.ts

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@ export type Annotation = URLCitation | FileCitation | PlaceCitation;
171171
export interface AudioContent {
172172
type: 'audio';
173173

174+
/**
175+
* The number of audio channels.
176+
*/
177+
channels?: number;
178+
174179
/**
175180
* The audio content.
176181
*/
@@ -187,7 +192,13 @@ export interface AudioContent {
187192
| 'audio/ogg'
188193
| 'audio/flac'
189194
| 'audio/mpeg'
190-
| 'audio/m4a';
195+
| 'audio/m4a'
196+
| 'audio/l16';
197+
198+
/**
199+
* The sample rate of the audio.
200+
*/
201+
rate?: number;
191202

192203
/**
193204
* The URI of the audio.
@@ -355,6 +366,11 @@ export namespace ContentDelta {
355366
export interface Audio {
356367
type: 'audio';
357368

369+
/**
370+
* The number of audio channels.
371+
*/
372+
channels?: number;
373+
358374
data?: string;
359375

360376
mime_type?:
@@ -365,7 +381,13 @@ export namespace ContentDelta {
365381
| 'audio/ogg'
366382
| 'audio/flac'
367383
| 'audio/mpeg'
368-
| 'audio/m4a';
384+
| 'audio/m4a'
385+
| 'audio/l16';
386+
387+
/**
388+
* The sample rate of the audio.
389+
*/
390+
rate?: number;
369391

370392
uri?: string;
371393
}

0 commit comments

Comments
 (0)