Search in sources :

Example 1 with PoolMultiExec

use of nars.exe.PoolMultiExec in project narchy by automenta.

the class NARchy method ui.

public static NAR ui() {
    // u.forEach(System.out::println);
    // u.put("boot", new Date().toString());
    // Util.pause(100);
    // u.get("boot", (b)->{
    // System.out.println(b);
    // });
    NAR nar = new DefaultNAR(8, true).exe(new PoolMultiExec(/*WorkerMultiExec*/
    new Focus.AERevaluator(new XoRoShiRo128PlusRandom(1)), 512)).time(new RealTime.CS().durFPS(10f)).get();
    ConjClustering conjClusterB = new ConjClustering(nar, BELIEF, (Task::isInput), 16, 64);
    // ConjClustering conjClusterG = new ConjClustering(nar, GOAL, true, false, 16, 64);
    // auxiliary modules, load in background thread
    nar.runLater(() -> {
        User u = User.the();
        new NARAudio(nar);
        new NARVideo(nar);
        NARHear.readURL(nar);
        {
            NARSpeak s = new NARSpeak(nar);
            s.spoken.on(new NativeSpeechDispatcher()::speak);
        // new NativeSpeechDispatcher(s);
        }
    // //new NoteFS("/tmp/nal", nar);
    // InterNAR i = new InterNAR(nar, 8, 0);
    // i.recv.preAmp(0.1f);
    // i.runFPS(2);
    });
    return nar;
}
Also used : User(jcog.User) NativeSpeechDispatcher(spacegraph.audio.speech.NativeSpeechDispatcher) XoRoShiRo128PlusRandom(jcog.math.random.XoRoShiRo128PlusRandom) PoolMultiExec(nars.exe.PoolMultiExec) ConjClustering(nars.op.stm.ConjClustering) NARVideo(nars.video.NARVideo) NARSpeak(nars.op.language.NARSpeak) RealTime(nars.time.RealTime) NARAudio(nars.audio.NARAudio)

Aggregations

User (jcog.User)1 XoRoShiRo128PlusRandom (jcog.math.random.XoRoShiRo128PlusRandom)1 NARAudio (nars.audio.NARAudio)1 PoolMultiExec (nars.exe.PoolMultiExec)1 NARSpeak (nars.op.language.NARSpeak)1 ConjClustering (nars.op.stm.ConjClustering)1 RealTime (nars.time.RealTime)1 NARVideo (nars.video.NARVideo)1 NativeSpeechDispatcher (spacegraph.audio.speech.NativeSpeechDispatcher)1