| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Iris is an application that helps users generate code without typing anything. Any user can just speak into the application and the application will generate code related to that. The best thing is, you can talk in free-form (natural language) and we parse everything to generate the code! Currently we support only English to Python.
The approach we adopt is quite simple. We get speech from user, pass it to Google Speech API and get the text back, pass that text through to Microsoft Luis for intent classification, get back the JSON response, and parse the response for appropriate code generation. The code generation and processing is handled through our custom VS Code extension (written in Typescript).
| intents | intents | intents |
|---|---|---|
| add_function | add_main_function | delete_line |
| add_class | add_try_catch | goto_line |
| add_if_else | add_variables | run_file |
| add_newline | add_while | save_file |
| add_breakpoint | call_function | undo_changes |
The main modules needed to setup the application and get everything running are:
You will need Python (preferably Python3), all packages listed in requirements.txt, and npm package for Electron app.
The Python package requirements (pip) are (also available in requirements.txt for easy install):
pika==0.12.0 requests==2.19.1 SpeechRecognition==3.8.1 google==2.0.1 google-api-core==1.4.1 google-api-python-client==1.7.4 google-auth==1.5.1 google-auth-httplib2==0.0.3 google-cloud-speech==0.36.0 google-cloud-texttospeech==0.2.0 googleapis-common-protos==1.5.3
Run pip install -r path/to/requirements.txt for easy install.
The following steps are to run the package:
NOTE:
Please use VSCode Insiders to build the extension. Normal VSCode does not build the extension for the development build.
For testing,
Current issues include:
Made at HackHarvard 2018.
Devpost submission: Link
Made with <3 by LitLabs.
| Back | FazBrowse Home | New Git URL |