A shortened and custom variation of wp.a11y.speak that is lighter on the dom.

Parameters:
NameTypeDescription
messagestring

The message to announce.

ariaLivestring

The aria-live type attribute. Assertive or polite.

Since
  • 1.0.0
Returns:
Type: 
void
Example
import { speak } from "@gravityforms/utils";

function Example() {
    speak( i18n.example, 'polite' );
}

Requires