GetSpeechPitch(_:_:)
Gets a speech channel’s current speech pitch.
Declaration
func GetSpeechPitch(_ chan: SpeechChannel, _ pitch: UnsafeMutablePointer<Fixed>) -> OSErrParameters
- 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 resultcode. See Result Codes.
Discussion
Typical voice frequencies range from around 90 hertz for alow-pitched male voice to perhaps 300 hertz for a high-pitched child’svoice. These frequencies correspond to approximate pitch valuesin the ranges of 30.000 to 40.000 and 55.000 to 65.000, respectively.