Documentation
¶
Overview ¶
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 ¶
- type SpeechGrammar
- type SpeechGrammarList
- func (_this *SpeechGrammarList) AddFromString(string string, weight *float32)
- func (_this *SpeechGrammarList) AddFromURI(src string, weight *float32)
- func (_this *SpeechGrammarList) Index(index uint) (_result *SpeechGrammar)
- func (_this *SpeechGrammarList) Item(index uint) (_result *SpeechGrammar)
- func (_this *SpeechGrammarList) JSValue() js.Value
- func (_this *SpeechGrammarList) Length() uint
- type SpeechRecognition
- func (_this *SpeechRecognition) Abort()
- func (_this *SpeechRecognition) AddEventAudioEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) AddEventAudioStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) AddEventEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) AddEventError(...) js.Func
- func (_this *SpeechRecognition) AddEventNoMatch(listener func(event *SpeechRecognitionEvent, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) AddEventResult(listener func(event *SpeechRecognitionEvent, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) AddEventSoundEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) AddEventSoundStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) AddEventSpeechEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) AddEventSpeechStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) AddEventStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) Continuous() bool
- func (_this *SpeechRecognition) Grammars() *SpeechGrammarList
- func (_this *SpeechRecognition) InterimResults() bool
- func (_this *SpeechRecognition) Lang() string
- func (_this *SpeechRecognition) MaxAlternatives() uint
- func (_this *SpeechRecognition) OnAudioEnd() domcore.EventHandlerFunc
- func (_this *SpeechRecognition) OnAudioStart() domcore.EventHandlerFunc
- func (_this *SpeechRecognition) OnEnd() domcore.EventHandlerFunc
- func (_this *SpeechRecognition) OnError() domcore.EventHandlerFunc
- func (_this *SpeechRecognition) OnNoMatch() domcore.EventHandlerFunc
- func (_this *SpeechRecognition) OnResult() domcore.EventHandlerFunc
- func (_this *SpeechRecognition) OnSoundEnd() domcore.EventHandlerFunc
- func (_this *SpeechRecognition) OnSoundStart() domcore.EventHandlerFunc
- func (_this *SpeechRecognition) OnSpeechEnd() domcore.EventHandlerFunc
- func (_this *SpeechRecognition) OnSpeechStart() domcore.EventHandlerFunc
- func (_this *SpeechRecognition) OnStart() domcore.EventHandlerFunc
- func (_this *SpeechRecognition) ServiceURI() string
- func (_this *SpeechRecognition) SetContinuous(value bool)
- func (_this *SpeechRecognition) SetGrammars(value *SpeechGrammarList)
- func (_this *SpeechRecognition) SetInterimResults(value bool)
- func (_this *SpeechRecognition) SetLang(value string)
- func (_this *SpeechRecognition) SetMaxAlternatives(value uint)
- func (_this *SpeechRecognition) SetOnAudioEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) SetOnAudioStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) SetOnEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) SetOnError(...) js.Func
- func (_this *SpeechRecognition) SetOnNoMatch(listener func(event *SpeechRecognitionEvent, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) SetOnResult(listener func(event *SpeechRecognitionEvent, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) SetOnSoundEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) SetOnSoundStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) SetOnSpeechEnd(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) SetOnSpeechStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) SetOnStart(listener func(event *domcore.Event, currentTarget *SpeechRecognition)) js.Func
- func (_this *SpeechRecognition) SetServiceURI(value string)
- func (_this *SpeechRecognition) Start()
- func (_this *SpeechRecognition) Stop()
- type SpeechRecognitionAlternative
- type SpeechRecognitionErrorCode
- type SpeechRecognitionErrorEvent
- func NewSpeechRecognitionErrorEvent(_type string, eventInitDict *SpeechRecognitionErrorEventInit) (_result *SpeechRecognitionErrorEvent)
- func SpeechRecognitionErrorEventFromJS(value js.Value) *SpeechRecognitionErrorEvent
- func SpeechRecognitionErrorEventFromWrapper(input core.Wrapper) *SpeechRecognitionErrorEvent
- type SpeechRecognitionErrorEventInit
- type SpeechRecognitionEvent
- type SpeechRecognitionEventInit
- type SpeechRecognitionResult
- func (_this *SpeechRecognitionResult) Index(index uint) (_result *SpeechRecognitionAlternative)
- func (_this *SpeechRecognitionResult) IsFinal() bool
- func (_this *SpeechRecognitionResult) Item(index uint) (_result *SpeechRecognitionAlternative)
- func (_this *SpeechRecognitionResult) JSValue() js.Value
- func (_this *SpeechRecognitionResult) Length() uint
- type SpeechRecognitionResultList
- func (_this *SpeechRecognitionResultList) Index(index uint) (_result *SpeechRecognitionResult)
- func (_this *SpeechRecognitionResultList) Item(index uint) (_result *SpeechRecognitionResult)
- func (_this *SpeechRecognitionResultList) JSValue() js.Value
- func (_this *SpeechRecognitionResultList) Length() uint
- type SpeechSynthesis
- func (_this *SpeechSynthesis) AddEventVoicesChanged(listener func(event *domcore.Event, currentTarget *SpeechSynthesis)) js.Func
- func (_this *SpeechSynthesis) Cancel()
- func (_this *SpeechSynthesis) GetVoices() (_result []*SpeechSynthesisVoice)
- func (_this *SpeechSynthesis) OnVoicesChanged() domcore.EventHandlerFunc
- func (_this *SpeechSynthesis) Pause()
- func (_this *SpeechSynthesis) Paused() bool
- func (_this *SpeechSynthesis) Pending() bool
- func (_this *SpeechSynthesis) Resume()
- func (_this *SpeechSynthesis) SetOnVoicesChanged(listener func(event *domcore.Event, currentTarget *SpeechSynthesis)) js.Func
- func (_this *SpeechSynthesis) Speak(utterance *SpeechSynthesisUtterance)
- func (_this *SpeechSynthesis) Speaking() bool
- type SpeechSynthesisErrorCode
- type SpeechSynthesisErrorEvent
- type SpeechSynthesisErrorEventInit
- type SpeechSynthesisEvent
- type SpeechSynthesisEventInit
- type SpeechSynthesisUtterance
- func (_this *SpeechSynthesisUtterance) AddEventBoundary(...) js.Func
- func (_this *SpeechSynthesisUtterance) AddEventEnd(...) js.Func
- func (_this *SpeechSynthesisUtterance) AddEventError(...) js.Func
- func (_this *SpeechSynthesisUtterance) AddEventMark(...) js.Func
- func (_this *SpeechSynthesisUtterance) AddEventPause(...) js.Func
- func (_this *SpeechSynthesisUtterance) AddEventResume(...) js.Func
- func (_this *SpeechSynthesisUtterance) AddEventStart(...) js.Func
- func (_this *SpeechSynthesisUtterance) Lang() string
- func (_this *SpeechSynthesisUtterance) OnBoundary() domcore.EventHandlerFunc
- func (_this *SpeechSynthesisUtterance) OnEnd() domcore.EventHandlerFunc
- func (_this *SpeechSynthesisUtterance) OnError() domcore.EventHandlerFunc
- func (_this *SpeechSynthesisUtterance) OnMark() domcore.EventHandlerFunc
- func (_this *SpeechSynthesisUtterance) OnPause() domcore.EventHandlerFunc
- func (_this *SpeechSynthesisUtterance) OnResume() domcore.EventHandlerFunc
- func (_this *SpeechSynthesisUtterance) OnStart() domcore.EventHandlerFunc
- func (_this *SpeechSynthesisUtterance) Pitch() float32
- func (_this *SpeechSynthesisUtterance) Rate() float32
- func (_this *SpeechSynthesisUtterance) SetLang(value string)
- func (_this *SpeechSynthesisUtterance) SetOnBoundary(...) js.Func
- func (_this *SpeechSynthesisUtterance) SetOnEnd(...) js.Func
- func (_this *SpeechSynthesisUtterance) SetOnError(...) js.Func
- func (_this *SpeechSynthesisUtterance) SetOnMark(...) js.Func
- func (_this *SpeechSynthesisUtterance) SetOnPause(...) js.Func
- func (_this *SpeechSynthesisUtterance) SetOnResume(...) js.Func
- func (_this *SpeechSynthesisUtterance) SetOnStart(...) js.Func
- func (_this *SpeechSynthesisUtterance) SetPitch(value float32)
- func (_this *SpeechSynthesisUtterance) SetRate(value float32)
- func (_this *SpeechSynthesisUtterance) SetText(value string)
- func (_this *SpeechSynthesisUtterance) SetVoice(value *SpeechSynthesisVoice)
- func (_this *SpeechSynthesisUtterance) SetVolume(value float32)
- func (_this *SpeechSynthesisUtterance) Text() string
- func (_this *SpeechSynthesisUtterance) Voice() *SpeechSynthesisVoice
- func (_this *SpeechSynthesisUtterance) Volume() float32
- type SpeechSynthesisVoice
- func (_this *SpeechSynthesisVoice) Default() bool
- func (_this *SpeechSynthesisVoice) JSValue() js.Value
- func (_this *SpeechSynthesisVoice) Lang() string
- func (_this *SpeechSynthesisVoice) LocalService() bool
- func (_this *SpeechSynthesisVoice) Name() string
- func (_this *SpeechSynthesisVoice) VoiceURI() string
- type Union
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpeechGrammar ¶
class: SpeechGrammar
func NewSpeechGrammar ¶
func NewSpeechGrammar() (_result *SpeechGrammar)
func SpeechGrammarFromJS ¶
func SpeechGrammarFromJS(value js.Value) *SpeechGrammar
SpeechGrammarFromJS is casting a js.Value into SpeechGrammar.
func SpeechGrammarFromWrapper ¶
func SpeechGrammarFromWrapper(input core.Wrapper) *SpeechGrammar
SpeechGrammarFromJS is casting from something that holds a js.Value into SpeechGrammar.
func (*SpeechGrammar) JSValue ¶
func (_this *SpeechGrammar) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*SpeechGrammar) SetSrc ¶
func (_this *SpeechGrammar) SetSrc(value string)
SetSrc setting attribute 'src' with type string (idl: DOMString).
func (*SpeechGrammar) SetWeight ¶
func (_this *SpeechGrammar) SetWeight(value float32)
SetWeight setting attribute 'weight' with type float32 (idl: float).
func (*SpeechGrammar) Src ¶
func (_this *SpeechGrammar) Src() string
Src returning attribute 'src' with type string (idl: DOMString).
func (*SpeechGrammar) Weight ¶
func (_this *SpeechGrammar) Weight() float32
Weight returning attribute 'weight' with type float32 (idl: float).
type SpeechGrammarList ¶
type SpeechGrammarList struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: SpeechGrammarList
func NewSpeechGrammarList ¶
func NewSpeechGrammarList() (_result *SpeechGrammarList)
func SpeechGrammarListFromJS ¶
func SpeechGrammarListFromJS(value js.Value) *SpeechGrammarList
SpeechGrammarListFromJS is casting a js.Value into SpeechGrammarList.
func SpeechGrammarListFromWrapper ¶
func SpeechGrammarListFromWrapper(input core.Wrapper) *SpeechGrammarList
SpeechGrammarListFromJS is casting from something that holds a js.Value into SpeechGrammarList.
func (*SpeechGrammarList) AddFromString ¶
func (_this *SpeechGrammarList) AddFromString(string string, weight *float32)
func (*SpeechGrammarList) AddFromURI ¶
func (_this *SpeechGrammarList) AddFromURI(src string, weight *float32)
func (*SpeechGrammarList) Index ¶
func (_this *SpeechGrammarList) Index(index uint) (_result *SpeechGrammar)
func (*SpeechGrammarList) Item ¶
func (_this *SpeechGrammarList) Item(index uint) (_result *SpeechGrammar)
func (*SpeechGrammarList) JSValue ¶
func (_this *SpeechGrammarList) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*SpeechGrammarList) Length ¶
func (_this *SpeechGrammarList) Length() uint
Length returning attribute 'length' with type uint (idl: unsigned long).
type SpeechRecognition ¶
type SpeechRecognition struct {
domcore.EventTarget
}
class: SpeechRecognition
func NewSpeechRecognition ¶
func NewSpeechRecognition() (_result *SpeechRecognition)
func SpeechRecognitionFromJS ¶
func SpeechRecognitionFromJS(value js.Value) *SpeechRecognition
SpeechRecognitionFromJS is casting a js.Value into SpeechRecognition.
func SpeechRecognitionFromWrapper ¶
func SpeechRecognitionFromWrapper(input core.Wrapper) *SpeechRecognition
SpeechRecognitionFromJS is casting from something that holds a js.Value into SpeechRecognition.
func (*SpeechRecognition) Abort ¶
func (_this *SpeechRecognition) Abort()
func (*SpeechRecognition) AddEventAudioEnd ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (_this *SpeechRecognition) Continuous() bool
Continuous returning attribute 'continuous' with type bool (idl: boolean).
func (*SpeechRecognition) Grammars ¶
func (_this *SpeechRecognition) Grammars() *SpeechGrammarList
Grammars returning attribute 'grammars' with type SpeechGrammarList (idl: SpeechGrammarList).
func (*SpeechRecognition) InterimResults ¶
func (_this *SpeechRecognition) InterimResults() bool
InterimResults returning attribute 'interimResults' with type bool (idl: boolean).
func (*SpeechRecognition) Lang ¶
func (_this *SpeechRecognition) Lang() string
Lang returning attribute 'lang' with type string (idl: DOMString).
func (*SpeechRecognition) MaxAlternatives ¶
func (_this *SpeechRecognition) MaxAlternatives() uint
MaxAlternatives returning attribute 'maxAlternatives' with type uint (idl: unsigned long).
func (*SpeechRecognition) OnAudioEnd ¶
func (_this *SpeechRecognition) OnAudioEnd() domcore.EventHandlerFunc
OnAudioEnd returning attribute 'onaudioend' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechRecognition) OnAudioStart ¶
func (_this *SpeechRecognition) OnAudioStart() domcore.EventHandlerFunc
OnAudioStart returning attribute 'onaudiostart' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechRecognition) OnEnd ¶
func (_this *SpeechRecognition) OnEnd() domcore.EventHandlerFunc
OnEnd returning attribute 'onend' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechRecognition) OnError ¶
func (_this *SpeechRecognition) OnError() domcore.EventHandlerFunc
OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechRecognition) OnNoMatch ¶
func (_this *SpeechRecognition) OnNoMatch() domcore.EventHandlerFunc
OnNoMatch returning attribute 'onnomatch' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechRecognition) OnResult ¶
func (_this *SpeechRecognition) OnResult() domcore.EventHandlerFunc
OnResult returning attribute 'onresult' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechRecognition) OnSoundEnd ¶
func (_this *SpeechRecognition) OnSoundEnd() domcore.EventHandlerFunc
OnSoundEnd returning attribute 'onsoundend' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechRecognition) OnSoundStart ¶
func (_this *SpeechRecognition) OnSoundStart() domcore.EventHandlerFunc
OnSoundStart returning attribute 'onsoundstart' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechRecognition) OnSpeechEnd ¶
func (_this *SpeechRecognition) OnSpeechEnd() domcore.EventHandlerFunc
OnSpeechEnd returning attribute 'onspeechend' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechRecognition) OnSpeechStart ¶
func (_this *SpeechRecognition) OnSpeechStart() domcore.EventHandlerFunc
OnSpeechStart returning attribute 'onspeechstart' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechRecognition) OnStart ¶
func (_this *SpeechRecognition) OnStart() domcore.EventHandlerFunc
OnStart returning attribute 'onstart' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechRecognition) ServiceURI ¶
func (_this *SpeechRecognition) ServiceURI() string
ServiceURI returning attribute 'serviceURI' with type string (idl: DOMString).
func (*SpeechRecognition) SetContinuous ¶
func (_this *SpeechRecognition) SetContinuous(value bool)
SetContinuous setting attribute 'continuous' with type bool (idl: boolean).
func (*SpeechRecognition) SetGrammars ¶
func (_this *SpeechRecognition) SetGrammars(value *SpeechGrammarList)
SetGrammars setting attribute 'grammars' with type SpeechGrammarList (idl: SpeechGrammarList).
func (*SpeechRecognition) SetInterimResults ¶
func (_this *SpeechRecognition) SetInterimResults(value bool)
SetInterimResults setting attribute 'interimResults' with type bool (idl: boolean).
func (*SpeechRecognition) SetLang ¶
func (_this *SpeechRecognition) SetLang(value string)
SetLang setting attribute 'lang' with type string (idl: DOMString).
func (*SpeechRecognition) SetMaxAlternatives ¶
func (_this *SpeechRecognition) SetMaxAlternatives(value uint)
SetMaxAlternatives setting attribute 'maxAlternatives' with type uint (idl: unsigned long).
func (*SpeechRecognition) SetOnAudioEnd ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (_this *SpeechRecognition) SetServiceURI(value string)
SetServiceURI setting attribute 'serviceURI' with type string (idl: DOMString).
func (*SpeechRecognition) Start ¶
func (_this *SpeechRecognition) Start()
func (*SpeechRecognition) Stop ¶
func (_this *SpeechRecognition) Stop()
type SpeechRecognitionAlternative ¶
type SpeechRecognitionAlternative struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: SpeechRecognitionAlternative
func SpeechRecognitionAlternativeFromJS ¶
func SpeechRecognitionAlternativeFromJS(value js.Value) *SpeechRecognitionAlternative
SpeechRecognitionAlternativeFromJS is casting a js.Value into SpeechRecognitionAlternative.
func SpeechRecognitionAlternativeFromWrapper ¶
func SpeechRecognitionAlternativeFromWrapper(input core.Wrapper) *SpeechRecognitionAlternative
SpeechRecognitionAlternativeFromJS is casting from something that holds a js.Value into SpeechRecognitionAlternative.
func (*SpeechRecognitionAlternative) Confidence ¶
func (_this *SpeechRecognitionAlternative) Confidence() float32
Confidence returning attribute 'confidence' with type float32 (idl: float).
func (*SpeechRecognitionAlternative) JSValue ¶
func (_this *SpeechRecognitionAlternative) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*SpeechRecognitionAlternative) Transcript ¶
func (_this *SpeechRecognitionAlternative) Transcript() string
Transcript returning attribute 'transcript' with type string (idl: DOMString).
type SpeechRecognitionErrorCode ¶
type SpeechRecognitionErrorCode int
enum: SpeechRecognitionErrorCode
const ( NoSpeechSpeechRecognitionErrorCode SpeechRecognitionErrorCode = iota AbortedSpeechRecognitionErrorCode AudioCaptureSpeechRecognitionErrorCode NetworkSpeechRecognitionErrorCode NotAllowedSpeechRecognitionErrorCode ServiceNotAllowedSpeechRecognitionErrorCode BadGrammarSpeechRecognitionErrorCode LanguageNotSupportedSpeechRecognitionErrorCode )
func SpeechRecognitionErrorCodeFromJS ¶
func SpeechRecognitionErrorCodeFromJS(value js.Value) SpeechRecognitionErrorCode
SpeechRecognitionErrorCodeFromJS is converting a javascript value into a SpeechRecognitionErrorCode enum value.
func (*SpeechRecognitionErrorCode) JSValue ¶
func (this *SpeechRecognitionErrorCode) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (SpeechRecognitionErrorCode) Value ¶
func (this SpeechRecognitionErrorCode) Value() string
Value is converting this into javascript defined string value
type SpeechRecognitionErrorEvent ¶
class: SpeechRecognitionErrorEvent
func NewSpeechRecognitionErrorEvent ¶
func NewSpeechRecognitionErrorEvent(_type string, eventInitDict *SpeechRecognitionErrorEventInit) (_result *SpeechRecognitionErrorEvent)
func SpeechRecognitionErrorEventFromJS ¶
func SpeechRecognitionErrorEventFromJS(value js.Value) *SpeechRecognitionErrorEvent
SpeechRecognitionErrorEventFromJS is casting a js.Value into SpeechRecognitionErrorEvent.
func SpeechRecognitionErrorEventFromWrapper ¶
func SpeechRecognitionErrorEventFromWrapper(input core.Wrapper) *SpeechRecognitionErrorEvent
SpeechRecognitionErrorEventFromJS is casting from something that holds a js.Value into SpeechRecognitionErrorEvent.
func (*SpeechRecognitionErrorEvent) Error ¶
func (_this *SpeechRecognitionErrorEvent) Error() SpeechRecognitionErrorCode
Error returning attribute 'error' with type SpeechRecognitionErrorCode (idl: SpeechRecognitionErrorCode).
func (*SpeechRecognitionErrorEvent) Message ¶
func (_this *SpeechRecognitionErrorEvent) Message() string
Message returning attribute 'message' with type string (idl: DOMString).
type SpeechRecognitionErrorEventInit ¶
type SpeechRecognitionErrorEventInit struct { Bubbles bool Cancelable bool Composed bool Error SpeechRecognitionErrorCode Message string }
dictionary: SpeechRecognitionErrorEventInit
func SpeechRecognitionErrorEventInitFromJS ¶
func SpeechRecognitionErrorEventInitFromJS(value js.Value) *SpeechRecognitionErrorEventInit
SpeechRecognitionErrorEventInitFromJS is allocating a new SpeechRecognitionErrorEventInit object and copy all values in the value javascript object.
func (*SpeechRecognitionErrorEventInit) JSValue ¶
func (_this *SpeechRecognitionErrorEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type SpeechRecognitionEvent ¶
class: SpeechRecognitionEvent
func NewSpeechRecognitionEvent ¶
func NewSpeechRecognitionEvent(_type string, eventInitDict *SpeechRecognitionEventInit) (_result *SpeechRecognitionEvent)
func SpeechRecognitionEventFromJS ¶
func SpeechRecognitionEventFromJS(value js.Value) *SpeechRecognitionEvent
SpeechRecognitionEventFromJS is casting a js.Value into SpeechRecognitionEvent.
func SpeechRecognitionEventFromWrapper ¶
func SpeechRecognitionEventFromWrapper(input core.Wrapper) *SpeechRecognitionEvent
SpeechRecognitionEventFromJS is casting from something that holds a js.Value into SpeechRecognitionEvent.
func (*SpeechRecognitionEvent) Emma ¶
func (_this *SpeechRecognitionEvent) Emma() js.Value
Emma returning attribute 'emma' with type js.Value (idl: Document).
Example ¶
package main import ( "github.com/gowebapi/webapi" "github.com/gowebapi/webapi/media/speech" ) func main() { var event *speech.SpeechRecognitionEvent // cast to correct type value := webapi.DocumentFromJS(event.Emma()) // do something with value _ = value }
Output:
func (*SpeechRecognitionEvent) Interpretation ¶
func (_this *SpeechRecognitionEvent) Interpretation() js.Value
Interpretation returning attribute 'interpretation' with type Any (idl: any).
func (*SpeechRecognitionEvent) ResultIndex ¶
func (_this *SpeechRecognitionEvent) ResultIndex() uint
ResultIndex returning attribute 'resultIndex' with type uint (idl: unsigned long).
func (*SpeechRecognitionEvent) Results ¶
func (_this *SpeechRecognitionEvent) Results() *SpeechRecognitionResultList
Results returning attribute 'results' with type SpeechRecognitionResultList (idl: SpeechRecognitionResultList).
type SpeechRecognitionEventInit ¶
type SpeechRecognitionEventInit struct { Bubbles bool Cancelable bool Composed bool ResultIndex uint Results *SpeechRecognitionResultList Interpretation js.Value Emma js.Value }
dictionary: SpeechRecognitionEventInit
func SpeechRecognitionEventInitFromJS ¶
func SpeechRecognitionEventInitFromJS(value js.Value) *SpeechRecognitionEventInit
SpeechRecognitionEventInitFromJS is allocating a new SpeechRecognitionEventInit object and copy all values in the value javascript object.
func (*SpeechRecognitionEventInit) JSValue ¶
func (_this *SpeechRecognitionEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type SpeechRecognitionResult ¶
type SpeechRecognitionResult struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: SpeechRecognitionResult
func SpeechRecognitionResultFromJS ¶
func SpeechRecognitionResultFromJS(value js.Value) *SpeechRecognitionResult
SpeechRecognitionResultFromJS is casting a js.Value into SpeechRecognitionResult.
func SpeechRecognitionResultFromWrapper ¶
func SpeechRecognitionResultFromWrapper(input core.Wrapper) *SpeechRecognitionResult
SpeechRecognitionResultFromJS is casting from something that holds a js.Value into SpeechRecognitionResult.
func (*SpeechRecognitionResult) Index ¶
func (_this *SpeechRecognitionResult) Index(index uint) (_result *SpeechRecognitionAlternative)
func (*SpeechRecognitionResult) IsFinal ¶
func (_this *SpeechRecognitionResult) IsFinal() bool
IsFinal returning attribute 'isFinal' with type bool (idl: boolean).
func (*SpeechRecognitionResult) Item ¶
func (_this *SpeechRecognitionResult) Item(index uint) (_result *SpeechRecognitionAlternative)
func (*SpeechRecognitionResult) JSValue ¶
func (_this *SpeechRecognitionResult) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*SpeechRecognitionResult) Length ¶
func (_this *SpeechRecognitionResult) Length() uint
Length returning attribute 'length' with type uint (idl: unsigned long).
type SpeechRecognitionResultList ¶
type SpeechRecognitionResultList struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: SpeechRecognitionResultList
func SpeechRecognitionResultListFromJS ¶
func SpeechRecognitionResultListFromJS(value js.Value) *SpeechRecognitionResultList
SpeechRecognitionResultListFromJS is casting a js.Value into SpeechRecognitionResultList.
func SpeechRecognitionResultListFromWrapper ¶
func SpeechRecognitionResultListFromWrapper(input core.Wrapper) *SpeechRecognitionResultList
SpeechRecognitionResultListFromJS is casting from something that holds a js.Value into SpeechRecognitionResultList.
func (*SpeechRecognitionResultList) Index ¶
func (_this *SpeechRecognitionResultList) Index(index uint) (_result *SpeechRecognitionResult)
func (*SpeechRecognitionResultList) Item ¶
func (_this *SpeechRecognitionResultList) Item(index uint) (_result *SpeechRecognitionResult)
func (*SpeechRecognitionResultList) JSValue ¶
func (_this *SpeechRecognitionResultList) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*SpeechRecognitionResultList) Length ¶
func (_this *SpeechRecognitionResultList) Length() uint
Length returning attribute 'length' with type uint (idl: unsigned long).
type SpeechSynthesis ¶
type SpeechSynthesis struct {
domcore.EventTarget
}
class: SpeechSynthesis
func SpeechSynthesisFromJS ¶
func SpeechSynthesisFromJS(value js.Value) *SpeechSynthesis
SpeechSynthesisFromJS is casting a js.Value into SpeechSynthesis.
func SpeechSynthesisFromWrapper ¶
func SpeechSynthesisFromWrapper(input core.Wrapper) *SpeechSynthesis
SpeechSynthesisFromJS is casting from something that holds a js.Value into SpeechSynthesis.
func (*SpeechSynthesis) AddEventVoicesChanged ¶
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 ¶
func (_this *SpeechSynthesis) Cancel()
func (*SpeechSynthesis) GetVoices ¶
func (_this *SpeechSynthesis) GetVoices() (_result []*SpeechSynthesisVoice)
func (*SpeechSynthesis) OnVoicesChanged ¶
func (_this *SpeechSynthesis) OnVoicesChanged() domcore.EventHandlerFunc
OnVoicesChanged returning attribute 'onvoiceschanged' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechSynthesis) Pause ¶
func (_this *SpeechSynthesis) Pause()
func (*SpeechSynthesis) Paused ¶
func (_this *SpeechSynthesis) Paused() bool
Paused returning attribute 'paused' with type bool (idl: boolean).
func (*SpeechSynthesis) Pending ¶
func (_this *SpeechSynthesis) Pending() bool
Pending returning attribute 'pending' with type bool (idl: boolean).
func (*SpeechSynthesis) Resume ¶
func (_this *SpeechSynthesis) Resume()
func (*SpeechSynthesis) SetOnVoicesChanged ¶
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 ¶
func (_this *SpeechSynthesis) Speak(utterance *SpeechSynthesisUtterance)
func (*SpeechSynthesis) Speaking ¶
func (_this *SpeechSynthesis) Speaking() bool
Speaking returning attribute 'speaking' with type bool (idl: boolean).
type SpeechSynthesisErrorCode ¶
type SpeechSynthesisErrorCode int
enum: SpeechSynthesisErrorCode
const ( CanceledSpeechSynthesisErrorCode SpeechSynthesisErrorCode = iota InterruptedSpeechSynthesisErrorCode AudioBusySpeechSynthesisErrorCode AudioHardwareSpeechSynthesisErrorCode NetworkSpeechSynthesisErrorCode SynthesisFailedSpeechSynthesisErrorCode TextTooLongSpeechSynthesisErrorCode InvalidArgumentSpeechSynthesisErrorCode NotAllowedSpeechSynthesisErrorCode )
func SpeechSynthesisErrorCodeFromJS ¶
func SpeechSynthesisErrorCodeFromJS(value js.Value) SpeechSynthesisErrorCode
SpeechSynthesisErrorCodeFromJS is converting a javascript value into a SpeechSynthesisErrorCode enum value.
func (*SpeechSynthesisErrorCode) JSValue ¶
func (this *SpeechSynthesisErrorCode) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (SpeechSynthesisErrorCode) Value ¶
func (this SpeechSynthesisErrorCode) Value() string
Value is converting this into javascript defined string value
type SpeechSynthesisErrorEvent ¶
type SpeechSynthesisErrorEvent struct {
SpeechSynthesisEvent
}
class: SpeechSynthesisErrorEvent
func NewSpeechSynthesisErrorEvent ¶
func NewSpeechSynthesisErrorEvent(_type string, eventInitDict *SpeechSynthesisErrorEventInit) (_result *SpeechSynthesisErrorEvent)
func SpeechSynthesisErrorEventFromJS ¶
func SpeechSynthesisErrorEventFromJS(value js.Value) *SpeechSynthesisErrorEvent
SpeechSynthesisErrorEventFromJS is casting a js.Value into SpeechSynthesisErrorEvent.
func SpeechSynthesisErrorEventFromWrapper ¶
func SpeechSynthesisErrorEventFromWrapper(input core.Wrapper) *SpeechSynthesisErrorEvent
SpeechSynthesisErrorEventFromJS is casting from something that holds a js.Value into SpeechSynthesisErrorEvent.
func (*SpeechSynthesisErrorEvent) Error ¶
func (_this *SpeechSynthesisErrorEvent) Error() SpeechSynthesisErrorCode
Error returning attribute 'error' with type SpeechSynthesisErrorCode (idl: SpeechSynthesisErrorCode).
type SpeechSynthesisErrorEventInit ¶
type SpeechSynthesisErrorEventInit struct { Bubbles bool Cancelable bool Composed bool Utterance *SpeechSynthesisUtterance CharIndex uint ElapsedTime float32 Name string Error SpeechSynthesisErrorCode }
dictionary: SpeechSynthesisErrorEventInit
func SpeechSynthesisErrorEventInitFromJS ¶
func SpeechSynthesisErrorEventInitFromJS(value js.Value) *SpeechSynthesisErrorEventInit
SpeechSynthesisErrorEventInitFromJS is allocating a new SpeechSynthesisErrorEventInit object and copy all values in the value javascript object.
func (*SpeechSynthesisErrorEventInit) JSValue ¶
func (_this *SpeechSynthesisErrorEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type SpeechSynthesisEvent ¶
class: SpeechSynthesisEvent
func NewSpeechSynthesisEvent ¶
func NewSpeechSynthesisEvent(_type string, eventInitDict *SpeechSynthesisEventInit) (_result *SpeechSynthesisEvent)
func SpeechSynthesisEventFromJS ¶
func SpeechSynthesisEventFromJS(value js.Value) *SpeechSynthesisEvent
SpeechSynthesisEventFromJS is casting a js.Value into SpeechSynthesisEvent.
func SpeechSynthesisEventFromWrapper ¶
func SpeechSynthesisEventFromWrapper(input core.Wrapper) *SpeechSynthesisEvent
SpeechSynthesisEventFromJS is casting from something that holds a js.Value into SpeechSynthesisEvent.
func (*SpeechSynthesisEvent) CharIndex ¶
func (_this *SpeechSynthesisEvent) CharIndex() uint
CharIndex returning attribute 'charIndex' with type uint (idl: unsigned long).
func (*SpeechSynthesisEvent) ElapsedTime ¶
func (_this *SpeechSynthesisEvent) ElapsedTime() float32
ElapsedTime returning attribute 'elapsedTime' with type float32 (idl: float).
func (*SpeechSynthesisEvent) Name ¶
func (_this *SpeechSynthesisEvent) Name() string
Name returning attribute 'name' with type string (idl: DOMString).
func (*SpeechSynthesisEvent) Utterance ¶
func (_this *SpeechSynthesisEvent) Utterance() *SpeechSynthesisUtterance
Utterance returning attribute 'utterance' with type SpeechSynthesisUtterance (idl: SpeechSynthesisUtterance).
type SpeechSynthesisEventInit ¶
type SpeechSynthesisEventInit struct { Bubbles bool Cancelable bool Composed bool Utterance *SpeechSynthesisUtterance CharIndex uint ElapsedTime float32 Name string }
dictionary: SpeechSynthesisEventInit
func SpeechSynthesisEventInitFromJS ¶
func SpeechSynthesisEventInitFromJS(value js.Value) *SpeechSynthesisEventInit
SpeechSynthesisEventInitFromJS is allocating a new SpeechSynthesisEventInit object and copy all values in the value javascript object.
func (*SpeechSynthesisEventInit) JSValue ¶
func (_this *SpeechSynthesisEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type SpeechSynthesisUtterance ¶
type SpeechSynthesisUtterance struct {
domcore.EventTarget
}
class: SpeechSynthesisUtterance
func NewSpeechSynthesisUtterance ¶
func NewSpeechSynthesisUtterance(text *string) (_result *SpeechSynthesisUtterance)
func SpeechSynthesisUtteranceFromJS ¶
func SpeechSynthesisUtteranceFromJS(value js.Value) *SpeechSynthesisUtterance
SpeechSynthesisUtteranceFromJS is casting a js.Value into SpeechSynthesisUtterance.
func SpeechSynthesisUtteranceFromWrapper ¶
func SpeechSynthesisUtteranceFromWrapper(input core.Wrapper) *SpeechSynthesisUtterance
SpeechSynthesisUtteranceFromJS is casting from something that holds a js.Value into SpeechSynthesisUtterance.
func (*SpeechSynthesisUtterance) AddEventBoundary ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (_this *SpeechSynthesisUtterance) Lang() string
Lang returning attribute 'lang' with type string (idl: DOMString).
func (*SpeechSynthesisUtterance) OnBoundary ¶
func (_this *SpeechSynthesisUtterance) OnBoundary() domcore.EventHandlerFunc
OnBoundary returning attribute 'onboundary' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechSynthesisUtterance) OnEnd ¶
func (_this *SpeechSynthesisUtterance) OnEnd() domcore.EventHandlerFunc
OnEnd returning attribute 'onend' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechSynthesisUtterance) OnError ¶
func (_this *SpeechSynthesisUtterance) OnError() domcore.EventHandlerFunc
OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechSynthesisUtterance) OnMark ¶
func (_this *SpeechSynthesisUtterance) OnMark() domcore.EventHandlerFunc
OnMark returning attribute 'onmark' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechSynthesisUtterance) OnPause ¶
func (_this *SpeechSynthesisUtterance) OnPause() domcore.EventHandlerFunc
OnPause returning attribute 'onpause' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechSynthesisUtterance) OnResume ¶
func (_this *SpeechSynthesisUtterance) OnResume() domcore.EventHandlerFunc
OnResume returning attribute 'onresume' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechSynthesisUtterance) OnStart ¶
func (_this *SpeechSynthesisUtterance) OnStart() domcore.EventHandlerFunc
OnStart returning attribute 'onstart' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SpeechSynthesisUtterance) Pitch ¶
func (_this *SpeechSynthesisUtterance) Pitch() float32
Pitch returning attribute 'pitch' with type float32 (idl: float).
func (*SpeechSynthesisUtterance) Rate ¶
func (_this *SpeechSynthesisUtterance) Rate() float32
Rate returning attribute 'rate' with type float32 (idl: float).
func (*SpeechSynthesisUtterance) SetLang ¶
func (_this *SpeechSynthesisUtterance) SetLang(value string)
SetLang setting attribute 'lang' with type string (idl: DOMString).
func (*SpeechSynthesisUtterance) SetOnBoundary ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (_this *SpeechSynthesisUtterance) SetPitch(value float32)
SetPitch setting attribute 'pitch' with type float32 (idl: float).
func (*SpeechSynthesisUtterance) SetRate ¶
func (_this *SpeechSynthesisUtterance) SetRate(value float32)
SetRate setting attribute 'rate' with type float32 (idl: float).
func (*SpeechSynthesisUtterance) SetText ¶
func (_this *SpeechSynthesisUtterance) SetText(value string)
SetText setting attribute 'text' with type string (idl: DOMString).
func (*SpeechSynthesisUtterance) SetVoice ¶
func (_this *SpeechSynthesisUtterance) SetVoice(value *SpeechSynthesisVoice)
SetVoice setting attribute 'voice' with type SpeechSynthesisVoice (idl: SpeechSynthesisVoice).
func (*SpeechSynthesisUtterance) SetVolume ¶
func (_this *SpeechSynthesisUtterance) SetVolume(value float32)
SetVolume setting attribute 'volume' with type float32 (idl: float).
func (*SpeechSynthesisUtterance) Text ¶
func (_this *SpeechSynthesisUtterance) Text() string
Text returning attribute 'text' with type string (idl: DOMString).
func (*SpeechSynthesisUtterance) Voice ¶
func (_this *SpeechSynthesisUtterance) Voice() *SpeechSynthesisVoice
Voice returning attribute 'voice' with type SpeechSynthesisVoice (idl: SpeechSynthesisVoice).
func (*SpeechSynthesisUtterance) Volume ¶
func (_this *SpeechSynthesisUtterance) Volume() float32
Volume returning attribute 'volume' with type float32 (idl: float).
type SpeechSynthesisVoice ¶
type SpeechSynthesisVoice struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: SpeechSynthesisVoice
func SpeechSynthesisVoiceFromJS ¶
func SpeechSynthesisVoiceFromJS(value js.Value) *SpeechSynthesisVoice
SpeechSynthesisVoiceFromJS is casting a js.Value into SpeechSynthesisVoice.
func SpeechSynthesisVoiceFromWrapper ¶
func SpeechSynthesisVoiceFromWrapper(input core.Wrapper) *SpeechSynthesisVoice
SpeechSynthesisVoiceFromJS is casting from something that holds a js.Value into SpeechSynthesisVoice.
func (*SpeechSynthesisVoice) Default ¶
func (_this *SpeechSynthesisVoice) Default() bool
Default returning attribute 'default' with type bool (idl: boolean).
func (*SpeechSynthesisVoice) JSValue ¶
func (_this *SpeechSynthesisVoice) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*SpeechSynthesisVoice) Lang ¶
func (_this *SpeechSynthesisVoice) Lang() string
Lang returning attribute 'lang' with type string (idl: DOMString).
func (*SpeechSynthesisVoice) LocalService ¶
func (_this *SpeechSynthesisVoice) LocalService() bool
LocalService returning attribute 'localService' with type bool (idl: boolean).
func (*SpeechSynthesisVoice) Name ¶
func (_this *SpeechSynthesisVoice) Name() string
Name returning attribute 'name' with type string (idl: DOMString).
func (*SpeechSynthesisVoice) VoiceURI ¶
func (_this *SpeechSynthesisVoice) VoiceURI() string
VoiceURI returning attribute 'voiceURI' with type string (idl: DOMString).