AVFoundation.AVSpeechUtterance Class
A spoken word, statement, or sound. Used with AVFoundation.AVSpeechSynthesizer.

See Also: AVSpeechUtterance Members

Syntax

[Foundation.Register("AVSpeechUtterance", true)]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_7_0)]
public class AVSpeechUtterance : Foundation.NSObject, Foundation.INSCopying, Foundation.INSSecureCoding, IDisposable

Remarks

In its simplest form, text-to-speech can be done with just two classes:

C# Example

var ss = new AVSpeechSynthesizer();
var su = new AVSpeechUtterance("Microphone check. One, two, one two.") {
	Rate = AVSpeechUtterance.DefaultSpeechRate
};
ss.SpeakUtterance(su);          
          

The AVSpeechUtterance.Rate property specifies the speed with which the utterance is said. The rate does not appear to be processor-dependent and a rate of 1.0f is unnatural.

Related content

Requirements

Namespace: AVFoundation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0