From d03d52a098adce4106d5b0296b190ddc51eb4b60 Mon Sep 17 00:00:00 2001 From: ange Date: Fri, 23 Mar 2018 14:03:48 +0100 Subject: [PATCH] changed file location of ttssr scripts --- Makefile | 2 +- ocr/output.txt | 124 +++++++++++++++++------ src/{ => ttssr}/audio_transcribe.py | 0 src/{ => ttssr}/ttssr-loop-human-only.sh | 4 +- src/{ => ttssr}/write_audio.py | 0 5 files changed, 97 insertions(+), 33 deletions(-) rename src/{ => ttssr}/audio_transcribe.py (100%) rename src/{ => ttssr}/ttssr-loop-human-only.sh (74%) rename src/{ => ttssr}/write_audio.py (100%) diff --git a/Makefile b/Makefile index 4d18fb7..c0c31d5 100644 --- a/Makefile +++ b/Makefile @@ -109,7 +109,7 @@ endif ttssr-human-only: ocr/output.txt ## Loop: text to speech-speech recognition. Dependencies: espeak, pocketsphinx - bash src/ttssr-loop-human-only.sh ocr/output.txt + bash src/ttssr/ttssr-loop-human-only.sh ocr/output.txt chatbook: ocr/output.txt #chatbot based on the knowledge of the scans Dependencies: nltk_rake, irc, nltk python3 src/chatbook.py diff --git a/ocr/output.txt b/ocr/output.txt index 5b14c3b..7eaefd3 100644 --- a/ocr/output.txt +++ b/ocr/output.txt @@ -1,37 +1,101 @@ - +Any one is one having been that one Any one is such a one. - +Any one having been that one is one remembering something oi such a thing, is one +remembering having been that one. -ZEROS + ONES DIGITAL WOMEN 4|» THE NEWTECHNOCULTURE - -moments of unknown, disconnected lives, ”invisible voices -conducted through the tips of her fingers." - -Poised as an interface between man and the world, she is -also wired to a network of digital machines: typists connected to -QWERTY alphabets, bodies shaped by the motion of the keys, -one hundred words a minute, viral speed, Thousands oi opera -tors, relays, calls, exchanges humming in Virtual conjunction, -learning the same phrases, flipping the same switches, -repeating the same responses, pushing plugs into the -answering iacks, maybe two hundred, three hundred times an -hours She has "a fingertip mastery of the ringing. listening, dial, -and other keys on her key shelf; of the row or rows of cords for -making connections; of the location and meaning of all parts of -the honey combed formation of jacks and trunks for recording, -for switching, for toll circuits, for tandem, for information-" It -becomes second nature it grows on her, "Having done this stufl -a few hundred thousand times, you become quite good at it. In -fact you're plugging, and connecting, and disconnecting ten, -twenty, forty cords at a time." After a while these processes -become "quite satisfying in a way, rather like weaving on an -upright loom," - -102 +Each one having been one is being one having been that one. Each one haying been - +one is remembering something of this thing, is remembering something or haying been +that one - +Each one is one. Each one has been one. Each one being one, each one havrng been + +one is remembering something or that thing. + +Each one is one. Each one has been one. Each one is remembering that thing. + +Each one is one. Each one has been one. That is something that any one haying been + +one, any one being one is having happen Each one being one is haying it happen that +that one is being that one. Each one having been one is one havrng had it happen that +that one has been that one. + +Each one is one. Any one is the one that one is Each one is one. + +One who is one is remembering that she is one forgetting anything. One who is one is +remembering that she is forgetting everything again and again She is remembering +this thing She is not interested in this thing She is remembering this thing and she is +remembering that this is a quite necessary thing, it is quite a necessary thing that she IS +remembering that she is iorgetting anything. + +She is to getting anything This is not a disturbing thing, this is not a distressing thing, +this is not an important thing She is iorgetting anything and she is remembering that +thing, she is remembering that she is forgetting anything. + +She is ore being one remembering that she is forgetting anything She is one not +objecting to being one remembering that thing, remembering that she is forgetting +anything She is one objecting to there being some objecting to being ones forgetting +anything She is one objecting to any one being one remembering that they are not + +iorgetting anything She is one objecting to any one objecting to her being one +forgetting anything She is not one remembering being one objecting to any one +objecting to her being one iorgetting anything She is one remembering that she is one +objecting to being one remembering that they are not forgetting anything. She is one +remembering something of being one objecting to some being one objecting to +forgetting anything + +She is one forgetting anything. She is one remembering something of this thing She is +one repeating this thing repeating remembering something of forgetting anything, + +She is one remembering that she has been having something. She is one remembering +something of this thing She has been having something, she is having something, she +is remembering something of this thing. She is not objecting to having something, she +is having something she is remembering something of this thing + +She is one being that one being one having something and remembering something of +that thing She is one being one and she is iorgetting anything and she is remembering +being one forgetting anything. + +Any one she is kissing is one she is kissing then, not kissing again and again, not +fissing and kissing, any one she is kissing is one she kissed then, is one she did kiss +then. one she kissed some then + +Any one she is kissing is one needing something then, needing kissing, needing +anytin‘ng first then, needing some kissing then. Any one she is kissing is one having +been kissed then, having been kissed some then and she was the one who was kissing +that one some just then Any one she was kissing was one whom she was kissing just + +from hows Vests to i narrating Ouhry + that Any one she was kissing was one who might have been needing something then, + +needing anything then, needing kissing then, needing a little kissing then, needing any ‘» +Mtg anything then, needing kissing then, needing a little kissing then, needing any + +kiss!!!) then, needing something then, needing kissing then + +She was one living and remembering that she had enough for this thing, enough for + +than She was one remembering that she had enough for being livrng and she was +runemben'ng that she could always be needing that thing needing having enough to be +m She could remembering to remind herself and any one of this thing, she could +W that thing, she could remember to be reminded of that thing. She could +W to beone reminding herself, she could remember to be one havmg any one +rewind her quite often of this thing that she could remember that she had enough and +wot“ be always having enough to be livrng. She could remembering that she was +needing this thing needing having enough always enough for livmg. She could +rentemtler enough oi reminding any one of this thing. She could remember this thing +rectum reminding herself of this thing. She could remember something of being +rein-Iced of this thing. She could remember this thing, she could remember a good +deal of knowing that she was havmg enough for berng living and that she could always +be neodng having enough for liVing. She could remember this thing, she could qurte +new that thing. + +She was one forgetting anything. She was remembering something of that thing of +toasting anything She could always remember something of that thing, remember +m of forgetting anything. + +in giving she was giving what she had then remembered to give then In gwing she + diff --git a/src/audio_transcribe.py b/src/ttssr/audio_transcribe.py similarity index 100% rename from src/audio_transcribe.py rename to src/ttssr/audio_transcribe.py diff --git a/src/ttssr-loop-human-only.sh b/src/ttssr/ttssr-loop-human-only.sh similarity index 74% rename from src/ttssr-loop-human-only.sh rename to src/ttssr/ttssr-loop-human-only.sh index 6a098ce..9ec2b9c 100644 --- a/src/ttssr-loop-human-only.sh +++ b/src/ttssr/ttssr-loop-human-only.sh @@ -5,9 +5,9 @@ head -n 1 $1 > output/input0.txt while [[ $i -le 10 ]] do echo $i cat output/input$i.txt - python3 src/write_audio.py src/sound$i.wav 2> /dev/null + python3 src/ttssr/write_audio.py src/sound$i.wav 2> /dev/null play src/sound$i.wav repeat 5 2> /dev/null & #in the background the sound, without it all the sounds play one by one//2 is stderr - python3 src/audio_transcribe.py sound$i.wav > output/input$((i+1)).txt 2> /dev/null + python3 src/ttssr/audio_transcribe.py sound$i.wav > output/input$((i+1)).txt 2> /dev/null sleep (( i++ )) done diff --git a/src/write_audio.py b/src/ttssr/write_audio.py similarity index 100% rename from src/write_audio.py rename to src/ttssr/write_audio.py