google-now

How to get audio amplitude with speech recognizer?

泄露秘密 提交于 2019-12-06 11:56:45
I'm trying to make a custom dialog while speech recognizing instead of using the official one. I got that part, but when then I decided to show the amplitude of the sound while recognizing, in order to make it more fancy, like Google Now search bar does (its a circle around the microphone that grows if voice its louder): Then I started to code how to obtain the amplitude of the sound, and finally I got it with AudioRecord Class. The problem comes when I try to mix both (SpeechRecognizer and AudioRecord), because seems like they are not able to share microphone, or something like that... In

How to Get Google Now card information into my own app

穿精又带淫゛_ 提交于 2019-12-05 13:51:43
I would like to make an app that pushes Google Now cards to the Pebble SmartWatch. Is there a way to access Google Now cards programmatically? I'm guessing from my googling that it's not officially supported, but have people found out any undocumented APIs that access this information? AFAIK there are no official or unofficial APIs as of now to retrieve the Google Now cards, and there are unlikely to be as it is a proprietary app by Google that gives them a competitive advantage, and not part of the AOSP Android. 来源: https://stackoverflow.com/questions/17766537/how-to-get-google-now-card

Receive search from Google Now

≯℡__Kan透↙ 提交于 2019-12-04 15:58:08
问题 So I tried to implement this - The fastest route between voice search and your app What i have so far is... In manifest: <activity android:name=".MainActivity"> <intent-filter> <action android:name="com.google.android.gms.actions.SEARCH_ACTION"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> In MainActivity: if (Intent.ACTION_SEARCH.equals(intent.getAction())) { String query = intent.getStringExtra(SearchManager.QUERY); editText.setText(query); } If I type my app

How to Extend Google Now Voice Commands in Android with Custom Actions

大兔子大兔子 提交于 2019-12-04 07:45:53
I recently installed the Google Now Launcher on my Nexus 4, and it got me thinking about how I could use it to interact with my own apps. While I can open my app by asking for it by title, I was wondering if there's a way to intercept the voice commands (possibly through a broadcast receiver) so I can say something like "turn off living room light" to send a signal to an Arduino to turn off the light in a room across the house? On the same note, I haven't been able to find the documentation for Google Now, so if that's out there I would love to see the link for it so I can just read what's

Receive search from Google Now

穿精又带淫゛_ 提交于 2019-12-03 09:07:55
So I tried to implement this - The fastest route between voice search and your app What i have so far is... In manifest: <activity android:name=".MainActivity"> <intent-filter> <action android:name="com.google.android.gms.actions.SEARCH_ACTION"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> In MainActivity: if (Intent.ACTION_SEARCH.equals(intent.getAction())) { String query = intent.getStringExtra(SearchManager.QUERY); editText.setText(query); } If I type my app name in Google Now, the app is shown. If I open it nothing happens, so I didn't receive the search

How to make Google Now run continually in the background on Android

我怕爱的太早我们不能终老 提交于 2019-12-03 06:46:13
问题 I have a app idea in mind, but I haven't been able to figure out one part yet. In Google Now on Android, it gives you the following options to search: Type to search Click microphone to say your search Or just Say "Google" to make the voice search begin. I'd like to know how they made #3 work. I need to have a keyword, that when said, initiates the voice search. I imagine they have some type of background running service constantly listening for voice actions. Does anyone know how this is

Google Now Event card - How to display more information

一世执手 提交于 2019-12-03 05:04:35
I'm testing the Event card in Google Now through adding schema data to a confirmation email. At the moment I'm playing around with populating the event card with rail journey info, since the rail journey schema isn't supported. Unfortunately, I can only get a tiny amount of the info provided to show in the card in Google Now. Here's what I'm adding to the email: <html> <body> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "EventReservation", "reservationNumber": "123456789", "reservationStatus": "http://schema.org/Confirmed", "url": "http://www.eastcoast.co.uk"

Create custom google now cards

元气小坏坏 提交于 2019-12-03 00:37:09
问题 Google provides a variety of 'cards' for Google Now (http://www.google.com/landing/now/). Is it possible to create your own cards? The system looks pretty modular, but I haven't found any documentation or instructions to do so. (I believe you need to supply the content of the card, and some way of signaling when it is supposed to be shown. There is probably just some interface that you have to implement.) If there is no documented solution, a hackish/undocumented way would be ok, too. I'm

Google Now like interface on iOS

走远了吗. 提交于 2019-12-02 21:25:58
So, I absolutely love Google Now's cards interface on Android.. And recently it has even come to iOS. Is there any tutorial, or sample project out there which can help me create a cards interface for my iOS applicaion? From my research, I have been able to somewhat replicate "stacked" cards using a custom UICollectionViewFlowLayout. - (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect { NSArray *allAttributesInRect = [super layoutAttributesForElementsInRect:rect]; CGPoint centerPoint = CGPointMake(CGRectGetMidX(self.collectionView.bounds), CGRectGetMidY(self.collectionView.bounds)); for

How to make Google Voice run continually in the background on Android

 ̄綄美尐妖づ 提交于 2019-12-02 19:19:30
I have a app idea in mind, but I haven't been able to figure out one part yet. In Google Now on Android, it gives you the following options to search: Type to search Click microphone to say your search Or just Say "Google" to make the voice search begin. I'd like to know how they made #3 work. I need to have a keyword, that when said, initiates the voice search. I imagine they have some type of background running service constantly listening for voice actions. Does anyone know how this is achieved? Here is a image of the Google Now app: Hoan Nguyen You can write a service and then use