Firefox Tomorrow

web api instance property

SpeechGrammar: weight property

View on MDN ↗

The optional weight property of the SpeechGrammar interface sets and returns the weight of the SpeechGrammar object.

Value

A float representing the weight of the grammar, in the range 0.0–1.0.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also