webapi: github.com/gowebapi/webapi/media/speech Index | Examples | Files

package speech

import "github.com/gowebapi/webapi/media/speech"

Package speech is speech recognition and synthesis, like text-to-speech output and to use speech recognition as an input for forms, continuous dictation and control.

Index

Examples

Package Files

doc.go speech.go

type SpeechGrammar Uses

type SpeechGrammar struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: SpeechGrammar

func NewSpeechGrammar Uses

func NewSpeechGrammar() (_result *SpeechGrammar)

func SpeechGrammarFromJS Uses

func SpeechGrammarFromJS(value js.Wrapper) *SpeechGrammar

SpeechGrammarFromJS is casting a js.Wrapper into SpeechGrammar.

func (*SpeechGrammar) JSValue Uses

func (_this *SpeechGrammar) JSValue() js.Value

func (*SpeechGrammar) SetSrc Uses

func (_this *SpeechGrammar) SetSrc(value string)

SetSrc setting attribute 'src' with type string (idl: DOMString).

func (*SpeechGrammar) SetWeight Uses

func (_this *SpeechGrammar) SetWeight(value float32)

SetWeight setting attribute 'weight' with type float32 (idl: float).

func (*SpeechGrammar) Src Uses

func (_this *SpeechGrammar) Src() string

Src returning attribute 'src' with type string (idl: DOMString).

func (*SpeechGrammar) Weight Uses

func (_this *SpeechGrammar) Weight() float32

Weight returning attribute 'weight' with type float32 (idl: float).

type SpeechGrammarList Uses

type SpeechGrammarList struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: SpeechGrammarList

func NewSpeechGrammarList Uses

func NewSpeechGrammarList() (_result *SpeechGrammarList)

func SpeechGrammarListFromJS Uses

func SpeechGrammarListFromJS(value js.Wrapper) *SpeechGrammarList

SpeechGrammarListFromJS is casting a js.Wrapper into SpeechGrammarList.

func (*SpeechGrammarList) AddFromString Uses

func (_this *SpeechGrammarList) AddFromString(string string, weight *float32)

func (*SpeechGrammarList) AddFromURI Uses

func (_this *SpeechGrammarList) AddFromURI(src string, weight *float32)

func (*SpeechGrammarList) Index Uses

func (_this *SpeechGrammarList) Index(index uint) (_result *SpeechGrammar)

func (*SpeechGrammarList) Item Uses

func (_this *SpeechGrammarList) Item(index uint) (_result *SpeechGrammar)

func (*SpeechGrammarList) JSValue Uses

func (_this *SpeechGrammarList) JSValue() js.Value

func (*SpeechGrammarList) Length Uses

func (_this *SpeechGrammarList) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

type SpeechRecognition Uses

type SpeechRecognition struct {
    domcore.EventTarget
}

class: SpeechRecognition

func NewSpeechRecognition Uses

func NewSpeechRecognition() (_result *SpeechRecognition)

func SpeechRecognitionFromJS Uses

func SpeechRecognitionFromJS(value js.Wrapper) *SpeechRecognition

SpeechRecognitionFromJS is casting a js.Wrapper into SpeechRecognition.

func (*SpeechRecognition) Abort Uses

func (_this *SpeechRecognition) Abort()

func (*SpeechRecognition) AddEventAudioEnd Uses

func (_this *SpeechRecognition) AddEventAudioEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

AddAudioEnd is adding doing AddEventListener for 'AudioEnd' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) AddEventAudioStart Uses

func (_this *SpeechRecognition) AddEventAudioStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

AddAudioStart is adding doing AddEventListener for 'AudioStart' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) AddEventEnd Uses

func (_this *SpeechRecognition) AddEventEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

AddEnd is adding doing AddEventListener for 'End' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) AddEventError Uses

func (_this *SpeechRecognition) AddEventError(listener func(event *SpeechRecognitionErrorEvent, currentTarget *SpeechRecognition)) js.Func

AddError is adding doing AddEventListener for 'Error' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) AddEventNoMatch Uses

func (_this *SpeechRecognition) AddEventNoMatch(listener func(event *SpeechRecognitionEvent, currentTarget *SpeechRecognition)) js.Func

AddNoMatch is adding doing AddEventListener for 'NoMatch' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) AddEventResult Uses

func (_this *SpeechRecognition) AddEventResult(listener func(event *SpeechRecognitionEvent, currentTarget *SpeechRecognition)) js.Func

AddResult is adding doing AddEventListener for 'Result' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) AddEventSoundEnd Uses

func (_this *SpeechRecognition) AddEventSoundEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

