AudListen Module of First Working AGI

AudListen module of the

First Working AGI Mind in JavaScript

MindForth for robots -- ghost.pl for webservers


1. Diagram of the AudListen 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


3. Algorithm


4. Code of AudListen() from ghost.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. Troubleshooting and Robotic Psychosurgery

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


6. Variables

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


7. Future Development


8. Resources


Please see

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


9. AiTree of First Working AGI Mind-Modules


Return to top; or to
javascript subreddit for AI Mind discussion;
Forth subreddit for MindForth discussion;
Perl subreddit for ghost.pl AI Mind Maintainers.