---
title: AVSpeechSynthesisVoice
framework: avfaudio
role: symbol
role_heading: Class
path: avfaudio/avspeechsynthesisvoice
---

# AVSpeechSynthesisVoice

A distinct voice for use in speech synthesis.

## Declaration

```swift
class AVSpeechSynthesisVoice
```

## Overview

Overview The primary factors that distinguish a voice in speech synthesis are language, locale, and quality. Create an instance of AVSpeechSynthesisVoice to select a voice that’s appropriate for the text and the language, and set it as the value of the voice property on an AVSpeechUtterance instance. The voice may optionally reflect a local variant of the language, such as Australian or South African English. For a complete list of supported languages, see Languages Supported by VoiceOver.

## Topics

### Obtaining voices

- [init(identifier:)](avfaudio/avspeechsynthesisvoice/init(identifier:).md)
- [init(language:)](avfaudio/avspeechsynthesisvoice/init(language:).md)
- [speechVoices()](avfaudio/avspeechsynthesisvoice/speechvoices().md)
- [AVSpeechSynthesisVoiceIdentifierAlex](avfaudio/avspeechsynthesisvoiceidentifieralex.md)

### Inspecting voices

- [identifier](avfaudio/avspeechsynthesisvoice/identifier.md)
- [name](avfaudio/avspeechsynthesisvoice/name.md)
- [quality](avfaudio/avspeechsynthesisvoice/quality.md)
- [gender](avfaudio/avspeechsynthesisvoice/gender.md)
- [voiceTraits](avfaudio/avspeechsynthesisvoice/voicetraits.md)
- [audioFileSettings](avfaudio/avspeechsynthesisvoice/audiofilesettings.md)
- [AVSpeechSynthesisVoiceQuality](avfaudio/avspeechsynthesisvoicequality.md)
- [AVSpeechSynthesisVoiceGender](avfaudio/avspeechsynthesisvoicegender.md)
- [AVSpeechSynthesisVoice.Traits](avfaudio/avspeechsynthesisvoice/traits.md)

### Working with language codes

- [currentLanguageCode()](avfaudio/avspeechsynthesisvoice/currentlanguagecode().md)
- [language](avfaudio/avspeechsynthesisvoice/language.md)

### Initializers

- [init(coder:)](avfaudio/avspeechsynthesisvoice/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Spoken text attributes

- [AVSpeechUtterance](avfaudio/avspeechutterance.md)
