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 {
133133 $ this ->l ->t ('The ID of the audio response returned by the remote service ' ),
134134 EShapeType::Text
135135 ),
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+ ),
136141 ];
137142 }
138143
@@ -241,6 +246,9 @@ private function oneStep(
241246 if (isset ($ message ['audio ' ]['id ' ])) {
242247 $ result ['audio_id ' ] = $ message ['audio ' ]['id ' ];
243248 }
249+ if (isset ($ message ['audio ' ]['expires_at ' ])) {
250+ $ result ['audio_expires_at ' ] = $ message ['audio ' ]['expires_at ' ];
251+ }
244252 }
245253 $ result ['output ' ] = $ output ;
246254 $ result ['output_transcript ' ] = $ textResponse ;
You can’t perform that action at this time.
0 commit comments