AddSoundEnd is adding doing AddEventListener for 'SoundEnd' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) AddEventSoundStart Uses

func (_this *SpeechRecognition) AddEventSoundStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

AddSoundStart is adding doing AddEventListener for 'SoundStart' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) AddEventSpeechEnd Uses

func (_this *SpeechRecognition) AddEventSpeechEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

AddSpeechEnd is adding doing AddEventListener for 'SpeechEnd' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) AddEventSpeechStart Uses

func (_this *SpeechRecognition) AddEventSpeechStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

AddSpeechStart is adding doing AddEventListener for 'SpeechStart' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) AddEventStart Uses

func (_this *SpeechRecognition) AddEventStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

AddStart is adding doing AddEventListener for 'Start' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) Continuous Uses

func (_this *SpeechRecognition) Continuous() bool

Continuous returning attribute 'continuous' with type bool (idl: boolean).

func (*SpeechRecognition) Grammars Uses

func (_this *SpeechRecognition) Grammars() *SpeechGrammarList

Grammars returning attribute 'grammars' with type SpeechGrammarList (idl: SpeechGrammarList).

func (*SpeechRecognition) InterimResults Uses

func (_this *SpeechRecognition) InterimResults() bool

InterimResults returning attribute 'interimResults' with type bool (idl: boolean).

func (*SpeechRecognition) Lang Uses

func (_this *SpeechRecognition) Lang() string

Lang returning attribute 'lang' with type string (idl: DOMString).

func (*SpeechRecognition) MaxAlternatives Uses

func (_this *SpeechRecognition) MaxAlternatives() uint

MaxAlternatives returning attribute 'maxAlternatives' with type uint (idl: unsigned long).

func (*SpeechRecognition) OnAudioEnd Uses

func (_this *SpeechRecognition) OnAudioEnd() domcore.EventHandlerFunc

OnAudioEnd returning attribute 'onaudioend' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechRecognition) OnAudioStart Uses

func (_this *SpeechRecognition) OnAudioStart() domcore.EventHandlerFunc

OnAudioStart returning attribute 'onaudiostart' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechRecognition) OnEnd Uses

func (_this *SpeechRecognition) OnEnd() domcore.EventHandlerFunc

OnEnd returning attribute 'onend' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechRecognition) OnError Uses

func (_this *SpeechRecognition) OnError() domcore.EventHandlerFunc

OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechRecognition) OnNoMatch Uses

func (_this *SpeechRecognition) OnNoMatch() domcore.EventHandlerFunc

OnNoMatch returning attribute 'onnomatch' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechRecognition) OnResult Uses

func (_this *SpeechRecognition) OnResult() domcore.EventHandlerFunc

OnResult returning attribute 'onresult' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechRecognition) OnSoundEnd Uses

func (_this *SpeechRecognition) OnSoundEnd() domcore.EventHandlerFunc

OnSoundEnd returning attribute 'onsoundend' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechRecognition) OnSoundStart Uses

func (_this *SpeechRecognition) OnSoundStart() domcore.EventHandlerFunc

OnSoundStart returning attribute 'onsoundstart' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechRecognition) OnSpeechEnd Uses

func (_this *SpeechRecognition) OnSpeechEnd() domcore.EventHandlerFunc

OnSpeechEnd returning attribute 'onspeechend' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechRecognition) OnSpeechStart Uses

func (_this *SpeechRecognition) OnSpeechStart() domcore.EventHandlerFunc

OnSpeechStart returning attribute 'onspeechstart' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechRecognition) OnStart Uses

func (_this *SpeechRecognition) OnStart() domcore.EventHandlerFunc

OnStart returning attribute 'onstart' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechRecognition) ServiceURI Uses

func (_this *SpeechRecognition) ServiceURI() string

ServiceURI returning attribute 'serviceURI' with type string (idl: DOMString).

func (*SpeechRecognition) SetContinuous Uses

func (_this *SpeechRecognition) SetContinuous(value bool)

SetContinuous setting attribute 'continuous' with type bool (idl: boolean).

func (*SpeechRecognition) SetGrammars Uses

func (_this *SpeechRecognition) SetGrammars(value *SpeechGrammarList)

SetGrammars setting attribute 'grammars' with type SpeechGrammarList (idl: SpeechGrammarList).

func (*SpeechRecognition) SetInterimResults Uses

func (_this *SpeechRecognition) SetInterimResults(value bool)

SetInterimResults setting attribute 'interimResults' with type bool (idl: boolean).

func (*SpeechRecognition) SetLang Uses

func (_this *SpeechRecognition) SetLang(value string)

