현재 Android SDK 용 Google 음성 인식 API를 사용 중입니다. 내가 알고 싶은 것은 음성 인식을위한 URL입니다. 이 기능을 사용하려면 데이터 연결이 필요하므로 분명히 서버 측에서 구문 분석하고 있습니다. 누구든지이 URL을 알고 있습니까?Android : Google 보이스 인식 서버
1
A
답변
1
좋아요, 여기 제가 찾은 것이 있는데, 기사를 작성했습니다. 여기
는 음성 검색에 가서 다양한 HTTP 및 TCP 작업의 전체 TCP 덤프입니다 :POST /m/voice-search HTTP/1.1
Content-Length: 117
Content-Type: application/octet-stream
Host: www.google.com
Connection: Keep-Alive
User-Agent: Mozilla/5.0 (Linux; U; Android 2.3.5; en-us; YP-G1) AppleWebKit/525.10+ (KHTML, like Gecko) Version/3.0.4 Mobile Safari/523.12.2
.....intent-speech-apiR\
!VS 2.1.3 os=[Android 2.3.5 YP-G1]........>.. .".-16508905153536551372.en-US:..... .(.EZL..HTTP/1.1 200 OK
Content-Type: application/x-protobuffer
Date: Tue, 26 Jun 2012 13:07:17 GMT
Expires: Tue, 26 Jun 2012 13:07:17 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 133
Server: GSE
7
6d72f95e7d9d47135f894ddb26d6303d....intent-speech-api..RH
.
.74.125.142.126.....0ZQjyPfTdtfxMBro66d72f95e7d9d47135f894ddb26d6303dPOST /m/voice-search?multiproto=true HTTP/1.1
Content-Length: 3271
Content-Type: application/octet-stream
Host: www.google.com
Connection: Keep-Alive
User-Agent: Mozilla/5.0 (Linux; U; Android 2.3.5; en-us; YP-G1) AppleWebKit/525.10+ (KHTML, like Gecko) Version/3.0.4 Mobile Safari/523.12.2
.s
.....intent-speech-apiRZ
!VS 2.1.3 os=[Android 2.3.5 YP-G1]........>.. .".-16508905153536551372.en-US:..... .EZL...d
.....intent-speech-apibK
.j.
.free_form.............en-US(.0.:.com.rockwellcollins.voiceH.PVh.x......
.....intent-speech-api....
..<4p(.X.....*.EaU..74-l.`..X.M...<..a>[email protected]<(r'..~
a..(B....4..,XxE..T.+...<.>cN
.p.....O.j.V.3]d5q....J...<${c;[email protected]@<..Z..B..i..^T]....*.c.Q.Ak.k...<,}_..b.....f"..CI.....D..f>2...< n].W......W.^)[email protected]<.[m...... . ..t.E.n.SC
.D./`...< sx.tH.a...d#......U......[[email protected]<.Co.........Ce.0,..
....}....:`<&p#......k...........?...!.... < U.......3:.H.L....<j....:<..n.<"n.>....i....c]..,.2.<O{.W.., .....
.....intent-speech-api....
..<.{%....a..:..
..)......../[email protected]<.[.6.A.a..z9|p.......$...D""...<.r]..2.a...\.J...:.*.y..-.j0..P<$[c..\....O......j$..U}........<Dd_......Z.....x....^.!.....{..<$.cD.....r.rc...xh....4:.......<..}.]).a..[.5..K
....d..=.=W..P<&..~.h...O..Qo..p~..'f!
.n\.LN.<.._.
.....
....3..D5.~..Ws~.L..<*Cx..j.ai.Z.`R..\......h.c.....<.d....H ...{zb..jo...L.o...$T.p<[email protected]\.....]-.F.~.y....<C...5zQ.w.K
...x3k...-.]....o{.<U/S..........QY.a.........4.\......
.....intent-speech-api....
..<,.c.......*.,......8....H.N."..<k.l.*{...k.....I$..?.B.....iQU.<%n$.m..t...2..Z......vT......{.<)...o..p.d<.../....`.H.v..=..~.<?%....R....Y. ..o..K.f.B.i|K...<Y.......T./[email protected]\~. <a%..0R....?...........p..7..=Xp</...P^...
.Y}......z.........B.<>..........s2.....*.6 ..%.!Q...<.._....!.._..........Y.....}...<.edG.&..s..j....j.......-......<..X.AQ...=.4.9...k..r...Bx..f2P<F['.u........J............/... <.3S..r..........,.V.%...]....O.....
.....intent-speech-api....
..<(}q..C/P.9.......zm.6s...)..]4P<..(..P......N
.6...c......k..".<..x...q..>.....QI$[~...>..Q.L0.<..c......<..*..I.`[email protected]<.v#F.......0R..BZ.I'..-...q..IP<..dN.tP!_Z...0.+a.j.29Yc..g...`<C.{[email protected]<D._....a.*........ +..5...N.yFP<D.d......}:.].-.%e......|-.p...<1
..^.1..... [email protected]<..g..l..._/z...SH.A)]q....../..<&.i.\..a.{..{...../....w...B3..<..g........O*..<c...y...YE)... <$....p.A........)..OP....Y;.s.P....
.....intent-speech-api....
..<B}h....!.4.j(L.e.......F,..3#. <....
N
A...V........\V[.da....0<Deg......J.]Z..t...>@.$./...o
.< ..N.Z%..J.....x(wJ.l.5Y.=.oTSP<&ra..`....J.[....?.i$..d......p< s.......d.-..d...=.....
L..j.`<D~f.....y.J......B..!...c..D.c.<..d?V......1.%.........u..}..K.<L.x..2...i:.=q6.].`.9.{..A..".p<.zWGVt.A..O!R....L.w.O.(8....Y.<DgcGT.
..n.c.s...
...}.C..*.rf < {t>.......8b.[..\."....<@..B?.< ^$......,:Xl...%r..F..
..)O...< .#6.i)A...X.~Qc...TF.....[+.+.....
.....intent-speech-api....
..<.nh.....h....h".......|wd..n.l.<(mk,.P.A....,...*.57..EG....p.0<....V............[ ..?][email protected]<0[q.VW.a.....n.....m.t..6..`...<.~y..r...d........}.....:...v..<[email protected]<Rd_....A...%kr..d.g.8.m.. .... <.egF.......[.S...N..W.........`< |#..........'..4.....(........<(_i&C:[email protected]}Jh..~..<.z...(.!y.
5:m^..r..........AW.<.OkF..4..i:.._0.....A._........<E.y..{. .*......M....=..!Q.A...<.Lg.^[email protected]'.....~
.....intent-speech-api..d
`<0z]>. ......`]...7Vp.%[email protected]<.Mg>........D.t...N........8/..<(......A.9j..r....7.....-9.4.......
.....intent-speech-api...
...HTTP/1.1 200 OK
Content-Type: application/x-protobuffer
Date: Tue, 26 Jun 2012 13:07:22 GMT
Expires: Tue, 26 Jun 2012 13:07:22 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 281
Server: GSE
.=
7
0571f20e9244116a243b05ee852a7831....intent-speech-api..R...
.....intent-speech-api..b..
......
.testing.....D..?..
.test...........
.testting...........
.texting...........
test email.........."0571f20e9244116a243b05ee852a7831-1.,
&
0571f20e9244116a243b05ee852a7831......Z.POST /m/voice-search?multiproto=true HTTP/1.1
Content-Length: 257
Content-Type: application/octet-stream
Host: www.google.com
Connection: Keep-Alive
User-Agent: Mozilla/5.0 (Linux; U; Android 2.3.5; en-us; YP-G1) AppleWebKit/525.10+ (KHTML, like Gecko) Version/3.0.4 Mobile Safari/523.12.2
.n
.....voice-searchRZ
!VS 2.1.3 os=[Android 2.3.5 YP-G1]........>.. .".-16508905153536551372.en-US:..... .EZL...B
5
6d72f95e7d9d47135f894ddb26d6303d..intent-speech-api.......Z. ..K
7
0571f20e9244116a243b05ee852a7831....intent-speech-api....
..0..R...Z. .HTTP/1.1 200 OK
Content-Type: application/x-protobuffer
Date: Tue, 26 Jun 2012 13:07:22 GMT
Expires: Tue, 26 Jun 2012 13:07:22 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 230
Server: GSE
.8
2
7a4a9198ae0fd36445660bf963609842....voice-search..R..<
5
6d72f95e7d9d47135f894ddb26d6303d..intent-speech-api......>
7
0571f20e9244116a243b05ee852a7831....intent-speech-api......,
&
7a4a9198ae0fd36445660bf963609842......Z.
읽기가 많은,하지만 기본적으로 어떤 안드로이드에서 일어나는 것은 TCP를 통해 음성 데이터를 전송 포트 19294
에 내 74.125.142.126
(내 경우에는 어쨌든). 그런 다음 POST 요청이 74.125.225.176
으로 이루어집니다.
.testing.....D..?..
.test...........
.testting...........
.texting...........
관여하는 것으로 보인다 두 개의 URL의이 www.google.com/m/appreq/ : 잠시 후, (동일 IP에서) 구글 서버는 여기에 볼 수있는 옵션 목록, 응답 vs 및 www.google.com/m/voice-search
그것은 그것의 요지 인 것 같습니다. 기본 HTTP 동작 (GET/POST) 요청. 포트 19294가 어떤 방식으로 들어 맞는지는 잘 모르겠지만, HTTP를 통해 처리되고 반환되는 음성 데이터의 원래 전송이라고 생각합니다. 나는 이것이 동일한 문제에 걸려 넘어지면 도움이되기를 바랍니다.