Text To Speech

⌘K
  1. Home
  2. Docs
  3. Text To Speech
  4. Filters & Actions
  5. Apply Backend Filters and Actions ( Pro Version )

Apply Backend Filters and Actions ( Pro Version )

add_filter('tts_clean_gtts_folder', '__return_true');

add_filter('tts_pro_batch_charlen', 'tts_pro_batch_charlen_callback');
function tts_pro_batch_charlen_callback($charlen_arr) {
	$charlen_arr['initial_batch_charlen'] = 90;
	$charlen_arr['latter_batch_char_length'] = 120;
	
	return $charlen_arr;
	
}

add_filter('tts_pro_exclude_between_delimiters', 'tts_pro_exclude_between_delimiters_callback');
function tts_pro_exclude_between_delimiters_callback($arr) {
	
	return array(
			'carly'      => '{{...}}',
			'parenthesis' => '((...))',
			'third' => '[[...]]',
		);
}

How can we help?