SetLang setting attribute 'lang' with type string (idl: DOMString).

func (*SpeechRecognition) SetMaxAlternatives Uses

func (_this *SpeechRecognition) SetMaxAlternatives(value uint)

SetMaxAlternatives setting attribute 'maxAlternatives' with type uint (idl: unsigned long).

func (*SpeechRecognition) SetOnAudioEnd Uses

func (_this *SpeechRecognition) SetOnAudioEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

SetOnAudioEnd is assigning a function to 'onaudioend'. This This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) SetOnAudioStart Uses

func (_this *SpeechRecognition) SetOnAudioStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

SetOnAudioStart is assigning a function to 'onaudiostart'. This This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) SetOnEnd Uses

func (_this *SpeechRecognition) SetOnEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

SetOnEnd is assigning a function to 'onend'. This This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) SetOnError Uses

func (_this *SpeechRecognition) SetOnError(listener func(event *SpeechRecognitionErrorEvent, currentTarget *SpeechRecognition)) js.Func

SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) SetOnNoMatch Uses

func (_this *SpeechRecognition) SetOnNoMatch(listener func(event *SpeechRecognitionEvent, currentTarget *SpeechRecognition)) js.Func

SetOnNoMatch is assigning a function to 'onnomatch'. This This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) SetOnResult Uses

func (_this *SpeechRecognition) SetOnResult(listener func(event *SpeechRecognitionEvent, currentTarget *SpeechRecognition)) js.Func

SetOnResult is assigning a function to 'onresult'. This This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) SetOnSoundEnd Uses

func (_this *SpeechRecognition) SetOnSoundEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

SetOnSoundEnd is assigning a function to 'onsoundend'. This This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) SetOnSoundStart Uses

func (_this *SpeechRecognition) SetOnSoundStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

SetOnSoundStart is assigning a function to 'onsoundstart'. This This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) SetOnSpeechEnd Uses

func (_this *SpeechRecognition) SetOnSpeechEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

SetOnSpeechEnd is assigning a function to 'onspeechend'. This This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) SetOnSpeechStart Uses

func (_this *SpeechRecognition) SetOnSpeechStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

SetOnSpeechStart is assigning a function to 'onspeechstart'. This This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) SetOnStart Uses

func (_this *SpeechRecognition) SetOnStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func

SetOnStart is assigning a function to 'onstart'. This This method is returning allocated javascript function that need to be released.

func (*SpeechRecognition) SetServiceURI Uses

func (_this *SpeechRecognition) SetServiceURI(value string)

SetServiceURI setting attribute 'serviceURI' with type string (idl: DOMString).

func (*SpeechRecognition) Start Uses

func (_this *SpeechRecognition) Start()

func (*SpeechRecognition) Stop Uses

func (_this *SpeechRecognition) Stop()

type SpeechRecognitionAlternative Uses

type SpeechRecognitionAlternative struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: SpeechRecognitionAlternative

func SpeechRecognitionAlternativeFromJS Uses

func SpeechRecognitionAlternativeFromJS(value js.Wrapper) *SpeechRecognitionAlternative

SpeechRecognitionAlternativeFromJS is casting a js.Wrapper into SpeechRecognitionAlternative.

func (*SpeechRecognitionAlternative) Confidence Uses

func (_this *SpeechRecognitionAlternative) Confidence() float32

Confidence returning attribute 'confidence' with type float32 (idl: float).

func (*SpeechRecognitionAlternative) JSValue Uses

func (_this *SpeechRecognitionAlternative) JSValue() js.Value

func (*SpeechRecognitionAlternative) Transcript Uses

func (_this *SpeechRecognitionAlternative) Transcript() string

Transcript returning attribute 'transcript' with type string (idl: DOMString).

type SpeechRecognitionErrorCode Uses

type SpeechRecognitionErrorCode int

enum: SpeechRecognitionErrorCode

const (
    NoSpeechSpeechRecognitionErrorCode SpeechRecognitionErrorCode = iota
    AbortedSpeechRecognitionErrorCode
    AudioCaptureSpeechRecognitionErrorCode
    NetworkSpeechRecognitionErrorCode
    NotAllowedSpeechRecognitionErrorCode
    ServiceNotAllowedSpeechRecognitionErrorCode
    BadGrammarSpeechRecognitionErrorCode
    LanguageNotSupportedSpeechRecognitionErrorCode
)

func SpeechRecognitionErrorCodeFromJS Uses

func SpeechRecognitionErrorCodeFromJS(value js.Value) SpeechRecognitionErrorCode

SpeechRecognitionErrorCodeFromJS is converting a javascript value into a SpeechRecognitionErrorCode enum value.

