1
0
mirror of https://github.com/MarkParker5/STARK.git synced 2025-07-12 22:50:22 +02:00

create Text2Speech (from google cloud tts api lib)

create SmallTalk.void
This commit is contained in:
dQz6tMwk8rJqvDR
2020-06-22 17:01:44 +03:00
parent 217195d119
commit 32e808583b
565 changed files with 104862 additions and 46 deletions

View File

@ -81,6 +81,7 @@ class Command(ABC):
@staticmethod
def find(string):
string = string.lower()
chances = {}
list = Command.getList()
for i, obj in enumerate( list ):
@ -93,7 +94,7 @@ class Command(ABC):
if( sum( chances.values() ) ):
top = max( chances.values() ) / sum( chances.values() ) * 100
else:
return None
return list[0]
for i, chance in chances.items():
if chance == max( chances.values() ):
return list[i]