File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,11 @@ public function getOptionalOutputShape(): array {
133
133
$ this ->l ->t ('The ID of the audio response returned by the remote service ' ),
134
134
EShapeType::Text
135
135
),
136
+ 'audio_expires_at ' => new ShapeDescriptor (
137
+ $ this ->l ->t ('Remote audio expiration date ' ),
138
+ $ this ->l ->t ('The remote audio response stays available in the service until this date ' ),
139
+ EShapeType::Number
140
+ ),
136
141
];
137
142
}
138
143
@@ -241,6 +246,9 @@ private function oneStep(
241
246
if (isset ($ message ['audio ' ]['id ' ])) {
242
247
$ result ['audio_id ' ] = $ message ['audio ' ]['id ' ];
243
248
}
249
+ if (isset ($ message ['audio ' ]['expires_at ' ])) {
250
+ $ result ['audio_expires_at ' ] = $ message ['audio ' ]['expires_at ' ];
251
+ }
244
252
}
245
253
$ result ['output ' ] = $ output ;
246
254
$ result ['output_transcript ' ] = $ textResponse ;
You can’t perform that action at this time.
0 commit comments