Grab Siri Output
There seems to be no way to intercept the audio file that Siri recorded. If I'm wrong, please point me in the right direction.
It should theoretically be possible, since the decrypted audio packets do pass through your proxy.
Good point. Do you know where in the source code it sends the audio files to guzzoni.apple.com and expects a response? I'm quite new to this, but I plan to make Siri use google's voice recognition instead.
The audio is definitely there. I'll be looking at grabbing some of it later. It should be encoded in speex. Maybe you could look at the original applidium files for audio. I think they built everything there.
On 29 Dec, 2011, at 1:46 AM, aerobit [email protected] wrote:
Do they pass thru as speex files or some other format? I can't quite find the part where the proxy forwards the audio.
Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/209#issuecomment-3293149
Are you still working on using google's voice recognition?
Yes, yes I am. I'm actually still thinking my way around this, because I have no idea how to make this work.
I'm starting to work on it now too. Shouldn't be that hard. The packets are being sent, and are even recorded in log.
Yeah, the only problem is that you'd have to rewrite Siri unless you used apple's logic as well. Unless the logic is client-side, which I doubt.
I don't think the logic is client side. I was more interested in the transcription though. I can't decode the speex packets I'm capturing though. I'm looking at https://github.com/applidium/Cracking-Siri/blob/master/speexDec.m too, but I can't read objective C.
Well, as long as you have ffmpeg, you can just ffmpeg speex to flac, then go
require 'rest_client' require 'json' a = FLAC file here! r = RestClient.post 'https://www.google.com/speech-api/v1/recognize?lang=en-US', a, :content_type => 'audio/x-flac; rate=16000' if j = JSON.parse(r) result = {j['hypotheses'].first['utterance']} end
EDIT: This may be of interest to you... http://rubydoc.info/github/moumar/ruby-ogginfo/master/Ogg/Codecs/Speex
Have you managed to do so? I'm unable to actually do anything with my speex data. I've extracted them from the packets and concatenated them into a file. I believe it requires some processing before I feed it to a decoder, as all I get are messages that it is corrupt, and a bad output.
On 31 Dec, 2011, at 6:36 AM, aerobit [email protected] wrote:
Well, as long as you have ffmpeg, you can just ffmpeg speex to flac, then go
require 'rest_client' require 'json' a = FLAC file here! r = RestClient.post 'https://www.google.com/speech-api/v1/recognize?lang=en-US', a, :content_type => 'audio/x-flac; rate=16000' if j = JSON.parse(r) result = {j['hypotheses'].first['utterance']} end
Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/209#issuecomment-3317893
No, not yet. I'm actually learning ruby, just for this.... are you maintaining a fork of this project with google speech recognition?
No. Mine isn't for that. I'm learning ruby for this too. :)
On 31 Dec, 2011, at 6:48 AM, aerobit [email protected] wrote:
No, not yet. I'm actually learning ruby, just for this.... are you maintaining a fork of this project with google speech recognition?
Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/209#issuecomment-3317982
It's quite hard XD How are you capturing the packets?
Modify connection.rb. Is there another way to communicate where I can attach files?
not as far as I know. What are the exact errors you're getting? Mind posting a sample intercepted speex file? I don't have a 4s so I can't test it :C
It's just a stream of packets concatenated together. I'm not getting a playable file after conversion. The official decoder tells me it's not a valid speex file too (probably because the headers are thrown out) Could we exchange emails privately? It'll be easier to send files. You could message me in my profile.
On 31 Dec, 2011, at 7:16 AM, aerobit [email protected] wrote:
not as far as I know. What are the exact errors you're getting? Mind posting a sample intercepted speex file? I don't have a 4s so I can't test it :C
Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/209#issuecomment-3318198
I would, but it says that you have not provided an email.
Okay. Threw it out there for a while.
On 31 Dec, 2011, at 7:21 AM, aerobit [email protected] wrote:
I would, but it says that you have not provided an email.
Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/209#issuecomment-3318239
anyone figured this out yet? I seem to be able to extract the speech packets using sampledec from crackingSiri but i don't seem to be able to play it back. According to the docs the audio parameters are:
Audio data flows in as speex_wideband by default. You can decompress using the speex library. Managed to uncompress using the following parameters :
- framesize = 320
- packet size = 139 (For some reason the audio packets in the plist are 695 bytes long, and 695 = 139*5, so they probably cram 5 speex packets in each plist)
- sample rate is 16Khz
I've gotten playback. You need to use speex libraries to decode, and then convert the raw result using sox (or any other tool of choice) to something playable in any standard player.
On 8 Jan, 2012, at 5:21 PM, kelvl [email protected] wrote:
anyone figured this out yet? I seem to be able to extract the speech packets using sampledec from crackingSiri but i don't seem to be able to play it back. According to the docs the audio parameters are:
Audio data flows in as speex_wideband by default. You can decompress using the speex library. Managed to uncompress using the following parameters :
- framesize = 320
- packet size = 139 (For some reason the audio packets in the plist are 695 bytes long, and 695 = 139*5, so they probably cram 5 speex packets in each plist)
- sample rate is 16Khz
Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/209#issuecomment-3401153