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

Object: SpPhoneConverter

IdToPhone Method


The IdToPhone method converts an array of phoneme IDs to a string of phoneme symbols.

If the IdToPhone method is called before setting the SpPhoneConverter's LanguageId property, an SPERR_UNINITIALIZED error will occur.


SpPhoneConverter.IdToPhone(
     IdArray As Variant
) As String

Parameters

IdArray
An array of phoneme IDs or a single phoneme ID.

Return Value

A String variable.


Example

The following Visual Basic form code demonstrates the use of the IdToPhone. The application assigns values to an array and then displays the resulting phoneme string.

To run this code, create a form with the following control:

  • A label called Label1
  • Paste this code into the Declarations section of the form.

    Dim objPhoneConverter As New SpPhoneConverter
    
    Private Sub Form_Load()
    ' US English
    objPhoneConverter.LanguageId = 1033
    
    ' Get the phoneme symbols of the phoneme id 1
    objPhoneConverter.IdToPhone (1)
    
    Dim ids(2) As Integer
    ids(0) = 1
    ids(1) = 2
    ids(2) = 3
    
    ' Get a string of phoneme symbols for the specified phoneme ids, separated by space.
    Label1.Caption = """" & objPhoneConverter.IdToPhone(ids) & """"
    End Sub
    


    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