![]() |
[Announce][Dirty Hack][N900/N9] Mee42 v0.3.1 - Poor man's Siri resp. Google Now
Some months ago a friend was really impressed by Google Now, a kind of answering machine on Android, more or less equivalent to Apple's Siri or whatever it is called. Looking at some demonstration videos on youtube i saw everything i needed to get the below shell script finished. By the way, it works pretty well for me. Feel free to use it, modify and optimize it, print and eat it to become one with the code:)
About Mee42 Essentially the shell script works as follows: Record audio from mic & convert to flac format -> Google Voice API for speech recognition -> do some text manipulations here and there -> get an answer from wiki.answers.com -> read the answer using espeak. Security aspects Sending a text phrase to answers.com is one thing, sending your individual voice samples to Google's cloud is another thing. Just be aware what you are doing. It's your data. About GUI discussions, N900/N9 versions etc My aim was to share the script as a proof of concept so that the community can profit from it as soon as possible. Taixzo who develops Saera, a Siri clone with GUI which is available for the N900, integrates the essential ideas into his app. The best thing to do now is to support him by voting for Saera in 2012's Coding competition. With a N9/N950 in his hands the chances are even better to see a Harmattan port of Saera. Changelog
Output of a single (!) terminal session Code:
~/bin $ ./mee42_v0.3.1.sh Code:
As always have fun. |
Re: [Dirty Hack][N900 / maybe N9?] 42^infinity - Poor man's Siri resp. Google Now
cool yaaaaaaaaaaaaaar !
if some how this could be a part of saera ? |
Re: [Dirty Hack][N900 / maybe N9?] 42^infinity - Poor man's Siri resp. Google Now
This looks hard for a noob like me
so what should i do? should i wait fr some detailed or step by step instruction? or some one is going to make deb for it? |
Re: [Dirty Hack][N900 / maybe N9?] 42^infinity - Poor man's Siri resp. Google Now
so we need an icon for n9, and deb file too, :D
awesome |
Re: [Dirty Hack][N900 / maybe N9?] 42^infinity - Poor man's Siri resp. Google Now
What exactly does this line do:
Code:
vim -c ':/description' -c ':.-1' -c ":1,. d" -c ":.+1" -c ":.,$ d" -c ":wq!" ${file_prefix}.html |
Re: [Dirty Hack][N900 / maybe N9?] 42^infinity - Poor man's Siri resp. Google Now
Great work :o
|
Re: [Dirty Hack][N900 / maybe N9?] 42^infinity - Poor man's Siri resp. Google Now
Quote:
-c ':.-1' => goto previous line -c ":1,. d" => delete all lines from beginning to current line (1 line before 'description') -c ":.+1" => goto next line -c ":.,$ d" => delete all lines all to the end -c ":wq!" => save basically it extracts the expected answer from the result HTML using 'description' as keyword |
Re: [Dirty Hack][N900 / maybe N9?] 42^infinity - Poor man's Siri resp. Google Now
Quote:
Code:
grep "description" ${file_prefix}.html | head -1 |
Re: [Dirty Hack][N900 / maybe N9?] 42^infinity - Poor man's Siri resp. Google Now
Clever little script!!
|
Re: [Dirty Hack][N900 / maybe N9?] 42^infinity - Poor man's Siri resp. Google Now
have you tested it on harmattan ? let me suggest to rename it too something less enigmatic , ie : google-speech-ui ..
|
Re: [Dirty Hack][N900 / maybe N9?] 42^infinity - Poor man's Siri resp. Google Now
Quote:
Taixzo the author of Saera will hopefully integrate the idea into his app so that we can all profit from it. Unfortunately, for Harmattan some tools like sox, flac etc. are missing. I will try to switch to alternatives. |
Re: [Dirty Hack][N900 / maybe N9?] 42^infinity - Poor man's Siri resp. Google Now
Here we go
|
Re: [Dirty Hack][N900 / maybe N9?] 42^infinity - Poor man's Siri resp. Google Now
Quote:
however, the recording part doesn't really work for some reason on N9 :) |
Re: [Dirty Hack][N900 / maybe N9?] 42^infinity - Poor man's Siri resp. Google Now
Quote:
Code:
gst-launch-0.10 pulsesrc num-buffers=200 ! audioconvert ! audioresample ! audiorate ! audio/x-raw-int,rate=16000 ! flacenc ! filesink location=file_temp.flac |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
I like v2 (VIM was 6megs wow lol)
two suggestions: 1.play TTS 'Ask your questions?' before starting recording, play TTS 'thanks' after recording 2.voice command for stopping the loop, exit or stop, quite etc |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
There any screenshot ? And i want to ask a kind of stupid question .
this app is like siri on iphone ? |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
Quote:
I've written a Siri-like app, which will use this after the coding competition is over. |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
give it gui please, for harmattan, :)
|
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
dpk not found how to fix it please ?
|
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
Quote:
10chars |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
thank you but there is a problem could not open the debian archive
compilation failed in require |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
Quote:
Then as root just do: Code:
dpkg -i /home/user/MyDocs/Downloads/Mee42/*.deb Edit: Before you ask, yes I've tested and it works so it should work for you too :) |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
someone can help me with this how to do it :
Save the shell script to your N9 as mee42.sh, do a 'chmod u+x mee42.sh' and run it via './mee42.sh'. |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
1 Attachment(s)
Quote:
Then as root do: Code:
chmod u+x /home/user/mee42.sh Code:
sh /home/user/mee42.sh |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
Hi!
I've installed it, but the output is everytime "Sorry, I did not get your question". I've also tried with the questions in the first post... |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
Quote:
Jokes aside, BluesLee has said this is a "Dirty Hack"...Don't expect much accuracies...The dev of Saera posted a page back that he will incorporate this into Saera so maybe a Saera for n9/900 would do the job for you... |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
Quote:
LOL I hope... I've bought Speechcommand on Nokia store, but it isn't the same thing... Thanks! :) |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
Quote:
|
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
Quote:
|
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
what about n900? is anyone building deb file for it? i mean any gui for it?
|
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
Quote:
The dev for Saera [a n900 app], taixzo, clearly stated that he has incorporated this into it and waiting for the Coding Competition to end before he can upload it... |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
Quote:
|
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
Quote:
this post says that it will be available for N9 and This post says it will be for N900 ?????? |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
Ok I'll explain it to you in simple English then :)
Saera is at this moment a n900-only app which is participating in the 2012 Coding Competition (link for which you can find on the top right side of your page) As per the rules of the Competition, only bug fix updates are allowed till voting closes i.e. NO new features are allowed. Its pretty obvious that while a developer won't release any new features; he will still work on them right? Hence, taixzo has in his own personal, private Saera build added this Mee42 script. After the end of the Voting for the 2012 Coding Competition, he will be releasing a updated n900 version of Saera with Mee42 integrated. He will also attempt to build a similar version for the n9 which at this point doesn't have Saera. Profit? |
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
|
Re: [Announce][Dirty Hack][N900 / N9] Mee42 v0.2 - Poor man's Siri resp. Google Now
Quote:
Thanks a lot |
Re: [Announce][Dirty Hack][N900/N9] Mee42 v0.3 - Poor man's Siri resp. Google Now
I added some information concerning GUI development etc on the initial post:) Here are some minor but helpful improvements:
|
Re: [Announce][Dirty Hack][N900/N9] Mee42 v0.3 - Poor man's Siri resp. Google Now
Nice job @BluesLee
|
Re: [Announce][Dirty Hack][N900/N9] Mee42 v0.3 - Poor man's Siri resp. Google Now
i cannot run chmod u+x
im rooted it says "chmod: mee42.sh: Operation not permitted" :confused: :confused: :confused: :confused: |
Re: [Announce][Dirty Hack][N900/N9] Mee42 v0.3 - Poor man's Siri resp. Google Now
Quote:
|
All times are GMT. The time now is 01:08. |
vBulletin® Version 3.8.8