Commit e13824e 1 parent 8aaa664 commit e13824e Copy full SHA for e13824e
File tree 1 file changed +9
-4
lines changed
includes/Classifai/Providers/AWS
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -285,9 +285,11 @@ public function connect_to_service( array $args = array() ): array {
285
285
* This filter is useful for E2E tests.
286
286
*
287
287
* @since 3.1.0
288
+ * @hook classifai_aws_polly_pre_connect_to_service
288
289
*
289
- * @param false|mixed $response A return value of connect to service. Default false.
290
- * @param array $synthesize_data HTTP request arguments.
290
+ * @param {bool} $pre The value of pre connect to service. Default false. non-false value will short-circuit the describe voices request.
291
+ *
292
+ * @return {bool|mixed} The filtered value of connect to service.
291
293
*/
292
294
$ pre = apply_filters ( 'classifai_ ' . self ::ID . '_pre_connect_to_service ' , false );
293
295
@@ -435,9 +437,12 @@ public function synthesize_speech( int $post_id ) {
435
437
* This filter is useful for E2E tests.
436
438
*
437
439
* @since 3.1.0
440
+ * @hook classifai_aws_polly_pre_synthesize_speech
441
+ *
442
+ * @param {bool} $pre A value of pre synthesize speech. Default false.
443
+ * @param {array} $synthesize_data HTTP request arguments.
438
444
*
439
- * @param false|mixed $response A return value of synthesize speech. Default false.
440
- * @param array $synthesize_data HTTP request arguments.
445
+ * @return {bool|mixed} The filtered value of pre synthesize speech.
441
446
*/
442
447
$ pre = apply_filters ( 'classifai_ ' . self ::ID . '_pre_synthesize_speech ' , false , $ synthesize_data );
443
448
You can’t perform that action at this time.
0 commit comments