All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.web.webspeech.SpeechSynthesisVoice Maven / Gradle / Ivy

package js.web.webspeech;

import js.lang.Any;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;

/**
 * This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI.
 */
public interface SpeechSynthesisVoice extends Any {
    @JSBody(script = "return SpeechSynthesisVoice.prototype")
    static SpeechSynthesisVoice prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(script = "return new SpeechSynthesisVoice()")
    static SpeechSynthesisVoice create() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSProperty
    boolean isDefault();

    @JSProperty
    String getLang();

    @JSProperty
    boolean isLocalService();

    @JSProperty
    String getName();

    @JSProperty
    String getVoiceURI();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy