*Work in progress..
A text messaging app powered by IBM Watson.
*Work in progress..
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:
- (First time init/If the unity project been changed/) Open the
unityproject in/unity/ARView-IBM-TextMessaging, InFileselectbuild settingand switch platform toandroid. Then Menu -> Flutter -> Export Android - Setting up
android/local.properties. If you excuteflutter run, aandroid/local.propertieswill automatically generates. But you still need to setflutter.compileSdkVersion,flutter.minSdkVersionandndk.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) - (Highly recommended) Installing flutter plugin in your working IDE
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 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
*Work in progress..
Any "redeclaration" error when building, just run flutter clean, it will clean the pub cache.
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)