AlexaAndroid | sample app to abstract access
kandi X-RAY | AlexaAndroid Summary
kandi X-RAY | AlexaAndroid Summary
A library and sample app to abstract access to the Amazon Alexa service for Android applications.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Checks if the queue is playing
- Play an item .
- Opens the down channel .
- Sends a text message .
- Creates a WAV recording as a byte array
- Gets an O2 access token .
- Send the given text to the server .
- Adds input audio data to the codec .
- Returns an OkHttpClient .
- Record audio .
AlexaAndroid Key Features
AlexaAndroid Examples and Code Snippets
Community Discussions
Trending Discussions on AlexaAndroid
QUESTION
I am planning to develop an Android App with Alexa Voice Service integration to develop an app like Reverb. Below is what I have tried...
Checked AVS Device SDK, could get a proper guide to implement it in Android.
Checked https://github.com/willblaschko/AlexaAndroid , wasnt able to get it work.
Planned to implement myself, below is what I have done.
a. Integrated Login framework, was able to successfully login and get the token.
b. Created a sound recorder, was able to record and playback locally.
c. Created request to sent audio to https://avs-alexa-eu.amazon.com/v20160207/events
[UPDATED]
After changing the shortArray to Byte array I am getting the response but now the problem is that MediaPlayer is unable to play the response mp3, it gives error at prepare
...ANSWER
Answered 2018-May-30 at 09:40I figured it out, I was using a LoggingInterceptor for OKHttp and it use to convert the bytes to string and log it and due to some reason, it is unable to recognize some characters and it gives some junk values for those characters and due to some reason, those values persisted back in the byte array also... which used to give malformed mp3 file. After removing the interceptor...it started working... so step 1 is done...more to go.
QUESTION
How can i fix?
app.gradle
...ANSWER
Answered 2018-Jan-25 at 09:00I resolved this problem.
In project had library ie compile files('--/libs/listviewanimations_lib-core-slh_3.1.0.jar')
in its lib folder exist com.android.support:support-v4.jar
file so gradle refer its jar and gives error NoSuchMethodError: No static method getDrawable in class ContextCompat; or its super classes declaration of 'android.support.v4.content.ContextCompat'
becasue getDrawable function not declared in to com.android.support:support-v4.jar
file.
After removing com.android.support:support-v4.jar
from lib folder and clean, rebuild my android project and synchronized with gradle and its work for me.
QUESTION
I am new to Alexa development and I found a sample library in GitHub.
https://github.com/willblaschko/AlexaAndroid
It get your voice command and response from amazon in Voice. Is there away to get the text response e.g JSON format so I can get the response and take an appropriate action
ie. If asking a weather forecast, i would have a response as text so I can show up on a screen.
...ANSWER
Answered 2017-Mar-10 at 11:20No Currently you will only get the response as in audio format. There was some article about Amazon Alexa where selected developers will get access to the APIs to display cards in their applications.
But as far as your question goes Amazon doesnt return the reponse in the text format.
Best Regds
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AlexaAndroid
You can use AlexaAndroid like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the AlexaAndroid component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page