user1311199
user1311199

Reputation: 119

How can you synthesize speech using Phonemes for iOS

I'm working on an application that requires the use of a text to speech synthesizer. Implementing this was rather simple for iOS using AVSpeechSynthesizer. However, when it comes to customizing synthesis, I was directed to documentation about speech synthesis for an OSX only API, which allows you to input phoneme pairs, in order to customize word pronunciation. Unfortunately, this interface is not available on iOS.

I was hoping someone might know of a similar library or plugin that might accomplish the same task. If you do, it would be much appreciated if you would lend a hand.

Thanks in advance!

Upvotes: 0

Views: 837

Answers (2)

XLE_22
XLE_22

Reputation: 5671

... allows you to input phoneme pairs, in order to customize word pronunciation. Unfortunately, this interface is not available on iOS.

This kind of interface is definitely available on iOS: in your device settings (iOS 12), once the menu General - Accessibility - Speech - Pronunciations is reached: enter image description here

  1. Select the '+' icon to add a new phonetic element.
  2. Name this new element in order to quickly find it later on.
  3. Tap the microphone icon.
  4. Vocalize an entire sentence or a single word.
  5. Listen to the different system proposals.
  6. Validate your choice with the 'OK' button or cancel to start over.
  7. Tap the back button to confirm the new created phonetic element.
  8. Find all the generated elements in the Pronunciations page.

enter image description here Following the steps above, you will be able to synthesize speech using phonemes for iOS.

Upvotes: 1

Fennelouski
Fennelouski

Reputation: 2431

AVSpeechSynthesizer for iOS is not capable (out of the box) to work with phonemes. NSSpeechSynthesizer is capable of it, but that's not available on iOS.

You can create an algorithm that produces short phonemes, but it would be incredibly difficult to make it sound good by any means.

Upvotes: 1

Related Questions