You are here: Reference > JavaScript > client-side > style handling > properties > browser specific extensions > opVoicePitch
opVoicePitch style property | XvVoicePitch style property
opVoicePitch | ||||||
XvVoicePitch |
Specifies or retrieves the average frequency of the speaking voice.
Same as the voice-pitch property in the CSS3 declaration.
The opVoicePitch and XvVoicePitch properties are equivalent in Opera.
Syntax:
You can find the related objects in the Supported by objects section below.
XvVoicePitch: | This property is read/write. |
opVoicePitch: | This property is read/write. |
CSS page for this property: -op-voice-pitch |
Possible values:
The type of this property is string.
One of the following values:
A floating-point number followed by Hz, the average frequency of the speaking voice in Hertz. | |||||||
Values depend on the voice family. | |||||||
Takes the value of this property from the computed style of the parent element. | |||||||
Values depend on the voice family. | |||||||
Values depend on the voice family. | |||||||
Values depend on the voice family. | |||||||
Values depend on the voice family. |
Default: medium.
Example HTML code 1:
This example illustrates the use of the -xv-voice-pitch property:
|
||||
<head> <style> .example { -xv-voice-pitch: high; } </style> </head> <body> <p class="example">Sets the average pitch of the speaking voice to high.</p> Select the text above, right click and select speak </body> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
This example illustrates the use of the XvVoicePitch property in JavaScript:
|
||||
<head> <style> .example { -xv-voice-pitch: high; } </style> <script type="text/javascript"> function ChangePitch (input) { var div = document.getElementById ("myDiv"); if ('XvVoicePitch' in div.style) { div.style.XvVoicePitch = input.value + "Hz"; } else { alert ("Your browser doesn't support this example!"); } } </script> </head> <body> Normal voice <p class="example">Select the text in the document, right click and select speak</p> Change voice-pitch: <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
opVoicePitchRange
opVoiceRate
opVoiceStress
opVoiceVolume
cue
cueAfter
cueBefore
pause
pauseAfter
pauseBefore
rest
restAfter
restBefore
speak
voiceFamily
opPhonemes
XvVoiceBalance
XvVoiceDuration
opVoicePitchRange
opVoiceRate
opVoiceStress
opVoiceVolume
cue
cueAfter
cueBefore
pause
pauseAfter
pauseBefore
rest
restAfter
restBefore
speak
voiceFamily
External links:
User Contributed Comments