func (*SpeechRecognitionErrorCode) JSValue Uses

func (this *SpeechRecognitionErrorCode) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (SpeechRecognitionErrorCode) Value Uses

func (this SpeechRecognitionErrorCode) Value() string

Value is converting this into javascript defined string value

type SpeechRecognitionErrorEvent Uses

type SpeechRecognitionErrorEvent struct {
    domcore.Event
}

class: SpeechRecognitionErrorEvent

func NewSpeechRecognitionErrorEvent Uses

func NewSpeechRecognitionErrorEvent(_type string, eventInitDict *SpeechRecognitionErrorEventInit) (_result *SpeechRecognitionErrorEvent)

func SpeechRecognitionErrorEventFromJS Uses

func SpeechRecognitionErrorEventFromJS(value js.Wrapper) *SpeechRecognitionErrorEvent

SpeechRecognitionErrorEventFromJS is casting a js.Wrapper into SpeechRecognitionErrorEvent.

func (*SpeechRecognitionErrorEvent) Error Uses

func (_this *SpeechRecognitionErrorEvent) Error() SpeechRecognitionErrorCode

Error returning attribute 'error' with type SpeechRecognitionErrorCode (idl: SpeechRecognitionErrorCode).

func (*SpeechRecognitionErrorEvent) Message Uses

func (_this *SpeechRecognitionErrorEvent) Message() string

Message returning attribute 'message' with type string (idl: DOMString).

type SpeechRecognitionErrorEventInit Uses

type SpeechRecognitionErrorEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    Error      SpeechRecognitionErrorCode
    Message    string
}

dictionary: SpeechRecognitionErrorEventInit

func SpeechRecognitionErrorEventInitFromJS Uses

func SpeechRecognitionErrorEventInitFromJS(value js.Wrapper) *SpeechRecognitionErrorEventInit

SpeechRecognitionErrorEventInitFromJS is allocating a new SpeechRecognitionErrorEventInit object and copy all values from input javascript object

func (*SpeechRecognitionErrorEventInit) JSValue Uses

func (_this *SpeechRecognitionErrorEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type SpeechRecognitionEvent Uses

type SpeechRecognitionEvent struct {
    domcore.Event
}

class: SpeechRecognitionEvent

func NewSpeechRecognitionEvent Uses

func NewSpeechRecognitionEvent(_type string, eventInitDict *SpeechRecognitionEventInit) (_result *SpeechRecognitionEvent)

func SpeechRecognitionEventFromJS Uses

func SpeechRecognitionEventFromJS(value js.Wrapper) *SpeechRecognitionEvent

SpeechRecognitionEventFromJS is casting a js.Wrapper into SpeechRecognitionEvent.

func (*SpeechRecognitionEvent) Emma Uses

func (_this *SpeechRecognitionEvent) Emma() js.Value

Emma returning attribute 'emma' with type js.Value (idl: Document).

Code:

var event *speech.SpeechRecognitionEvent

// cast to correct type
value := webapi.DocumentFromJS(event.Emma())

// do something with value
_ = value

func (*SpeechRecognitionEvent) Interpretation Uses

func (_this *SpeechRecognitionEvent) Interpretation() js.Value

Interpretation returning attribute 'interpretation' with type Any (idl: any).

func (*SpeechRecognitionEvent) ResultIndex Uses

func (_this *SpeechRecognitionEvent) ResultIndex() uint

ResultIndex returning attribute 'resultIndex' with type uint (idl: unsigned long).

func (*SpeechRecognitionEvent) Results Uses

func (_this *SpeechRecognitionEvent) Results() *SpeechRecognitionResultList

Results returning attribute 'results' with type SpeechRecognitionResultList (idl: SpeechRecognitionResultList).

type SpeechRecognitionEventInit Uses

type SpeechRecognitionEventInit struct {
    Bubbles        bool
    Cancelable     bool
    Composed       bool
    ResultIndex    uint
    Results        *SpeechRecognitionResultList
    Interpretation js.Value
    Emma           js.Value
}

dictionary: SpeechRecognitionEventInit

func SpeechRecognitionEventInitFromJS Uses

func SpeechRecognitionEventInitFromJS(value js.Wrapper) *SpeechRecognitionEventInit

SpeechRecognitionEventInitFromJS is allocating a new SpeechRecognitionEventInit object and copy all values from input javascript object

func (*SpeechRecognitionEventInit) JSValue Uses

func (_this *SpeechRecognitionEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type SpeechRecognitionResult Uses

type SpeechRecognitionResult struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: SpeechRecognitionResult

func SpeechRecognitionResultFromJS Uses

func SpeechRecognitionResultFromJS(value js.Wrapper) *SpeechRecognitionResult

SpeechRecognitionResultFromJS is casting a js.Wrapper into SpeechRecognitionResult.

func (*SpeechRecognitionResult) Index Uses

func (_this *SpeechRecognitionResult) Index(index uint) (_result *SpeechRecognitionAlternative)

func (*SpeechRecognitionResult) IsFinal Uses

func (_this *SpeechRecognitionResult) IsFinal() bool

IsFinal returning attribute 'isFinal' with type bool (idl: boolean).

func (*SpeechRecognitionResult) Item Uses

func (_this *SpeechRecognitionResult) Item(index uint) (_result *SpeechRecognitionAlternative)

func (*SpeechRecognitionResult) JSValue Uses

func (_this *SpeechRecognitionResult) JSValue() js.Value

func (*SpeechRecognitionResult) Length Uses

func (_this *SpeechRecognitionResult) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

type SpeechRecognitionResultList Uses

type SpeechRecognitionResultList struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: SpeechRecognitionResultList

func SpeechRecognitionResultListFromJS Uses

func SpeechRecognitionResultListFromJS(value js.Wrapper) *SpeechRecognitionResultList

SpeechRecognitionResultListFromJS is casting a js.Wrapper into SpeechRecognitionResultList.

func (*SpeechRecognitionResultList) Index Uses

func (_this *SpeechRecognitionResultList) Index(index uint) (_result *SpeechRecognitionResult)

func (*SpeechRecognitionResultList) Item Uses

func (_this *SpeechRecognitionResultList) Item(index uint) (_result *SpeechRecognitionResult)

func (*SpeechRecognitionResultList) JSValue Uses

func (_this *SpeechRecognitionResultList) JSValue() js.Value

func (*SpeechRecognitionResultList) Length Uses

func (_this *SpeechRecognitionResultList) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

type SpeechSynthesis Uses

type SpeechSynthesis struct {
    domcore.EventTarget
}

class: SpeechSynthesis

func SpeechSynthesisFromJS Uses

func SpeechSynthesisFromJS(value js.Wrapper) *SpeechSynthesis

SpeechSynthesisFromJS is casting a js.Wrapper into SpeechSynthesis.

func (*SpeechSynthesis) AddEventVoicesChanged Uses

func (_this *SpeechSynthesis) AddEventVoicesChanged(listener func(event *domcore.Event, currentTarget *SpeechSynthesis)) js.Func

AddVoicesChanged is adding doing AddEventListener for 'VoicesChanged' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesis) Cancel Uses

func (_this *SpeechSynthesis) Cancel()

func (*SpeechSynthesis) GetVoices Uses

func (_this *SpeechSynthesis) GetVoices() (_result []*SpeechSynthesisVoice)

func (*SpeechSynthesis) OnVoicesChanged Uses

func (_this *SpeechSynthesis) OnVoicesChanged() domcore.EventHandlerFunc

OnVoicesChanged returning attribute 'onvoiceschanged' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechSynthesis) Pause Uses

func (_this *SpeechSynthesis) Pause()

func (*SpeechSynthesis) Paused Uses

func (_this *SpeechSynthesis) Paused() bool

Paused returning attribute 'paused' with type bool (idl: boolean).

func (*SpeechSynthesis) Pending Uses

func (_this *SpeechSynthesis) Pending() bool

Pending returning attribute 'pending' with type bool (idl: boolean).

func (*SpeechSynthesis) Resume Uses

func (_this *SpeechSynthesis) Resume()

func (*SpeechSynthesis) SetOnVoicesChanged Uses

func (_this *SpeechSynthesis) SetOnVoicesChanged(listener func(event *domcore.Event, currentTarget *SpeechSynthesis)) js.Func

SetOnVoicesChanged is assigning a function to 'onvoiceschanged'. This This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesis) Speak Uses

func (_this *SpeechSynthesis) Speak(utterance *SpeechSynthesisUtterance)

func (*SpeechSynthesis) Speaking Uses

func (_this *SpeechSynthesis) Speaking() bool

Speaking returning attribute 'speaking' with type bool (idl: boolean).

type SpeechSynthesisErrorCode Uses

type SpeechSynthesisErrorCode int

enum: SpeechSynthesisErrorCode

