public class VocalizationSynthesizer extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
f0ContourImposeSupport |
protected org.apache.log4j.Logger |
logger |
protected VocalizationUnitFileReader |
unitFileReader |
protected VocalizationSelector |
vSelector |
protected VocalizationSynthesisTechnology |
vSynthesizer |
Constructor and Description |
---|
VocalizationSynthesizer(Voice voice) |
Modifier and Type | Method and Description |
---|---|
String[] |
listAvailableVocalizations()
List the possible vocalization names that are available for the given voice.
|
AudioInputStream |
synthesize(Voice voice,
AudioFileFormat aft,
Element domElement)
Handle a request for synthesis of vocalization
|
protected VocalizationSynthesisTechnology vSynthesizer
protected VocalizationSelector vSelector
protected VocalizationUnitFileReader unitFileReader
protected boolean f0ContourImposeSupport
protected org.apache.log4j.Logger logger
public VocalizationSynthesizer(Voice voice) throws MaryConfigurationException
MaryConfigurationException
public AudioInputStream synthesize(Voice voice, AudioFileFormat aft, Element domElement) throws Exception
voice
- the selected voiceaft
- AudioFileFormat of the output AudioInputStreamdomElement
- target xml element ('vocalization' element)Exception
- if domElement contains 'variant' attribute value is greater than available number of vocalizationspublic String[] listAvailableVocalizations()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.