/SmartSight

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

AugmentOS-Cloud-Example-App

Install AugmentOS on your phone

AugmentOS install links: AugmentOS.org/install

(Easiest way to get started) Set up ngrok

  1. brew install ngrok

  2. Make an ngrok account

  3. Use ngrok to make a static address/URL

Register your APP with AugmentOS

image
  1. Navigate to console.AugmentOS.org

  2. Click "Sign In", and log in with the same account you're using for AugmentOS

  3. Click "Create App"

  4. Set a unique package name like com.yourName.yourAppName

  5. For "Public URL", enter your Ngrok's static URL

  6. In the edit app screen, add the microphone permission

Get your APP running!

  1. Install bun

  2. Create a new repo from this template using the Use this template dropdown in the upper right or the following command: gh repo create --template AugmentOS-Community/AugmentOS-Cloud-Example-App

    Create repo from template

  3. Clone your new repo locally: git clone <your-repo-url>

  4. cd into your repo, then type bun install

  5. Set up your environment variables:

    • Create a .env file in the root directory by copying the example: cp .env.example .env
    • Edit the .env file with your app details:
      PORT=3000
      PACKAGE_NAME=com.yourName.yourAppName
      AUGMENTOS_API_KEY=your_api_key_from_console
      
    • Make sure the PACKAGE_NAME matches what you registered in the AugmentOS Console
    • Get your API_KEY from the AugmentOS Developer Console
  6. Run your app with bun run dev

  7. To expose your app to the internet (and thus AugmentOS) with ngrok, run: ngrok http --url=<YOUR_NGROK_URL_HERE> 3000

    • 3000 is the port. It must match what is in the app config. For example, if you entered port: 8080, use 8080 for ngrok instead.

Next Steps

Check out the full documentation at docs.AugmentOS.org

Subscribing to events

You can listen for transcriptions, translations, and other events within the onSession function.