RecognizedPhrase.Homophones 属性
定义
获取识别备用项的集合,这些备用项具有与此识别语法一样的发音。Gets a collection of the recognition alternates that have the same pronunciation as this recognized phrase.
public:
property System::Collections::ObjectModel::ReadOnlyCollection<System::Speech::Recognition::RecognizedPhrase ^> ^ Homophones { System::Collections::ObjectModel::ReadOnlyCollection<System::Speech::Recognition::RecognizedPhrase ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<System.Speech.Recognition.RecognizedPhrase> Homophones { get; }
member this.Homophones : System.Collections.ObjectModel.ReadOnlyCollection<System.Speech.Recognition.RecognizedPhrase>
Public ReadOnly Property Homophones As ReadOnlyCollection(Of RecognizedPhrase)
属性值
只读识别备用项的集合,这些备用项具有与此识别语法一样的发音。A read-only collection of the recognition alternates that have the same pronunciation as this recognized phrase.
注解
此属性返回与此识别的短语具有相同发音的所有其他识别备用项。This property returns all other recognition alternates that have the same pronunciation as this recognized phrase.
例如,对于包含备用项 "tale" 和 "homophones" 的识别结果,第一个替换项的集合 "the tale" 将包含第二个短语 "the tail"。For example, for a recognition result that contained the alternates, "the tale" and "the tail", the homophones collection for the first alternate, "the tale", would contain the second phrase, "the tail". 第二个替代方法 "the tail" 的 homophones 集合将包含第一个短语 "the tale"。The homophones collection for the second alternate, "the tail", would contain the first phrase, "the tale".