-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaudioloop.py
47 lines (41 loc) · 2.06 KB
/
audioloop.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import ears
import pickle
#import actions
import audiocortex
#import speechLib
import clusterResolve
#import textflow
#checks, field all info, push inputs to causal_model, return path, enact target function
#Initializing speech2text generator
class audio_loop:
print("< ------- Loading CM ------ >")
print("< ------- CM Loaded -------- >")
print("< ------ Initializing Ear ------ >")
ear = ears.listen()
while(next(ear)!=True):
time.sleep(0.01)
print("< -- Initializing Audio Cortex -- >")
audcortex = audiocortex.audio_cortex()
print("< -- Audio Cortex Initialized --- >")
print("< ------- Loading Voice Engine ------ >")
creng = clusterResolve.voice_engine()
while(next(creng)!=True):
time.sleep(0.01)
print("< ------- Voice Engine Online ------ >")
print(" ")
print(" ")
print(" ")
print(" ")
print("#̷̨͕̝͚̬͋~̷͇͔̿͊̅̓̿̈͗͋#̵̬̭̲̞̺͆͆̄̿͛͐̇͋̎~̴̨̘̔́͑̌#̶̧̡̨̰͉̣̣́͘~̴̡͙̒̎̇̌̃͛ͅ#̷̛̱̰̒̇̋̿͠ ̷̨̨͍̠͎̤͉̱͎̦͆͌̄͊͑͘̚Ê̴̘̬͕̰͔n̴̠̲͈̠̺̥̜̹̙̲̓͆͋̆̉̏͂́͆̂t̶͖͓̪̭͖͕̄é̸̢̯̖̼͇r̷̨̙͓̽̾̿̕ͅí̷͇͙̞͍̘̣̰̠̦̒͂̔n̴̢̮͖̮̦͍̈̍̈͋̂̃͌̚g̷͕͖̟͒̆̈͌͊ ̵̡͎̙̻̰̎́͠T̴̞͖͔̮̿̀͒̆̀̒̊̄̋͠h̷̢̨̨̡͉̹̖̖͚̋̆́ͅe̴̢͚̤̫͍̝̤̠͑̓͒̋͒̕͜͜͠ ̵̬̦̍͂̅͐͝L̵̻̫̯̱͕͗̓̇́͊̚͝ợ̴͙̫̩̽̌̐̊̍̆o̶̢̼̭͎͉͇̭̠̼͗̈́̊͋̒̓ͅp̸̪̖̻̼͕͔̭̮͎̱͐͐ ̶͇̫̣̹̥̖̽͒̉̔̅ͅ#̷̢͆̇̋͊͒̊̕̚~̷̤̗̱̯̘̿͐̃̀͊͝#̵͚̘̼̝̱̼͙̻̘̗͛̑͗̓̾͘͠͝~̵̯̱̖͙̣͌̅̿̓̐̿͝#̶̡̼̬̰͇̙͐̾̈́̅͜~̷̭̼͛̍̇̋̎̌̿͂͊͝#̵̲̙͚̠͍̈́̂͛͜")
print(" ")
print(" ")
print(" ")
print(" ")
while(True):
#<-input block->
#check for audio
current_audio_output = next(ear)
audcortex.passIn(current_audio_output[1], current_audio_output[0])
print(current_audio_output[1])
next(creng)
current_voice_val = creng.send(current_audio_output[0])