const (
    CanceledSpeechSynthesisErrorCode SpeechSynthesisErrorCode = iota
    InterruptedSpeechSynthesisErrorCode
    AudioBusySpeechSynthesisErrorCode
    AudioHardwareSpeechSynthesisErrorCode
    NetworkSpeechSynthesisErrorCode
    SynthesisUnavailableSpeechSynthesisErrorCode
    SynthesisFailedSpeechSynthesisErrorCode
    LanguageUnavailableSpeechSynthesisErrorCode
    VoiceUnavailableSpeechSynthesisErrorCode
    TextTooLongSpeechSynthesisErrorCode
    InvalidArgumentSpeechSynthesisErrorCode
    NotAllowedSpeechSynthesisErrorCode
)

func SpeechSynthesisErrorCodeFromJS Uses

func SpeechSynthesisErrorCodeFromJS(value js.Value) SpeechSynthesisErrorCode

SpeechSynthesisErrorCodeFromJS is converting a javascript value into a SpeechSynthesisErrorCode enum value.

func (*SpeechSynthesisErrorCode) JSValue Uses

func (this *SpeechSynthesisErrorCode) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (SpeechSynthesisErrorCode) Value Uses

func (this SpeechSynthesisErrorCode) Value() string

Value is converting this into javascript defined string value

type SpeechSynthesisErrorEvent Uses

type SpeechSynthesisErrorEvent struct {
    SpeechSynthesisEvent
}

class: SpeechSynthesisErrorEvent

func NewSpeechSynthesisErrorEvent Uses

func NewSpeechSynthesisErrorEvent(_type string, eventInitDict *SpeechSynthesisErrorEventInit) (_result *SpeechSynthesisErrorEvent)

func SpeechSynthesisErrorEventFromJS Uses

func SpeechSynthesisErrorEventFromJS(value js.Wrapper) *SpeechSynthesisErrorEvent

SpeechSynthesisErrorEventFromJS is casting a js.Wrapper into SpeechSynthesisErrorEvent.

func (*SpeechSynthesisErrorEvent) Error Uses

func (_this *SpeechSynthesisErrorEvent) Error() SpeechSynthesisErrorCode

Error returning attribute 'error' with type SpeechSynthesisErrorCode (idl: SpeechSynthesisErrorCode).

type SpeechSynthesisErrorEventInit Uses

type SpeechSynthesisErrorEventInit struct {
    Bubbles     bool
    Cancelable  bool
    Composed    bool
    Utterance   *SpeechSynthesisUtterance
    CharIndex   uint
    ElapsedTime float32
    Name        string
    Error       SpeechSynthesisErrorCode
}

dictionary: SpeechSynthesisErrorEventInit

func SpeechSynthesisErrorEventInitFromJS Uses

func SpeechSynthesisErrorEventInitFromJS(value js.Wrapper) *SpeechSynthesisErrorEventInit

SpeechSynthesisErrorEventInitFromJS is allocating a new SpeechSynthesisErrorEventInit object and copy all values from input javascript object

func (*SpeechSynthesisErrorEventInit) JSValue Uses

func (_this *SpeechSynthesisErrorEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type SpeechSynthesisEvent Uses

type SpeechSynthesisEvent struct {
    domcore.Event
}

class: SpeechSynthesisEvent

func NewSpeechSynthesisEvent Uses

func NewSpeechSynthesisEvent(_type string, eventInitDict *SpeechSynthesisEventInit) (_result *SpeechSynthesisEvent)

func SpeechSynthesisEventFromJS Uses

func SpeechSynthesisEventFromJS(value js.Wrapper) *SpeechSynthesisEvent

SpeechSynthesisEventFromJS is casting a js.Wrapper into SpeechSynthesisEvent.

func (*SpeechSynthesisEvent) CharIndex Uses

func (_this *SpeechSynthesisEvent) CharIndex() uint

CharIndex returning attribute 'charIndex' with type uint (idl: unsigned long).

func (*SpeechSynthesisEvent) ElapsedTime Uses

func (_this *SpeechSynthesisEvent) ElapsedTime() float32

ElapsedTime returning attribute 'elapsedTime' with type float32 (idl: float).

func (*SpeechSynthesisEvent) Name Uses

func (_this *SpeechSynthesisEvent) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

func (*SpeechSynthesisEvent) Utterance Uses

func (_this *SpeechSynthesisEvent) Utterance() *SpeechSynthesisUtterance

Utterance returning attribute 'utterance' with type SpeechSynthesisUtterance (idl: SpeechSynthesisUtterance).

type SpeechSynthesisEventInit Uses

type SpeechSynthesisEventInit struct {
    Bubbles     bool
    Cancelable  bool
    Composed    bool
    Utterance   *SpeechSynthesisUtterance
    CharIndex   uint
    ElapsedTime float32
    Name        string
}

dictionary: SpeechSynthesisEventInit

func SpeechSynthesisEventInitFromJS Uses

func SpeechSynthesisEventInitFromJS(value js.Wrapper) *SpeechSynthesisEventInit

SpeechSynthesisEventInitFromJS is allocating a new SpeechSynthesisEventInit object and copy all values from input javascript object

func (*SpeechSynthesisEventInit) JSValue Uses

func (_this *SpeechSynthesisEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type SpeechSynthesisUtterance Uses

type SpeechSynthesisUtterance struct {
    domcore.EventTarget
}

class: SpeechSynthesisUtterance

func NewSpeechSynthesisUtterance Uses

func NewSpeechSynthesisUtterance(text *string) (_result *SpeechSynthesisUtterance)

func SpeechSynthesisUtteranceFromJS Uses

func SpeechSynthesisUtteranceFromJS(value js.Wrapper) *SpeechSynthesisUtterance

SpeechSynthesisUtteranceFromJS is casting a js.Wrapper into SpeechSynthesisUtterance.

func (*SpeechSynthesisUtterance) AddEventBoundary Uses

func (_this *SpeechSynthesisUtterance) AddEventBoundary(listener func(event *SpeechSynthesisEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

AddBoundary is adding doing AddEventListener for 'Boundary' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) AddEventEnd Uses

func (_this *SpeechSynthesisUtterance) AddEventEnd(listener func(event *SpeechSynthesisEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

AddEnd is adding doing AddEventListener for 'End' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) AddEventError Uses

func (_this *SpeechSynthesisUtterance) AddEventError(listener func(event *SpeechSynthesisErrorEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

AddError is adding doing AddEventListener for 'Error' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) AddEventMark Uses

func (_this *SpeechSynthesisUtterance) AddEventMark(listener func(event *SpeechSynthesisEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

AddMark is adding doing AddEventListener for 'Mark' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) AddEventPause Uses

func (_this *SpeechSynthesisUtterance) AddEventPause(listener func(event *SpeechSynthesisEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

AddPause is adding doing AddEventListener for 'Pause' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) AddEventResume Uses

func (_this *SpeechSynthesisUtterance) AddEventResume(listener func(event *SpeechSynthesisEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

AddResume is adding doing AddEventListener for 'Resume' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) AddEventStart Uses

func (_this *SpeechSynthesisUtterance) AddEventStart(listener func(event *SpeechSynthesisEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

AddStart is adding doing AddEventListener for 'Start' on target. This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) Lang Uses

func (_this *SpeechSynthesisUtterance) Lang() string

Lang returning attribute 'lang' with type string (idl: DOMString).

func (*SpeechSynthesisUtterance) OnBoundary Uses

func (_this *SpeechSynthesisUtterance) OnBoundary() domcore.EventHandlerFunc

OnBoundary returning attribute 'onboundary' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechSynthesisUtterance) OnEnd Uses

func (_this *SpeechSynthesisUtterance) OnEnd() domcore.EventHandlerFunc

OnEnd returning attribute 'onend' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechSynthesisUtterance) OnError Uses

func (_this *SpeechSynthesisUtterance) OnError() domcore.EventHandlerFunc

OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechSynthesisUtterance) OnMark Uses

func (_this *SpeechSynthesisUtterance) OnMark() domcore.EventHandlerFunc

OnMark returning attribute 'onmark' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechSynthesisUtterance) OnPause Uses

func (_this *SpeechSynthesisUtterance) OnPause() domcore.EventHandlerFunc

OnPause returning attribute 'onpause' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechSynthesisUtterance) OnResume Uses

func (_this *SpeechSynthesisUtterance) OnResume() domcore.EventHandlerFunc

OnResume returning attribute 'onresume' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechSynthesisUtterance) OnStart Uses

func (_this *SpeechSynthesisUtterance) OnStart() domcore.EventHandlerFunc

OnStart returning attribute 'onstart' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SpeechSynthesisUtterance) Pitch Uses

func (_this *SpeechSynthesisUtterance) Pitch() float32

Pitch returning attribute 'pitch' with type float32 (idl: float).

func (*SpeechSynthesisUtterance) Rate Uses

func (_this *SpeechSynthesisUtterance) Rate() float32

Rate returning attribute 'rate' with type float32 (idl: float).

func (*SpeechSynthesisUtterance) SetLang Uses

func (_this *SpeechSynthesisUtterance) SetLang(value string)

SetLang setting attribute 'lang' with type string (idl: DOMString).

func (*SpeechSynthesisUtterance) SetOnBoundary Uses

func (_this *SpeechSynthesisUtterance) SetOnBoundary(listener func(event *SpeechSynthesisEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

SetOnBoundary is assigning a function to 'onboundary'. This This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) SetOnEnd Uses

func (_this *SpeechSynthesisUtterance) SetOnEnd(listener func(event *SpeechSynthesisEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

SetOnEnd is assigning a function to 'onend'. This This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) SetOnError Uses

func (_this *SpeechSynthesisUtterance) SetOnError(listener func(event *SpeechSynthesisErrorEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) SetOnMark Uses

func (_this *SpeechSynthesisUtterance) SetOnMark(listener func(event *SpeechSynthesisEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

SetOnMark is assigning a function to 'onmark'. This This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) SetOnPause Uses

func (_this *SpeechSynthesisUtterance) SetOnPause(listener func(event *SpeechSynthesisEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

SetOnPause is assigning a function to 'onpause'. This This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) SetOnResume Uses

func (_this *SpeechSynthesisUtterance) SetOnResume(listener func(event *SpeechSynthesisEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

SetOnResume is assigning a function to 'onresume'. This This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) SetOnStart Uses

func (_this *SpeechSynthesisUtterance) SetOnStart(listener func(event *SpeechSynthesisEvent, currentTarget *SpeechSynthesisUtterance)) js.Func

SetOnStart is assigning a function to 'onstart'. This This method is returning allocated javascript function that need to be released.

func (*SpeechSynthesisUtterance) SetPitch Uses

func (_this *SpeechSynthesisUtterance) SetPitch(value float32)

SetPitch setting attribute 'pitch' with type float32 (idl: float).

func (*SpeechSynthesisUtterance) SetRate Uses

func (_this *SpeechSynthesisUtterance) SetRate(value float32)

SetRate setting attribute 'rate' with type float32 (idl: float).

func (*SpeechSynthesisUtterance) SetText Uses

func (_this *SpeechSynthesisUtterance) SetText(value string)

SetText setting attribute 'text' with type string (idl: DOMString).

func (*SpeechSynthesisUtterance) SetVoice Uses

func (_this *SpeechSynthesisUtterance) SetVoice(value *SpeechSynthesisVoice)

SetVoice setting attribute 'voice' with type SpeechSynthesisVoice (idl: SpeechSynthesisVoice).

func (*SpeechSynthesisUtterance) SetVolume Uses

func (_this *SpeechSynthesisUtterance) SetVolume(value float32)

SetVolume setting attribute 'volume' with type float32 (idl: float).

func (*SpeechSynthesisUtterance) Text Uses

func (_this *SpeechSynthesisUtterance) Text() string

Text returning attribute 'text' with type string (idl: DOMString).

func (*SpeechSynthesisUtterance) Voice Uses

func (_this *SpeechSynthesisUtterance) Voice() *SpeechSynthesisVoice

Voice returning attribute 'voice' with type SpeechSynthesisVoice (idl: SpeechSynthesisVoice).

func (*SpeechSynthesisUtterance) Volume Uses

func (_this *SpeechSynthesisUtterance) Volume() float32

Volume returning attribute 'volume' with type float32 (idl: float).

type SpeechSynthesisVoice Uses

type SpeechSynthesisVoice struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: SpeechSynthesisVoice

func SpeechSynthesisVoiceFromJS Uses

func SpeechSynthesisVoiceFromJS(value js.Wrapper) *SpeechSynthesisVoice

SpeechSynthesisVoiceFromJS is casting a js.Wrapper into SpeechSynthesisVoice.

func (*SpeechSynthesisVoice) Default Uses

func (_this *SpeechSynthesisVoice) Default() bool

Default returning attribute 'default' with type bool (idl: boolean).

func (*SpeechSynthesisVoice) JSValue Uses

func (_this *SpeechSynthesisVoice) JSValue() js.Value

func (*SpeechSynthesisVoice) Lang Uses

func (_this *SpeechSynthesisVoice) Lang() string

Lang returning attribute 'lang' with type string (idl: DOMString).

func (*SpeechSynthesisVoice) LocalService Uses

func (_this *SpeechSynthesisVoice) LocalService() bool

LocalService returning attribute 'localService' with type bool (idl: boolean).

func (*SpeechSynthesisVoice) Name Uses

func (_this *SpeechSynthesisVoice) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

func (*SpeechSynthesisVoice) VoiceURI Uses

func (_this *SpeechSynthesisVoice) VoiceURI() string

VoiceURI returning attribute 'voiceURI' with type string (idl: DOMString).

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package speech imports 2 packages (graph) and is imported by 1 packages. Updated 2019-09-18. Refresh now. Tools for package owners.