Search in sources :

Example 1 with SpeechSynthesis

use of com.gargoylesoftware.htmlunit.javascript.host.speech.SpeechSynthesis in project htmlunit by HtmlUnit.

the class HTMLCollectionFrames method getSpeechSynthesis.

/**
 * Returns the {@code speechSynthesis} property.
 * @return the {@code speechSynthesis} property
 */
@JsxGetter({ CHROME, EDGE })
public SpeechSynthesis getSpeechSynthesis() {
    final SpeechSynthesis speechSynthesis = new SpeechSynthesis();
    speechSynthesis.setParentScope(this);
    speechSynthesis.setPrototype(getPrototype(speechSynthesis.getClass()));
    return speechSynthesis;
}
Also used : SpeechSynthesis(com.gargoylesoftware.htmlunit.javascript.host.speech.SpeechSynthesis) JsxGetter(com.gargoylesoftware.htmlunit.javascript.configuration.JsxGetter)

Aggregations

JsxGetter (com.gargoylesoftware.htmlunit.javascript.configuration.JsxGetter)1 SpeechSynthesis (com.gargoylesoftware.htmlunit.javascript.host.speech.SpeechSynthesis)1