Javada matinni ovozli qilib oqiydigan dasturni qanday yozsa boladi

0 ovoz
49 marta ko‘rilgan
so‘radi 28 yanvar Farruxnet (817 bal)
Javada matinni ovozli qilib oqiydigan dasturni qanday yozsa boladi

1 ta javob

0 ovoz
javob berdi 28 yanvar MrHope (781 bal)
tahrirlandi 28 yanvar MrHope
Kerakli kutubxonalarni yuklab olasiz.

siz kutgan darajada ishlamasligi mumkin
import java.util.Locale;
import javax.speech.Central;
import javax.speech.synthesis.Synthesizer;
import javax.speech.synthesis.SynthesizerModeDesc;
public class TextRead  
{
    public static void main(String[] args)
    {
        try{
            // set property as Kevin Dictionary
            System.setProperty("freetts.voices",
                "com.sun.speech.freetts.en.us.cmu_us_kal.KevinVoiceDirectory");
            // Register Engine
            Central.registerEngineCentral("com.sun.speech.freetts.jsapi.FreeTTSEngineCentral");
            // Create a Synthesizer
            Synthesizer synthesizer =                                         
                Central.createSynthesizer(new SynthesizerModeDesc(Locale.US));     
            // Allocate synthesizer
            synthesizer.allocate();        
            // Resume Synthesizer
            synthesizer.resume();   
            // speaks the given text until queue is empty.
            synthesizer.speakPlainText("Yordam.uz", null);         
            synthesizer.waitEngineState(Synthesizer.QUEUE_EMPTY);
            // Deallocate the Synthesizer.
            synthesizer.deallocate();                                 
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
    }
}

Assalomu alaykum, yordam.uz saytimizga xush kelibsiz.

Bu saytda o`zingizni qiziqtirgan savollarga javob olishingiz va o`z sohangiz bo`yicha savollarga javob berishingiz mumkin.

Bizning Oilamizga a'zo bo`lganingiz uchun chuqur Minnatdorchilik bildiramiz !!!

Telegram kanal YordamUzRss

...