alan-ai / alan-sdk-android Goto Github PK
View Code? Open in Web Editor NEWConversational AI SDK for Android to enable text and voice conversations with actions (Java, Kotlin)
Home Page: https://alan.app/
Conversational AI SDK for Android to enable text and voice conversations with actions (Java, Kotlin)
Home Page: https://alan.app/
When i install ionic app in android phone my app screen is black.
because of i install following command
-npm install @alan-ai/cordova-plugin-alan-voice --save
-npm install @alan-ai/alan-button --save
In Android Studio, when trying to import app:alan:sdk in a project and building with it
You'll get:
Failed to resolve: com.budiyev.android:code-scanner:2.1.0
After some research
This used to be on JCenter which has become deprecated.
They indicated (yuriy-budiyev/code-scanner#120) they've moved to 'https://jitpack.io'. But when I add that as a dependencyresolution setting in Android Studio I still get errors.
settings.gradle:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
I've tested
implementation 'app.alan:sdk:4.12.0' and implementation 'app.alan:sdk:4.18.0'
Method 'onCommand(com.alan.alansdk.events.EventCommand)' is never used
its not show in yellow color
If the current behavior is a bug, please provide the steps to reproduce and a minimal demo of the problem (if possible).
Your bug will get fixed much faster if we can run your code.
Did it work in the previous versions?
alan-sdk-android - ???
Android OS version - ???
Please describe your question here or ask it on Stack Overflow:
http://stackoverflow.com/questions/tagged/alan-ai
Provide as much information as possible about your requested feature. Here are a few questions you may consider answering:
Can I change the wakeword 'Hey Alan' to something else?
i try to toast a message by uisng command but nothing happening
there not show bug but nothing hapening. i donlwoded your android examples. this is the code which i update android java main class. all things are working but how to impliment this
package app.alan.alan_example_integration_java;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast; // Import Toast class
import com.alan.alansdk.AlanCallback;
import com.alan.alansdk.AlanConfig;
import com.alan.alansdk.button.AlanButton;
import com.alan.alansdk.events.EventCommand;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.Objects;
public class MainActivity extends AppCompatActivity {
private AlanButton alanButton;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
AlanConfig config = AlanConfig.builder().setProjectId("a2068f552fcce88059fc8a17083aa1c42e956eca572e1d8b807a3e2338fdd0dc/stage").build();
alanButton = findViewById(R.id.alan_button);
alanButton.initWithConfig(config);
AlanCallback alanCallback = new AlanCallback() {
public void onCommand(final EventCommand eventCommand) {
try {
JSONObject command = eventCommand.getData();
String commandName = command.getJSONObject("data").getString("command");
Log.d("AlanButton", "onCommand: commandName: " + commandName);
// Show toast message
showToast("Received command: " + commandName);
} catch (JSONException e) {
Log.e("AlanButton", Objects.requireNonNull(e.getMessage()));
}
}
};
// Register callbacks
alanButton.registerCallback(alanCallback);
}
// Helper method to show toast message
private void showToast(String message) {
Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();
}
}
Did it work in the previous versions?
alan-sdk-android - ??? yes
Android OS version - ???
Please describe your question here or ask it on Stack Overflow:
http://stackoverflow.com/questions/tagged/alan-ai
Provide as much information as possible about your requested feature. Here are a few questions you may consider answering:
hello there , i watched your video ( Building a Voice Assistant for an Android App
)
I did exactly what you said to do in your video but an error message appears
:Could not find com.budiyev.android:code-scanner:2.1.0.
Required by:
project :app > app.alan:sdk:4.12.0
It some times is placed on the bottom-left corner, and on the bottom-right corner some other time, in a minimalistic application I created using Android Studio, and migrating the code to Kotlin, but I don't think there's an issue with the migration.
I am using Alan-android SDK in my App but after using the Alan sdk my android App size goes to huge. So my question is that is any way how to reduce APK size after releasing App on goole play store.
Can I hide the Alan button on specific screens?
When I try running my project, I get the following error:
Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [app.alan:sdk:4.7.13] gradle\caches\transforms-2\files-2.1\500091d2934feee2b54e43637f208bc2\jetified-sdk-4.7.13\AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 21,
or use tools:overrideLibrary="com.alan.alansdk" to force usage (may lead to runtime failures)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.