---
title: kSpeechOutputToAudioDeviceProperty
framework: applicationservices
role: symbol
role_heading: Global Variable
path: applicationservices/kspeechoutputtoaudiodeviceproperty
---

# kSpeechOutputToAudioDeviceProperty

Set the speech output destination to an audio device file or to the computer’s speakers.

## Declaration

```swift
let kSpeechOutputToAudioDeviceProperty: CFString
```

## Discussion

Discussion The value associated with this property is a CFNumber object that contains an AudioDeviceID. To play the speech output to an audio device, use the AudioDeviceID that represents the device; to generate sound through the computer’s speakers, use 0. This property works with the SetSpeechProperty(_:_:_:) function.
