---
title: "phonemes(from:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsspeechsynthesizer/phonemes(from:)"
---

# phonemes(from:)

Provides the phoneme symbols generated by the given text.

## Declaration

```swift
func phonemes(from text: String) -> String
```

## Parameters

- `text`: Text from which to generate phonemes.

## Return Value

Return Value Phonemes generated from text.

## Discussion

Discussion Converting textual data into phonetic data is particularly useful during application development, when you might wish to adjust phrases that your application generates to produce smoother speech. By first converting the target phrase into phonemes, you can see what the synthesizer will try to speak. Then you need correct only the parts that would not have been spoken the way you want The string returned by phonemesFromText: corresponds precisely to the phonemes that would be spoken had the input text been sent to startSpeaking(_:) instead. All current property settings for the synthesizer are applied to the converted speech. No delegate methods are called while phonemes(from:) method is generating its output.
