Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
js.web.webspeech.SpeechSynthesisUtterance Maven / Gradle / Ivy
package js.web.webspeech;
import js.web.dom.AddEventListenerOptions;
import js.web.dom.EventListener;
import js.web.dom.EventListenerOptions;
import js.web.dom.EventTarget;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;
import javax.annotation.Nullable;
/**
* This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.)
*/
public interface SpeechSynthesisUtterance extends EventTarget {
@JSBody(script = "return SpeechSynthesisUtterance.prototype")
static SpeechSynthesisUtterance prototype() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(script = "return new SpeechSynthesisUtterance()")
static SpeechSynthesisUtterance create() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(params = "text", script = "return new SpeechSynthesisUtterance(text)")
static SpeechSynthesisUtterance create(String text) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSProperty
String getLang();
@JSProperty
void setLang(String lang);
@JSProperty
@Nullable
EventListener getOnboundary();
@JSProperty
void setOnboundary(EventListener onboundary);
default void addBoundaryEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("boundary", listener, options);
}
default void addBoundaryEventListener(EventListener listener, boolean options) {
addEventListener("boundary", listener, options);
}
default void addBoundaryEventListener(EventListener listener) {
addEventListener("boundary", listener);
}
default void removeBoundaryEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("boundary", listener, options);
}
default void removeBoundaryEventListener(EventListener listener, boolean options) {
removeEventListener("boundary", listener, options);
}
default void removeBoundaryEventListener(EventListener listener) {
removeEventListener("boundary", listener);
}
@JSProperty
@Nullable
EventListener getOnend();
@JSProperty
void setOnend(EventListener onend);
default void addEndEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("end", listener, options);
}
default void addEndEventListener(EventListener listener, boolean options) {
addEventListener("end", listener, options);
}
default void addEndEventListener(EventListener listener) {
addEventListener("end", listener);
}
default void removeEndEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("end", listener, options);
}
default void removeEndEventListener(EventListener listener, boolean options) {
removeEventListener("end", listener, options);
}
default void removeEndEventListener(EventListener listener) {
removeEventListener("end", listener);
}
@JSProperty
@Nullable
EventListener getOnerror();
@JSProperty
void setOnerror(EventListener onerror);
default void addErrorEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("error", listener, options);
}
default void addErrorEventListener(EventListener listener, boolean options) {
addEventListener("error", listener, options);
}
default void addErrorEventListener(EventListener listener) {
addEventListener("error", listener);
}
default void removeErrorEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("error", listener, options);
}
default void removeErrorEventListener(EventListener listener, boolean options) {
removeEventListener("error", listener, options);
}
default void removeErrorEventListener(EventListener listener) {
removeEventListener("error", listener);
}
@JSProperty
@Nullable
EventListener getOnmark();
@JSProperty
void setOnmark(EventListener onmark);
default void addMarkEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("mark", listener, options);
}
default void addMarkEventListener(EventListener listener, boolean options) {
addEventListener("mark", listener, options);
}
default void addMarkEventListener(EventListener listener) {
addEventListener("mark", listener);
}
default void removeMarkEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("mark", listener, options);
}
default void removeMarkEventListener(EventListener listener, boolean options) {
removeEventListener("mark", listener, options);
}
default void removeMarkEventListener(EventListener listener) {
removeEventListener("mark", listener);
}
@JSProperty
@Nullable
EventListener getOnpause();
@JSProperty
void setOnpause(EventListener onpause);
default void addPauseEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("pause", listener, options);
}
default void addPauseEventListener(EventListener listener, boolean options) {
addEventListener("pause", listener, options);
}
default void addPauseEventListener(EventListener listener) {
addEventListener("pause", listener);
}
default void removePauseEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("pause", listener, options);
}
default void removePauseEventListener(EventListener listener, boolean options) {
removeEventListener("pause", listener, options);
}
default void removePauseEventListener(EventListener listener) {
removeEventListener("pause", listener);
}
@JSProperty
@Nullable
EventListener getOnresume();
@JSProperty
void setOnresume(EventListener onresume);
default void addResumeEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("resume", listener, options);
}
default void addResumeEventListener(EventListener listener, boolean options) {
addEventListener("resume", listener, options);
}
default void addResumeEventListener(EventListener listener) {
addEventListener("resume", listener);
}
default void removeResumeEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("resume", listener, options);
}
default void removeResumeEventListener(EventListener listener, boolean options) {
removeEventListener("resume", listener, options);
}
default void removeResumeEventListener(EventListener listener) {
removeEventListener("resume", listener);
}
@JSProperty
@Nullable
EventListener getOnstart();
@JSProperty
void setOnstart(EventListener onstart);
default void addStartEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("start", listener, options);
}
default void addStartEventListener(EventListener listener, boolean options) {
addEventListener("start", listener, options);
}
default void addStartEventListener(EventListener listener) {
addEventListener("start", listener);
}
default void removeStartEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("start", listener, options);
}
default void removeStartEventListener(EventListener listener, boolean options) {
removeEventListener("start", listener, options);
}
default void removeStartEventListener(EventListener listener) {
removeEventListener("start", listener);
}
@JSProperty
double getPitch();
@JSProperty
void setPitch(double pitch);
@JSProperty
double getRate();
@JSProperty
void setRate(double rate);
@JSProperty
String getText();
@JSProperty
void setText(String text);
@JSProperty
SpeechSynthesisVoice getVoice();
@JSProperty
void setVoice(SpeechSynthesisVoice voice);
@JSProperty
double getVolume();
@JSProperty
void setVolume(double volume);
}