{"id":260401,"date":"2015-06-30T12:33:02","date_gmt":"2015-06-30T08:33:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=260401"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=260401","title":{"rendered":"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0447\u0438 \u043e\u0442 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0421\u0442\u044d\u043b"},"content":{"rendered":"<p>     \t\u041a\u043e\u0433\u0434\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \u0441 \u0440\u0435\u0447\u044c\u044e \u0432 \u0442\u0435\u043a\u0441\u0442, \u043f\u0435\u0440\u0432\u044b\u043c\u0438 \u043d\u0430 \u0443\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0413\u0443\u0433\u043b\u0430 \u0438 \u042f\u043d\u0434\u0435\u043a\u0441\u0430. \u041d\u043e, \u043a\u0440\u043e\u043c\u0435 \u042f\u043d\u0434\u0435\u043a\u0441\u0430, \u0435\u0441\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u043d\u0430 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u2014 \u00ab\u0421\u0442\u044d\u043b\u00bb (<a href=\"http:\/\/speech.stel.ru\/\">http:\/\/speech.stel.ru\/<\/a>), API \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u00abover 9000\u00bb \u0438 \u0434\u0430\u0436\u0435 \u00ab\u043e\u0447\u0435\u043d\u044c \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e\u00bb \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0434\u0435\u043d\u044c, \u0430 \u043f\u0440\u043e\u0431\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 Stel \u0440\u0430\u0437\u0434\u0430\u0435\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b4d\/d8b\/6e4\/b4dd8b6e439f8ad32ca98c66c17ad4e1.jpg\" alt=\"image\"\/><\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0420\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 API \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0441\u043b\u043e\u0436\u043d\u043e, \u043d\u043e \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u0430\u043d\u0443\u0430\u043b \u0441 \u0441\u0430\u0439\u0442\u0430 \u0421\u0442\u044d\u043b\u0430 \u0443\u0441\u0442\u0430\u0440\u0435\u043b \u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u043e\u0441\u0435\u043c\u0443 \u0437\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043c\u0430\u043d\u0443\u0430\u043b \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043d\u0430 Python \u0438 Java. \u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 Java \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u0435\u043d, \u0435\u0441\u043b\u0438 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \u0443 \u0432\u0430\u0441 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043d\u0435 \u0432 \u0432\u0438\u0434\u0435 \u0444\u0430\u0439\u043b\u0430, \u0430 \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0431\u0430\u0439\u0442\u043e\u0432. \u0421\u0440\u0430\u0437\u0443 \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0421\u0442\u044d\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 wav-\u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0441 \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u0439 \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u0438\u0437\u0430\u0446\u0438\u0438 8 \u043a\u0413\u0446, \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u0441\u044d\u043c\u043f\u043b\u0430 16 \u0431\u0438\u0442, \u043c\u043e\u043d\u043e (\u043e\u0434\u0438\u043d \u043a\u0430\u043d\u0430\u043b).<\/p>\n<p>  \u0411\u043b\u0438\u0436\u0435 \u043a \u0434\u0435\u043b\u0443: \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0421\u0442\u044d\u043b\u0430 (<a href=\"http:\/\/speech.stel.ru\/api_description\">http:\/\/speech.stel.ru\/api_description<\/a>) \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e, \u0447\u0442\u043e \u0438 \u043a\u0430\u043a (\u0445\u043e\u0442\u044c \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u043b\u043e), \u043f\u043e\u0441\u0435\u043c\u0443, \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u0441\u0440\u0430\u0437\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 (\u043e\u043f\u044f\u0442\u044c \u0436\u0435, \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442) \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435:<\/p>\n<pre><code class=\"python\">coding: utf-8 import httplib, json, base64  HOST = 'api.stel.ru:7071' APIKEY = '***' # Place your API key here MODEL = 'rus_gsm_ext'  WAV = base64.b64encode(open('test.wav', 'rb').read()) # demo audio file (WAV, 8000 HZ, 16-bit, mono) con = httplib.HTTPConnection(HOST)  #Speech recognition data = json.dumps({'apikey' : APIKEY, 'model': MODEL , 'wav' : WAV}) headers = {'Content-Type' : 'application\/json', 'Accept': 'application\/json', 'Content-Length' : '{0}'.format(len(data))} con.request('POST', '\/kwfind', data, headers) resp = con.getresponse()  if resp.status == 200:   print json.loads(resp.read()) # UTF-8 string with recognized text else:   print resp.reason <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0442\u0443\u0442 \u043d\u0430 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f <i>test.wav<\/i> \u0438\u0437 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0430 Java, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438 \u0431\u0430\u0439\u0442\u043e\u0432, \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043d\u0438\u0436\u0435. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0431\u0430\u0439\u0442\u043e\u0432 (\u0431\u0435\u0437 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438) \u0438 \u0444\u0430\u0439\u043b\u044b \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0431\u0430\u0439\u0442\u043e\u0432, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 wav-\u0444\u0430\u0439\u043b\u0443 \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (\u043d\u0430\u043c \u0431\u0443\u0434\u0443\u0442 \u043d\u0443\u0436\u043d\u044b 8000 \u0433\u0435\u0440\u0446, 2 \u0431\u0430\u0439\u0442\u0430, 1 \u043a\u0430\u043d\u0430\u043b):<\/p>\n<pre><code class=\"java\">package ru.habrahabr.stel.example;  import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.Arrays;  import javax.sound.sampled.AudioFileFormat; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.UnsupportedAudioFileException;  public class WaveFile { \tprivate int INT_SIZE = 4; \tpublic final int NOT_SPECIFIED = -1; \tprivate int sampleSize = NOT_SPECIFIED; \tprivate long framesCount = NOT_SPECIFIED; \tprivate byte[] data = null; \tprivate AudioInputStream ais = null; \tprivate AudioFormat af = null;  \tWaveFile(File file) throws UnsupportedAudioFileException, IOException \t{ \t\tif(!file.exists()) \t\t{ \t\t\tthrow new FileNotFoundException(file.getAbsolutePath()); \t\t} \t\t \t\tais = AudioSystem.getAudioInputStream(file);  \t\taf = ais.getFormat(); \t\tframesCount = ais.getFrameLength(); \t\tsampleSize = af.getSampleSizeInBits()\/8; \t\tlong dataLength = framesCount*af.getSampleSizeInBits()*af.getChannels()\/8; \t\tdata = new byte[(int) dataLength];  \t\tais.read(data); \t} \t \tWaveFile(int sampleSize, float sampleRate, int channels, int[] samples) throws Exception \t{ \t\tif(sampleSize &lt; INT_SIZE) \t\t{ \t\t\tthrow new Exception(&quot;sample size &lt; int size&quot;); \t\t} \t\t \t\tthis.sampleSize = sampleSize; \t\tthis.af = new AudioFormat(sampleRate, sampleSize*8, channels, true, false); \t\tthis.data = new byte[samples.length*sampleSize]; \t\t \t\tfor(int i=0; i &lt; samples.length; i++) \t\t{ \t\t\tsetSampleInt(i, samples[i]); \t\t} \t\t \t\tframesCount = data.length \/ (sampleSize*af.getChannels()); \t\tais = new AudioInputStream(new ByteArrayInputStream(data), af, framesCount); \t} \t \tWaveFile(int sampleSize, float sampleRate, int channels, byte[] wave) throws Exception \t{ \t\tthis.sampleSize = sampleSize; \t\tthis.af = new AudioFormat(sampleRate, sampleSize*8, channels, true, false); \t\tthis.data = Arrays.copyOf(wave, wave.length); \t\t \t\tframesCount = data.length \/ (sampleSize*af.getChannels()); \t\tais = new AudioInputStream(new ByteArrayInputStream(data), af, framesCount); \t} \t \tpublic AudioFormat getAudioFormat() \t{ \t\treturn af; \t} \t \tpublic byte[] getData() \t{ \t\treturn Arrays.copyOf(data, data.length); \t} \t \tpublic byte[] getWave() throws Exception \t{ \t\tByteArrayOutputStream bts = new ByteArrayOutputStream(); \t\tAudioSystem.write(new AudioInputStream(new ByteArrayInputStream(data),  \t\t\t\taf, framesCount), AudioFileFormat.Type.WAVE, bts); \t\treturn bts.toByteArray(); \t} \t \tpublic int getSampleSize() \t{ \t\treturn sampleSize; \t} \t \tpublic double getDurationTime() \t{ \t\treturn getFramesCount() \/ getAudioFormat().getFrameRate(); \t} \t \tpublic long getFramesCount() \t{ \t\treturn framesCount; \t} \t \tpublic void saveFile(File file) throws IOException \t{ \t\tAudioSystem.write( new AudioInputStream(new ByteArrayInputStream(data),  \t\t\t\taf, framesCount), AudioFileFormat.Type.WAVE, file); \t} \t \tpublic int getSampleInt(int sampleNumber) \t{ \t\t \t\tif(sampleNumber &lt; 0 || sampleNumber &gt;= data.length\/sampleSize) \t\t{ \t\t\tthrow new IllegalArgumentException( \t\t\t\t\t&quot;sample number is can't be &lt; 0 or &gt;= data.length\/&quot; \t\t\t\t\t\t\t+ sampleSize); \t\t} \t\t \t\tbyte[] sampleBytes = new byte[sampleSize]; \t\t \t\tfor(int i=0; i &lt; sampleSize; i++) \t\t{ \t\t\tsampleBytes[i] = data[sampleNumber * sampleSize + i]; \t\t} \t\t \t\tint sample = ByteBuffer.wrap(sampleBytes) \t\t\t\t.order(ByteOrder.LITTLE_ENDIAN).getInt(); \t\t \t\treturn sample; \t} \t \tpublic void setSampleInt(int sampleNumber, int sampleValue) \t{ \t\tbyte[] sampleBytes = ByteBuffer.allocate(sampleSize). \t\t\t\torder(ByteOrder.LITTLE_ENDIAN).putInt(sampleValue).array(); \t\t \t\tfor(int i=0; i &lt; sampleSize; i++) \t\t{ \t\t\tdata[sampleNumber * sampleSize + i] = sampleBytes[i]; \t\t} \t} } <\/code><\/pre>\n<p>  \u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u0432\u0437\u044f\u0442\u044b\u0439 \u0441<i> <a href=\"http:\/\/blog.eqlbin.ru\/2011\/02\/wave-java.html\">http:\/\/blog.eqlbin.ru\/2011\/02\/wave-java.html<\/a><\/i>. \u0412 \u043e\u0431\u0449\u0435\u043c-\u0442\u043e \u0432\u0441\u0435, \u0447\u0442\u043e \u0442\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u2014 \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f <i>getWave()<\/i>, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0430\u044f \u043c\u0430\u0441\u0441\u0438\u0432 \u0431\u0430\u0439\u0442\u043e\u0432, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0444\u0430\u0439\u043b\u0443, \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u043c\u0443 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043e\u0432. \u0410 \u0442\u0430\u043a\u0436\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0431\u0430\u0439\u0442\u043e\u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e raw-\u0444\u0430\u0439\u043b\u0430. \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0421\u0442\u044d\u043b\u0443 \u0431\u0443\u0434\u0435\u043c \u0438\u043c\u0435\u043d\u043d\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 getWave(). \u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 <i>WaveFile<\/i>, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441\u043e \u0421\u0442\u044d\u043b\u043e\u043c, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0441\u0435 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<pre><code class=\"java\">String getResponseOn(WaveFile wf) { \tString res = new String(); \ttry \t{ \t\tbyte[] wav = wf.getWave(); \t\tHttpConnection conn = new HttpConnection(&quot;api.stel.ru&quot;, 7071); \t\tconn.open(); \t\tHttpState state = new HttpState(); \t\t \t\tPostMethod post = new PostMethod(); \t\t \t\tJSONObject data = new JSONObject(); \t\tdata.put(&quot;apikey&quot;, &quot;***&quot;);\t\/\/ Place your API key here \t\tdata.put(&quot;model&quot;, &quot;rus_gsm_ext&quot;); \t\tdata.put(&quot;wav&quot;, new String(Base64.encodeBase64(wav))); \t\t \t\tpost.setPath(&quot;\/kwfind&quot;); \t\tpost.setRequestHeader(&quot;Content-Type&quot;, &quot;application\/json&quot;); \t\tpost.setRequestHeader(&quot;Accept&quot;, &quot;application\/json&quot;); \t\tpost.setRequestHeader(&quot;Content-Length&quot;, &quot;&quot;+data.toJSONString().length()); \t\tpost.setRequestEntity(new StringRequestEntity(data.toJSONString(), &quot;application\/json&quot;, null)); \t\tpost.execute(state, conn); \t\t \t\tres = res + (String) ((JSONObject) new JSONParser().parse(post.getResponseBodyAsString())).get(&quot;text&quot;); \t\tconn.close(); \t} \tcatch(Exception e) \t{ \t\tres = null; \t} \treturn res; } <\/code><\/pre>\n<p>  \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c <i>&quot;***&quot;<\/i> \u043d\u0430 \u0432\u0430\u0448 \u043a\u043b\u044e\u0447, \u0430 \u0442\u0430\u043a\u0436\u0435, \u0447\u0442\u043e <i>WaveFile<\/i> \u0434\u043b\u044f <i>getResponseOn<\/i> \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 <i>(2, (float) 8000, 1, (byte[]) raw)<\/i>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"java\">String res1 = getResponseOn(new WaveFile(2, (float) 8000.0, 1, sound)); String res2 = getResponseOn(new WaveFile(new File(&quot;test.waw&quot;))); \/\/demo audio file (WAV, 8000 HZ, 16-bit, mono) <\/code><\/pre>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 <i>getResponseOn(WaveFile wf)<\/i> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <i>org.json.simple.JSONObject<\/i> \u0438 <i>org.json.simple.parser.JSONParser<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u0430\u0447\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0442\u0441\u044e\u0434\u0430: <a href=\"http:\/\/www.java2s.com\/Code\/Jar\/j\/Downloadjsonsimple111jar.htm\">www.java2s.com\/Code\/Jar\/j\/Downloadjsonsimple111jar.htm<\/a><\/p>\n<p>  \u00ab\u0421\u0442\u044d\u043b\u00bb \u043b\u0435\u0433\u043a\u043e \u0438\u0434\u0443\u0442 \u043d\u0430 \u043a\u043e\u043d\u0442\u0430\u043a\u0442, \u0442\u0430\u043a \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0431\u0443\u0434\u0443\u0442 \u0434\u0440\u0443\u0433\u0438\u0435 \u044f\u0437\u044b\u043a\u0438 \u0438\u043b\u0438 \u044f\u0437\u044b\u043a\u043e\u0432\u044b\u0435 \u0431\u0430\u0437\u044b, \u0441 \u043d\u0438\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c\u0441\u044f. <\/p>\n<p>  \u041d\u0430\u043f\u043e\u043c\u043d\u0438\u043c, \u0447\u0442\u043e \u043d\u0430\u0448\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u0430 \u041b\u0435\u043a\u0441\u0438. \u041b\u0435\u043a\u0441\u0438 \u2014 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u043e\u043c \u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u043c\u043d\u044b\u043c \u0434\u043e\u043c\u043e\u043c. \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0431\u044b\u0442\u043e\u0432\u043e\u0439 \u0442\u0435\u0445\u043d\u0438\u043a\u043e\u0439, \u0441\u043e\u043e\u0431\u0449\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u0438\u0437 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439. \u041a\u0441\u0442\u0430\u0442\u0438, \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0440\u0430\u0437\u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f\u0445 \u043e \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0445 \u0440\u043e\u0431\u043e\u0442\u043e\u0432 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 <a href=\"http:\/\/habrahabr.ru\/company\/lexy\/blog\/253979\/\">\u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 <\/a>. <\/p>\n<p>  \u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0447\u0438, \u043a\u0430\u043a \u0432\u044b \u0443\u0436\u0435 \u043c\u043e\u0433\u043b\u0438 \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u0443 \u043d\u0430\u0441 \u043e\u0442 \u0421\u0442\u0435\u043b\u0430. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0447\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 \u0431\u043e\u0440\u0442\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 (\u043e\u0431\u0437\u043e\u0440 \u043d\u0430\u0448\u0435\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0438\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"http:\/\/habrahabr.ru\/company\/lexy\/blog\/260363\/\">\u0442\u0443\u0442<\/a>). \u042d\u0442\u043e \u0434\u0430\u0435\u043c \u043d\u0430\u043c \u0440\u044f\u0434 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u044b\u043c\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0430\u043c\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0432\u044b\u0434\u0430\u0447\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043e\u0442\u0432\u0435\u0442\u0430, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0444\u0440\u0430\u0437\u044b \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0438\u0442\u0435 \u043d\u0430 \u043d\u0430\u0448\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0432 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445: <a href=\"http:\/\/goo.gl\/0a6Os7\">\u0412\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435<\/a> \u0438 <a href=\"http:\/\/goo.gl\/UuMB0C\">\u0424\u0435\u0439\u0441\u0431\u0443\u043a\u0435<\/a>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/cs7064.vk.me\/c622531\/v622531773\/54902\/oFBIQmxZLG8.jpg\" alt=\"image\"\/><br \/>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/260683\/\"> http:\/\/habrahabr.ru\/post\/260683\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u041a\u043e\u0433\u0434\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \u0441 \u0440\u0435\u0447\u044c\u044e \u0432 \u0442\u0435\u043a\u0441\u0442, \u043f\u0435\u0440\u0432\u044b\u043c\u0438 \u043d\u0430 \u0443\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0413\u0443\u0433\u043b\u0430 \u0438 \u042f\u043d\u0434\u0435\u043a\u0441\u0430. \u041d\u043e, \u043a\u0440\u043e\u043c\u0435 \u042f\u043d\u0434\u0435\u043a\u0441\u0430, \u0435\u0441\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u043d\u0430 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u2014 \u00ab\u0421\u0442\u044d\u043b\u00bb (<a href=\"http:\/\/speech.stel.ru\/\">http:\/\/speech.stel.ru\/<\/a>), API \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u00abover 9000\u00bb \u0438 \u0434\u0430\u0436\u0435 \u00ab\u043e\u0447\u0435\u043d\u044c \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e\u00bb \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0434\u0435\u043d\u044c, \u0430 \u043f\u0440\u043e\u0431\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 Stel \u0440\u0430\u0437\u0434\u0430\u0435\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b4d\/d8b\/6e4\/b4dd8b6e439f8ad32ca98c66c17ad4e1.jpg\" alt=\"image\"\/><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-260401","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/260401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=260401"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/260401\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=260401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=260401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=260401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}