Function

GetSpeechPitch(_:_:)

Gets a speech channel’s current speech pitch.

Declaration

func GetSpeechPitch(_ chan: SpeechChannel, _ pitch: UnsafeMutablePointer<Fixed>) -> OSErr

Parameters

chan

The speech channel whose pitch you wish to determine.

pitch

On return, a pointer to the current pitch of the voice in the speech channel, expressed as a fixed-point frequency value.

Return Value

A result code. See Result Codes.

Discussion

Typical voice frequencies range from around 90 hertz for a low-pitched male voice to perhaps 300 hertz for a high-pitched child’s voice. These frequencies correspond to approximate pitch values in the ranges of 30.000 to 40.000 and 55.000 to 65.000, respectively.

See Also

Obtaining Information About Speech and Speech Channels

func CopySpeechProperty(SpeechChannel, CFString, UnsafeMutablePointer<CFTypeRef?>) -> OSErr

Gets the value associated with the specified property of a speech channel.

func SpeechBusy() -> Int16

Determines whether any channels of speech are currently synthesizing speech.

func SpeechBusySystemWide() -> Int16

Determines if any speech is currently being synthesized in your application or elsewhere on the computer.

func SpeechManagerVersion() -> NumVersion

Determines the current version of the Speech Synthesis Manager installed in the system.