org.wcb.plugins.speech
Class Translator

java.lang.Object
  extended byorg.wcb.plugins.speech.Translator

public class Translator
extends java.lang.Object

This class does holds some very simple rules on taking a text and formating it into an allophone. The concatination of the sounds creates the words that are heard and understood. For more details on this read the java world article http://www.javaworld.com/javaworld/jw-08-2001/jw-0817-javatalk_p.html

Author:
wbogaardt

Constructor Summary
Translator()
          Deprecated.  
 
Method Summary
 java.lang.String getPhoneWord(java.lang.String words)
          Get the phoneme of the word
 java.util.Vector getWords(java.lang.String words)
          Get the words by parsing the string pipe
static void main(java.lang.String[] args)
          Main method to access this class from the command line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Translator

public Translator()
Deprecated.  

Creates a phonem translator this class is old

Method Detail

main

public static void main(java.lang.String[] args)
Main method to access this class from the command line

Parameters:
args - string of words to translate

getWords

public java.util.Vector getWords(java.lang.String words)
Get the words by parsing the string pipe

Parameters:
words - The string of words with pipes separated
Returns:
A vector of words to say

getPhoneWord

public java.lang.String getPhoneWord(java.lang.String words)
Get the phoneme of the word

Parameters:
words - The word to determin the phonem rules
Returns:
The piped characters which can be understood as phonems


Copyright © 1999-2004 Walter Bogaardt. All Rights Reserved.