diff --git a/main.py b/main.py index 2ea47b7..00a8b99 100644 --- a/main.py +++ b/main.py @@ -4,6 +4,7 @@ import sys import warnings from speech import Speech +from syntax import Syntax if not sys.warnoptions: warnings.simplefilter("ignore") @@ -17,6 +18,8 @@ def _main(): speech_server = 'http://vosk.athene.tech' text = Speech().run(wav_file, speech_server) print(f'Text: {text}') + parse_tree = Syntax().run(text) + print(f'Parse tree: {parse_tree}') if __name__ == '__main__': diff --git a/syntax.py b/syntax.py new file mode 100644 index 0000000..52a52a2 --- /dev/null +++ b/syntax.py @@ -0,0 +1,3 @@ +class Syntax: + def run(self, text: str) -> str: + return text