Skip to main content

Filter: daymark_speech_audio

Supplies a post's audio instead of asking the AI provider.

Return an array {data: string (audio bytes), mime: string} to use it, false to treat the recording as failed, or null (the default) to ask the configured AI provider.

Parameters​

NameTypeDescription
$audioarray|false|nullThe audio, or null.
$textstringThe text to read aloud.
$post\WP_PostThe post.

Since​

  • 0.21.0

Source​

Defined in includes/class-speech.php at line 219