---
title: "CountVoices(_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1459947-countvoices
---

# CountVoices(_:)

Determines how many voices are available.

## Declaration

```swift
func CountVoices(_ numVoices: UnsafeMutablePointer<Int16>) -> OSErr
```

## Parameters

- `numVoices`: On exit, a pointer to the number of voices that the application can use.

## Return Value

Return Value A resultcode. See Result Codes.

## Discussion

Discussion The CountVoices functionreturns, in the numVoices parameter,the number of voices available. The application can then use thisinformation to call the GetIndVoice functionto obtain voice specification structures for one or more of thevoices. Each time CountVoices iscalled, the Speech Synthesis Manager searches for new voices.

## See Also

### Getting Information About Voices

- [GetIndVoice(_:_:)](applicationservices/1464595-getindvoice.md)
- [GetVoiceDescription(_:_:_:)](applicationservices/1463940-getvoicedescription.md)
- [GetVoiceInfo(_:_:_:)](applicationservices/1461410-getvoiceinfo.md)
- [MakeVoiceSpec(_:_:_:)](applicationservices/1461446-makevoicespec.md)
