Open Augmentative and Alternative Communication App
AI can be used to help people communicate!
This project uses OpenAI Vector embeddings to translate a user’s text/speech into easy to understand AAC symbols. The OpenAAC app uses OpenAI to match symbols to text to convert natural language to AAC pictograms.
Update: If there isn’t a high match from the Vector DB, OpenAAC will use OpenAI DALL-E 3 to generate a symbol’s image.
The goal is to assist in communication between neurotypical and nonneurotypical users via mobile devices.
My name is Ronan O’Driscoll. I am a software developer with an autistic son. Through therapy and assisted communication tools, his ability to communicate has improved considerably from when he was largely non-verbal.
However, it is often a struggle to pass back and forth his iPad to communicate via his AAC app. So I thought I would create a universal mobile app for me to also input his symbols. We use the Speak4Yourself app, but it is only available on iOS. I wanted to create a free, open source alternative that could be used on any mobile device.
The OpenAAC App can work with any AAC symbol set, but you need to generate and upload them manually. The
db/ folder in this repo has a number of tools to prepare and upload and convert your images as vector embeddings to the Pinecone online vector database.
app/open_aac folder contains the Flutter app that will use the Pinecone database to match text to symbols.
AI is a powerful tool. I hope this project can help people communicate better.
AAC Symbol Sets
- Open Symbols library
- Free download of the Speak4Yourself AAC symbols here: https://smartysymbols.com/download/free-speak-for-yourself-printable/
- Flutter: Cross platform mobile app framework
- Pinecone: Pinecone vector database
- Langchain: LangChain provides a set of ready-to-use components for working with language models and the concept of chains, which allows to “chain” components together to formulate more advanced use cases around LLMs.
- OpenAI Embeddings: OpenAI’s text embeddings measure the relatedness of text strings
- OpenAI DALL-E 3
- Install Flutter: https://flutter.dev/docs/get-started/install
- Create a Pinecone account: https://www.pinecone.io/. You can use the free tier for this project.
- Create an OpenAI API account: https://platform.openai.com/. We will use the “text-embedding-ada-002” model which is priced very cheaply ($0.0001/1K tokens as of January 2024). See this page for more details. For image generation, we will use “dall-e-3”, which is free of charge (as of January 2024).
- Clone this repo
- Follow instructions in the
db/folder to create a Pinecone database and upload your AAC symbols.
- Copy the generated icons to the
app/open_aacfolder to run the app locally.
- Install on your android device by connecting it to the computer using
flutter install. See this page for more details.
- Open the app
- Click on the settings icon in the top right corner.
- Enter your OpenAI and Pinecone API keys, along with Pinecone Project ID and Environment.
- Hit Save
- Return to the main screen
- Enter a sentence in the text box
- Press the search button
- The app will return a list of symbols matching the text
- The Clear button next to the text box will clear the text and symbols
- A local cache of words to images to cut down on API calls
Use a Large Language Model (Dalle-3) to generate symbols when there are low confidence matches in the vector DB.
- Better integration with other AAC symbol sets
- Allow users to upload their own custom symbols
- Offline mode, so that the app can be used without an internet connection and/or Pinecone database. Requires local vector database.
- Text to speech option: A button to read out the text using the device’s text to speech engine. This would also highlight the symbols as they are spoken.
- Make freely available on the Google Play Store and Apple App Store