org.speakright.core.render
Class AudioMatcher
java.lang.Object
org.speakright.core.render.AudioMatcher
public class AudioMatcher
- extends java.lang.Object
Audio matcher checks in an XML file for audio file replacements for TTS text.
An app will often send a list of phrases off for recording by professional voice talent.
When the audio files are received back, you only need to make an audiomatch.xml file
with each tts phrase and its audio file. No changes to the flow objects are required.
SpeakRight's prompt rendering will use AudioMatcher to find and replace any phrases in
audiomatch.xml with their audio files.
This is done as the last step of prompt rendering, so any TTS, even from evaluated items
such as {$M.city} can be replaced.
Replacement is done at the item level; you can't do replacements across the boundary of
ptext items.
- Author:
- IanRaeLaptop
|
Method Summary |
java.lang.String |
lookup(java.lang.String textToMatch)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AudioMatcher
public AudioMatcher(SRLocations locations)
lookup
public java.lang.String lookup(java.lang.String textToMatch)