speechAdjustedPitch

Raises or lowers the pitch of spoken text.

Text ModifieriOS 15.0+macOS 12.0+tvOS 15.0+watchOS 8.0+speechAdjustedPitch(_:) in SwiftUI

Declaration

React
compose().speechAdjustedPitch(value: number)
Swift
func speechAdjustedPitch(_ value: Double) -> Text

Parameters

  • value*number

    The amount to raise or lower the pitch. Values between -1 and 0 result in a lower pitch while values between 0 and 1 result in a higher pitch. The method clamps values to the range -1 to 1.

Discussion

Use this modifier when you want to change the pitch of spoken text. The value indicates how much higher or lower to change the pitch.

See also

More in Text modifiers.