Voice[] validVoices = new Voice[count];
javax.speech.synthesis.Voice[] validVoices = new javax.speech.synthesis.Voice[count];
    public Voice[] getVoices() {        List voiceList = new LinkedList();        Voice[] voices = super.getVoices();        int count = 0;        for (int i = 0; i < voices.length; i++) {            FreeTTSVoice freettsVoice = (FreeTTSVoice) voices[i];            try {                freettsVoice.validate();                voiceList.add(freettsVoice);                count++;            } catch (ValidationException ve) {                // don't do anything here if a FreeTTSVoice is invalid            }        }        Voice[] validVoices = new Voice[count];        voiceList.toArray(validVoices);                return validVoices;    }