CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
CrisisHelper - First Aid in Tough Times of World Economic Crisis


Intelligent Interface Technologies Home Page Microsoft Speech SDK

Speech Automation 5.1

Interface: ISpeechLexiconPronunciation

PhoneIds Property


The PhoneIds property returns the pronunciation of a word as a Variant array of numeric phone ids.

Pronunciations represented in PhoneIds can be converted to phones with the IdToPhone method of theSpPhoneConverter object.

Syntax

Set: (This property is read-only)
Get: Variant = ISpeechLexiconPronunciation.PhoneIds

Parts

ISpeechLexiconPronunciation
The owning object.
Variant
Set: (This property is read-only)
Get: A Variant variable returning the value of the property.

Example

The following code snippet creates a lexicon, adds a pronunciation to it, then gets the pronunciation object, and formats the values of the PhoneIds as a string. The resulting string is " 46 12 33."

Dim objLEX As SpeechLib.SpLexicon
Dim objPRO As SpeechLib.ISpeechLexiconPronunciation
Dim colPRO As SpeechLib.ISpeechLexiconPronunciations
 
Set objLEX = New SpeechLib.SpLexicon

Call objLEX.AddPronunciation("one", 1033, SPSNoun, "w ah n")

'Get item(0) of the pronunciations collection
Set colPRO = objLEX.GetPronunciations("one", 1033)
Set objPRO = colPRO(0)

Dim varPhoneIds As Variant  'A Variant array of numeric values
Dim strOut As String        'Display the PhoneId values

varPhoneIds = objPRO.PhoneIds
strOut = Str(varPhoneIds(0)) & Str(varPhoneIds(1)) & Str(varPhoneIds(2))


You are reading help file online using chmlib.com

If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com
Partner sites: Logo Design, Simple Anti-Crisis Accounting Software, Voice Search for Web