Module java.desktop
Package javax.accessibility

# Interface AccessibleAnnouncer

All Known Implementing Classes:
  `JAccessibleAnnouncer`

public interface AccessibleAnnouncer
This interface provides the ability to speak a given string using screen readers.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `ANNOUNCE_WITH_INTERRUPTING_CURRENT_OUTPUT`
  messages interrupt the current speech, but only when the focus is on the window of the calling application
  `static final int`
  `ANNOUNCE_WITHOUT_INTERRUPTING_CURRENT_OUTPUT`
  messages do not interrupt the current speech, they are spoken after the screen reader has spoken the current phrase

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `announce(Accessible a, String str, int priority)`
  This method makes an announcement with the specified priority from an accessible to which the announcing relates

- ## Field Details

  - ### ANNOUNCE_WITHOUT_INTERRUPTING_CURRENT_OUTPUT

    static final int ANNOUNCE_WITHOUT_INTERRUPTING_CURRENT_OUTPUT
    messages do not interrupt the current speech, they are spoken after the screen reader has spoken the current phrase
    See Also:
      - Constant Field Values

  - ### ANNOUNCE_WITH_INTERRUPTING_CURRENT_OUTPUT

    static final int ANNOUNCE_WITH_INTERRUPTING_CURRENT_OUTPUT
    messages interrupt the current speech, but only when the focus is on the window of the calling application
    See Also:
      - Constant Field Values

- ## Method Details

  - ### announce

    void announce(Accessible a, String str, int priority)
    This method makes an announcement with the specified priority from an accessible to which the announcing relates
    Parameters:
      `a` - an accessible to which the announcing relates
      `str` - string for announcing
      `priority` - priority for announcing