AVSpeechUtterance Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A spoken word, statement, or sound. Used with AVSpeechSynthesizer.
[Foundation.Register("AVSpeechUtterance", true)]
public class AVSpeechUtterance : Foundation.NSObject, Foundation.INSCopying, Foundation.INSSecureCoding, IDisposable
[<Foundation.Register("AVSpeechUtterance", true)>]
type AVSpeechUtterance = class
inherit NSObject
interface INSCoding
interface INativeObject
interface IDisposable
interface INSCopying
interface INSSecureCoding
- Inheritance
- Attributes
- Implements
Remarks
In its simplest form, text-to-speech can be done with just two classes:
var ss = new AVSpeechSynthesizer();
var su = new AVSpeechUtterance("Microphone check. One, two, one two.") {
Rate = AVSpeechUtterance.DefaultSpeechRate
};
ss.SpeakUtterance(su);
The 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.
Constructors
| AVSpeechUtterance() |
Creates a new AVSpeechUtterance with default values. |
| AVSpeechUtterance(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| AVSpeechUtterance(NSAttributedString) | |
| AVSpeechUtterance(NSCoder) |
A constructor that initializes the object from the data stored in the unarchiver object. |
| AVSpeechUtterance(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
| AVSpeechUtterance(String, AVSpeechUtteranceInitializationOption) |
Create a new AVSpeechUtterance instance for the specified string. |
| AVSpeechUtterance(String) |
Create a new AVSpeechUtterance instance for the specified string. |
Properties
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| AttributedSpeechString | |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| DebugDescription | (Inherited from NSObject) |
| DefaultSpeechRate |
Represents the value associated with the constant AVSpeechUtteranceDefaultSpeechRate |
| Description | (Inherited from NSObject) |
| ExposedBindings | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| MaximumSpeechRate |
Represents the value associated with the constant AVSpeechUtteranceMaximumSpeechRate |
| MinimumSpeechRate |
Represents the value associated with the constant AVSpeechUtteranceMinimumSpeechRate |
| PitchMultiplier |
Modifies the pitch of the Voice. |
| PostUtteranceDelay |
The minimum delay, in seconds, after the last sound before the next enqueued AVSpeechUtterance will begin. |
| PrefersAssistiveTechnologySettings | |
| PreUtteranceDelay |
The minimum delay, in seconds, between the start of speech synthesis and the first audible sound. |
| Rate | |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| SpeechString |
The text to be spoken. |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| Voice |
The AVSpeechSynthesisVoice to be used for synthesis. |
| Volume | |
| Zone | (Inherited from NSObject) |