apply_filters( 'classifai_aws_polly_pre_synthesize_speech', $pre, $synthesize_data ) → {bool|mixed}
Filters the return value of the synthesize speech function.
Returning a non-false value from the filter will short-circuit the synthesize speech request and return early with that value. This filter is useful for E2E tests.
Parameters:
Name | Type | Description |
---|---|---|
$pre |
bool | A value of pre synthesize speech. Default false. |
$synthesize_data |
array | HTTP request arguments. |
- Since:
- 3.1.0
- Source:
Returns:
The filtered value of pre synthesize speech.
- Type
- bool | mixed