Package com.dotcms.repackage.com.octo.captcha.component.word.wordgenerator

Examples of com.dotcms.repackage.com.octo.captcha.component.word.wordgenerator.DummyWordGenerator


      String captchaSession=captcha!=null ? captcha.getAnswer() : null;
      if(UtilMethods.isSet(captchaSession)){
       
        /*If we have a normal captcha in the session we should generate the word in the session instead of using
          a custom sound challenge*/
        WordGenerator word = new DummyWordGenerator(captchaSession.trim());
        SoundConfigurator configurator = new FreeTTSSoundConfigurator(voiceName, voicePackage, 1.0f, 100, 100);
        WordToSound word2sound = new FreeTTSWordToSound(configurator, captchaSession.length(), captchaSession.length());
        SoundCaptchaFactory factory = new SpellerSoundFactory(word, word2sound, new SpellerWordDecorator(";"));
        SoundCaptcha tCaptcha = factory.getSoundCaptcha();
        challenge = (AudioInputStream)tCaptcha.getChallenge();
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.com.octo.captcha.component.word.wordgenerator.DummyWordGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.