Skip to content

UoB-IBM-TextMessaging-Team/ar_ai_textmessaging_unity

Repository files navigation

AR_AI_TextMessaging

*Work in progress..
A text messaging app powered by IBM Watson.

Team Members

*Work in progress..

Build Instruction

The build requirement including:

Google flutter (3.0.0+) installation(https://docs.flutter.dev/get-started/install)

Unity 2022.1.1f1 (with android NDK 21) installation(https://unity3d.com/get-unity/download)

To build the app, you just need to:

  1. (First time init/If the unity project been changed/) Open the unity project in/unity/ARView-IBM-TextMessaging, In File select build setting and switch platform toandroid. Then Menu -> Flutter -> Export Android
  2. Setting upandroid/local.properties. If you excute flutter run, a android/local.properties will automatically generates. But you still need to set flutter.compileSdkVersion,flutter.minSdkVersion and ndk.dir. Following varibles is essential to the project build:
    sdk.dir=<android SDK location>
    flutter.sdk=<Flutter location>
    flutter.compileSdkVersion=33
    flutter.minSdkVersion=24
    ndk.dir=<android NDK location> (You can find your android NDK path in Unity->Menu->Edit->Preferences->External Tools)
  3. (Highly recommended) Installing flutter plugin in your working IDE
  4. flutter run

If you got any installation problem, check your flutter installation using flutter doctor. Make sure android/local.properties are set correctly. Further question please dm @Cheong43 .

Unity Project Folder

/unity is the unity project location, ARView-IBM-TextMessaging is the current unity work dir. The flutter-unity-view-widget-plugin and IBM Watson Unity sdk already installed, please do not making any change on them.

If you would like to build the unity project independently, just use the unity build and run

Trouble Shooting

*Work in progress..
Any "redeclaration" error when building, just run flutter clean, it will clean the pub cache.

How to use TTS in your script

add code

GameObject.Find("TheText").SendMessage("sendTextToTTS", s);

to your script.

s is the string you want to reading(the text user send or recevice on our app)

About

AR & AI text messaging project unity playground.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •