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

See Also: AVSpeechUtterance Members

Syntax

[MonoTouch.Foundation.Register("AVSpeechUtterance", true)]
[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.iOS_7_0)]
public class AVSpeechUtterance : MonoTouch.Foundation.NSObject, MonoTouch.Foundation.INSCopying, MonoTouch.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: MonoTouch.AVFoundation
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0