---
title: "SetSpeechProperty(_:_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1459256-setspeechproperty
---

# SetSpeechProperty(_:_:_:)

Sets the value of the specified speech-channel property.

## Declaration

```swift
func SetSpeechProperty(_ chan: SpeechChannel, _ property: CFString, _ object: CFTypeRef?) -> OSErr
```

## Parameters

- `chan`: The speech channel whose property to set.
- `property`: The speech-channel property to set to the specified value.
- `object`: The value to which the specified speech-channel property should be set. For some properties, this value can be NULL.

## Return Value

Return Value A result code. See Result Codes.

## Discussion

Discussion The SetSpeechProperty function is the Core Foundation-based equivalent of the SetSpeechInfo function. See Speech-Channel Properties for information on the properties you can specify.

## See Also

### Changing Speech Attributes

- [SetSpeechPitch(_:_:)](applicationservices/1462674-setspeechpitch.md)
- [SetSpeechRate(_:_:)](applicationservices/1459896-setspeechrate.md)
