This documentation is archived and is not being maintained.

RecognizedPhrase.Homophones Property

Returns a collection of homophones for the current recognized phrase.

Namespace: System.Speech.Recognition
Assembly: System.Speech (in system.speech.dll)

public ReadOnlyCollection<RecognizedPhrase> Homophones { get; }
/** @property */
public ReadOnlyCollection<RecognizedPhrase> get_Homophones ()

public function get Homophones () : ReadOnlyCollection<RecognizedPhrase>

Not applicable.

Property Value

Returns a ReadOnlyCollection of RecognizedPhrase instances, each of which is a potential homophone for the current RecognizedPhrase.

The code fragment and utility method shown below display the Text property of the RecognizedPhrase instances returned by the Homophones property to a ListControl on a user interface.

Utils.DisplayDataOnListBox(_recognizedPhraseHomophonesListBox, _recognizedPhrase.Homophones, "Text");

// Updates alternates list with alternates of the result.
internal static void DisplayDataOnListBox(ListControl list, object dataSource, string displayMember) {

            list.DataSource = dataSource; //result.Alternates;
            list.DisplayMember = displayMember; //"Text";


Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0