---
title: SetSpeechInfo
framework: Application Services
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: applicationservices/1552223-setspeechinfo
---

# SetSpeechInfo

Changes a setting of a particular speech channel.

## Declaration

```occ
OSErr SetSpeechInfo(SpeechChannel chan, OSType selector, const void *speechInfo);
```

## Parameters

- `chan`: The speech channel for which your application wishes to change a setting.
- `selector`: A speech information selector that indicates the type of information being changed.
 For a complete list of speech information selectors, see [doc://com.apple.documentation/documentation/applicationservices/1552228-speech-channel_information_constants](applicationservices/1552228-speech-channel_information_constants.md). This list indicates how your application should set the `speechInfo` parameter for each selector.
- `speechInfo`: A pointer whose meaning depends on the speech information selector specified in the `selector` parameter.

## Return Value

A resultcode. See [Result Codes](speech_synthesis_manager.md).

## Discussion

The `SetSpeechInfo` functionchanges the type of setting indicated by the `selector` parameterin the speech channel specified by the `chan` parameter,based on the data your application provides via the `speechInfo` parameter.

The format of the data structure specified by the `speechInfo` parameterdepends on the selector you choose. Ordinarily, a selector requiresthat `speechInfo` be apointer to a data structure that specifies a new setting for thespeech channel. 

## See Also

### Changing Speech Attributes

- [SetSpeechProperty](1459256-setspeechproperty.md)
- [SetSpeechPitch](1462674-setspeechpitch.md)
- [SetSpeechRate](1459896-setspeechrate.md)
