You've already forked STARK
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:
@ -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]
|
||||
|
Reference in New Issue
Block a user