AudListen Module of the

English and Russian bilingual ghost.pl AI in Perl

Mens Latina in Latin -- MindForth for robots


1. Diagram of AudListen Strong AI Mind-Module


  /^^^^^^^^^^^\                        _____      /^^^^^^^^^^^\
 /visual memory\    | | |             /New- \    / AudListen   \
|   _______     |   | | |    _____   (Concept)--|-------------\ |
|  /old    \    |   | | |   /Old- \   \_____/   |  AudRecog   | |
| / image   \---|-----+ |  (Concept)----|-------|----------\  | |
| \ recog   /   |  a|C|f|   \_____/-----|-------|-------\  |  | |
|  \_______/    |  b|O|i|        |______V       |  c    |  |  | |
|               |  s|N|b|       /EnParser\      |   a   |  |  | |
|               |  t|C|e|       \________/      |    t  |  |  | |
|               |  r|E|r|   ________|______     |     s-/  |  | |
|               |  a|P|s|  /               \    |  e       |  | |
|               |  c|T| | (   InStantiate   )   |   a      |  | |
|   _______     |  t| | |  \_______________/    |    t-----/  | |
|  /new    \    |   |_|_|  / _____      _____   |  f          | |
| / percept \   |  /     \/ / En  \    / En  \  |   i         | |
| \ engram  /---|--\ Psy /-/ Nouns \--/ Verbs \ |    s        | |
|  \_______/    |   \___/  \_______/  \_______/ |     h-------/ |


2. Purpose

AudListen listens for auditory input.


3. Algorithm of the AudListen mind-module

3.A. Listening for input

In Perl and in Forth, the AI Mind simply provides a brief but recurring window of opportunity for human input. In JavaScript, the capture of keyboard characters is event-driven whenever the human user presses a key.

3.B. Looping through sufficient time for a human being to enter a communication.

The AI must wait enough time for user input that the user will be relaxed and unhurried in entering input. If there is no input, or if the user fails to press the "Enter" key, the AudInput module must shift attention away from AudListen to engage in internal thought.

3.C. Backspacing repeatedly to provide an exciting, jittery prompt for the user.

In Perl and especially in Forth, the AudListen module alternates between the presentation of a blank-space prompt and a backspace, so that the human user sees a jumping, jittery prompt inviting the typing in of user input.


4. Code of AudListen() from ghost294.pl First Working AGI in Perl


sub AudListen() {  # http://ai.neocities.org/AudListen.html
    my $unk = "";  # 2017-03-25:
    for ($attn = 0; $attn < 3000; $attn++ )  {  # 2017-03-27: start input wait-loop
      use Term::ReadKey;    # 2017-03-23: PBlackBook p. 543
      ReadMode('cbreak');   # 2017-03-23: PBlackBook p. 543
      if (defined ($unk = ReadKey(-1)) ) {  # 2017-03-25: PerlBlackBook 543
        $doa = $unk;  # 2017-03-25: only for early exit from AudInput
        $unk = uc $unk;  # 2017-03-31: change to uppercase (uc)  
        $pho = $unk; last;  # 2017-03-25:
      } else {      # 2017-03-25:
        print chr 8; # 2017-03-29: ASCII BACKSPACE-8
      }  # 2017-03-25  
      ReadMode('normal');  # PBlackBook p. 543
    }  # 2017-03-23: end of input waiting loop.
} # 2017-03-24: AudListen returns to AudInput()


5. Variables

$attn -- AudListen loop counter.

$doa (dead on arrival)-- flag for exiting from the AudInput() loop.

$pho -- a "phoneme" or character of auditory input.

$unk -- all-purpose $unk (unknown) for troubleshooting


6. Troubleshooting and Robotic Psychosurgery

6.1.a. Symptom: (Something goes wrong.)
6.1.b. Solution: (AI Mind Maintainer devises solution.)


7. Future Development

AudListen needs to be implemented in robots.

For security purposes, an AI Mind could be assigned to listen for particular noises or sounds at a large multitude of listening points spread across an entire property or installation, letting the event of a noise "awaken" the AI to investigate the source of the noise.

An AI could be devoted or employed in Search for Extraterrestrial Intelligence (SETI) to detect other AI entities across the universe.

An AI could be designed to listen for extremely low frequencies (ELF).


8. Resources


Please see

http://mind.sourceforge.net/listen.html

arrayForth 3 User's Manual:
http://www.greenarraychips.com/home/documents/greg/DB013-181226-aFUSER.pdf



9. AiTree of First Working AGI Mind-Modules


Return to top; or to
Tiananmen Square IV VI
javascript subreddit for AI Mind discussion;
Forth subreddit for MindForth discussion;
Perl subreddit for ghost.pl AI Mind Maintainers.
http://old.reddit.com/r/ControlProblem -- NOT SOLVED.
http://en.wikipedia.org/wiki/Natural_language_understanding -- solved.
Iskusstvenny Intellekt Programming Journal for Artificial Intelligence in Russian Language.
Converting ancient Latin AI into modern Russian AI
http://ai.neocities.org/Dushka.html -- tutorial Russian AI;
If you have any questions about the First Working AGI, please Join the Discussion.
Joint Artificial Intelligence Center (JAIC) -- the AI Manhattan Project.
Subject to change without notice.
Many thanks to NeoCities.
http://neocities.org/blog
http://trollheaven.blogspot.com