CSS voice-pitch

The CSS voice-pitch property is used in speech media to specify the baseline pitch of the speaking voice.

More specifically, the CSS specification states that it specifies the "baseline" pitch of the generated speech output, which depends on the used voice-family instance, and varies across speech synthesis processors (it approximately corresponds to the average pitch of the output).

Syntax

Possible Values

frequency
This value represents the frequency of the baseline pitch. If the absolute keyword is present, this is an absolute frequency (it's not an increment or decrement). A common pitch is around 120Hz for a male voice, and around 210Hz for a female voice.
absolute
This is an optional keyword that indicates that the specified frequency represents an absolute value (i.e. it's not an increment or decrement). If a negative frequency is specified, the computed frequency is zero.
semitones
Specifies a relative change (decrement or increment) to the inherited value. This is specified as a number followed immediately (no space) by st (semitones unit identifier).
x-low, low, medium, high, x-high
A sequence of monotonically non-decreasing pitch levels that are implementation and voice specific.
percentage
Positive and negative percentage values are allowed, to represent an increment or decrement (respectively) relative to the inherited value.

In addition, all CSS properties also accept the following CSS-wide keyword values as the sole component of their property value:

initial
Represents the value specified as the property's initial value.
inherit
Represents the computed value of the property on the element's parent.
unset
This value acts as either inherit or initial, depending on whether the property is inherited or not. In other words, it sets all properties to their parent value if they are inheritable or to their initial value if not inheritable.

General Information

Initial Value
medium
Applies To
All elements.
Inherited?
Yes
Media
Speech

Example Code

Official Specifications

Browser Support

Browser support for CSS properties can vary, particularly for newer or experimental features. Check current browser compatibility before using a property in production, especially when supporting older browsers.

Initial Value

CSS properties have an initial value that applies when the property has not been explicitly set. The initial value is different from the value inherited from a parent element and may vary between properties.

Inheritance

Some CSS properties inherit their computed value from their parent element by default, while others do not. The inherit, initial, unset, and revert keywords can also be used to control how a property gets its value.

Vendor Prefixes

Most modern CSS properties use the standard, unprefixed syntax. Vendor-prefixed properties such as -webkit- are mainly relevant to older browser versions or specific features and should only be used when required by your browser support targets.