---
title: "SetSpeechRate(_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1459896-setspeechrate
---

# SetSpeechRate(_:_:)

Sets the speech rate of a designated speech channel.

## Declaration

```swift
func SetSpeechRate(_ chan: SpeechChannel, _ rate: Fixed) -> OSErr
```

## Parameters

- `chan`: The speech channel whose rate you wish to set.
- `rate`: The new speech rate in words per minute, expressed as an integer value.

## Return Value

Return Value A resultcode. See Result Codes.

## Discussion

Discussion The SetSpeechRate functionadjusts the speech rate on the speech channel specified by the chan parameterto the rate specified by the rate parameter.As a general rule, speaking rates range from around 150 words perminute to around 220 words per minute. It is important to keep inmind, however, that users will differ greatly in their ability to understandsynthesized speech at a particular rate based upon their level ofexperience listening to the voice and their ability to anticipatethe types of utterances they will encounter.  Note: the new speech rate should be expressed as an integer (nota fixed point decimal number as the data type implies).

## See Also

### Changing Speech Attributes

- [SetSpeechProperty(_:_:_:)](applicationservices/1459256-setspeechproperty.md)
- [SetSpeechPitch(_:_:)](applicationservices/1462674-setspeechpitch.md)
