This document was generated from CDN thread
Created by: null on 15-06-2005 09:59:30 PM
Hi
Following is my class
public class MyClass implements VoiceElementInterface
{
public VoiceElementConfig getConfig( String name, ElementAPI elementAPI,
VoiceElementConfig defaults) throws AudiumException
{
defaults = new VoiceElementConfig();
VoiceElementConfig.AudioGroup initialAudioGroup = defaults.new AudioGroup("initial_audio_group", true);
VoiceElementConfig.StaticAudio beforeQuote = defaults.new StaticAudio("Hello your numbers are", null);
//get number from database
String q1="100";
String q2="200";
VoiceElementConfig.SayItSmart sayQOne = defaults.new
SayItSmart("com.audium.sayitsmart.plugins.AudiumSayItSmartNumber",
initialAudioGroup.addAudioItem(beforeQuote);
initialAudioGroup.addAudioItem(sayQOne);
defaults.setAudioGroup(initialAudioGroup);
return defaults;
}
}
And Following are the error message
MyClass .java:51: non-static variable STANDARD_OUTPUT_FORMAT cannot be referenced from a static context
AudiumSayItSmartNumber.STANDARD_OUTPUT_FORMAT,q1);