Skip to content

Commit e13824e

Browse files
committed
Update hook docs.
1 parent 8aaa664 commit e13824e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

includes/Classifai/Providers/AWS/AmazonPolly.php

+9-4
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,11 @@ public function connect_to_service( array $args = array() ): array {
285285
* This filter is useful for E2E tests.
286286
*
287287
* @since 3.1.0
288+
* @hook classifai_aws_polly_pre_connect_to_service
288289
*
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.
291293
*/
292294
$pre = apply_filters( 'classifai_' . self::ID . '_pre_connect_to_service', false );
293295

@@ -435,9 +437,12 @@ public function synthesize_speech( int $post_id ) {
435437
* This filter is useful for E2E tests.
436438
*
437439
* @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.
438444
*
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.
441446
*/
442447
$pre = apply_filters( 'classifai_' . self::ID . '_pre_synthesize_speech', false, $synthesize_data );
443448

0 commit comments

Comments
 (0)