One Logo Pool Ball
AVFAudio · IOS API REFERENCE

AVSpeechSynthesisVoice

class · iOS 7.0+ · SDK 27.1

class AVSpeechSynthesisVoice

Members (11)

static · iOS 7.0+

currentLanguageCode

TypeScript
static currentLanguageCode(): string
Swift declaration
class func currentLanguageCode() -> String
static · iOS 7.0+

speechVoices

TypeScript
static speechVoices(): Array<AVSpeechSynthesisVoice>
Swift declaration
class func speechVoices() -> [AVSpeechSynthesisVoice]
init · iOS 9.0+

init

TypeScript
static initIdentifier(identifier: string): (AVSpeechSynthesisVoice) | null
Swift declaration
init?(identifier: String)
init · iOS 7.0+

init

TypeScript
static initLanguage(languageCode?: (string) | null): (AVSpeechSynthesisVoice) | null
Swift declaration
init?(language languageCode: String?)
get · iOS 13.0+

audioFileSettings

TypeScript
get audioFileSettings(): Record<string, unknown>
Swift declaration
var audioFileSettings: [String : Any] { get }
get · iOS 13.0+

gender

TypeScript
get gender(): AVSpeechSynthesisVoiceGender
Swift declaration
var gender: AVSpeechSynthesisVoiceGender { get }
get · iOS 9.0+

identifier

TypeScript
get identifier(): string
Swift declaration
var identifier: String { get }
get · iOS 7.0+

language

TypeScript
get language(): string
Swift declaration
var language: String { get }
get · iOS 9.0+

name

TypeScript
get name(): string
Swift declaration
var name: String { get }
get · iOS 9.0+

quality

TypeScript
get quality(): AVSpeechSynthesisVoiceQuality
Swift declaration
var quality: AVSpeechSynthesisVoiceQuality { get }
get · iOS 17.0+

voiceTraits

TypeScript
get voiceTraits(): AVSpeechSynthesisVoice_Traits
Swift declaration
var voiceTraits: AVSpeechSynthesisVoice.Traits { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

AVSpeechSynthesisVoice.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All AVFAudio types →