You are here: Reference > JavaScript > client-side > style handling > properties > browser specific extensions > opVoicePitchRange
opVoicePitchRange style property | XvVoicePitchRange style property
opVoicePitchRange | ||||||
XvVoicePitchRange |
Specifies or retrieves the variation from the average pitch of the voice.
Same as the voice-pitch-range property in the CSS3 declaration.
The opVoicePitchRange and XvVoicePitchRange properties are equivalent in Opera.
Syntax:
You can find the related objects in the Supported by objects section below.
XvVoicePitchRange: | This property is read/write. |
opVoicePitchRange: | This property is read/write. |
CSS page for this property: -op-voice-pitch-range |
Possible values:
The type of this property is string.
One of the following values:
A floating-point number followed by Hz, the variation from the average pitch in Hertz. | |||||||
A highly animated voice. | |||||||
Takes the value of this property from the computed style of the parent element. | |||||||
A flat monotonic voice. | |||||||
A normal voice. | |||||||
Degree of the variation from the average pitch. |
Default: 50%.
Example HTML code 1:
This example illustrates the use of the -xv-voice-pitch-range property:
|
||||
<head> <style> .example { -xv-voice-pitch-range: high; } </style> </head> <body> Normal voice <p class="example">A highly animated voice.</p> Select the text in the document, right click and select speak </body> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
This example illustrates the use of the XvVoicePitchRange property in JavaScript:
|
||||
<head> <style> #example { -xv-voice-pitch: high; } </style> <script type="text/javascript"> function ChangePitch (input) { var example = document.getElementById ("example"); if ('XvVoicePitchRange' in example.style) { example.style.XvVoicePitchRange = input.value + "Hz"; // or opVoicePitchRange } else { alert ("Your browser doesn't support this example!"); } } </script> </head> <body> Normal voice <p id="example">Select the text in the document, right click and select speak</p> Change voice-pitch-range: <input type="text" onkeyup="ChangePitch (this);" value="1" /> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
CSSStyleDeclaration, htmlElement.currentStyle, htmlElement.style
HTML elements:
a, abbr, acronym, address, b, bdo, big, blink, blockquote, body, button, caption, center, cite, code, col, colgroup, dd, del, dfn, dir, div, dl, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, html, i, input:button, input:file, input:password, input:reset, input:submit, input:text, ins, isindex, kbd, label, legend, li, marquee, menu, ol, optgroup, option, p, plaintext, pre, q, s, samp, select, small, span, strike, strong, sub, sup, table, tbody, td, textarea, tfoot, th, thead, tr, tt, u, ul, var, xmp
Related pages:
XvInterpretAs
opPhonemes
XvVoiceBalance
XvVoiceDuration
opVoicePitch
opVoiceRate
opVoiceStress
opVoiceVolume
cue
cueAfter
cueBefore
pause
pauseAfter
pauseBefore
rest
restAfter
restBefore
speak
voiceFamily
opPhonemes
XvVoiceBalance
XvVoiceDuration
opVoicePitch
opVoiceRate
opVoiceStress
opVoiceVolume
cue
cueAfter
cueBefore
pause
pauseAfter
pauseBefore
rest
restAfter
restBefore
speak
voiceFamily
External links:
User Contributed Comments