{"provider_url":"https://hatena.blog","title":"\u3000\u30d3\u30c3\u30b0\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u304b\u3089\u30ea\u30c8\u30eb\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u306b\u5909\u63db","provider_name":"Hatena Blog","published":"2017-12-07 23:15:30","image_url":null,"categories":["java"],"author_url":"https://blog.hatena.ne.jp/namaza/","blog_title":"\u96d1\u8a18","height":"190","author_name":"namaza","version":"1.0","url":"https://ytrewq.hatenablog.com/entry/2017/12/07/231530","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fytrewq.hatenablog.com%2Fentry%2F2017%2F12%2F07%2F231530\" title=\"\u3000\u30d3\u30c3\u30b0\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u304b\u3089\u30ea\u30c8\u30eb\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u306b\u5909\u63db - \u96d1\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://ytrewq.hatenablog.com/","width":"100%","description":"google cloud speech API\u3092\u4f7f\u7528\u3059\u308b\u3068\u304d\u306b\u66f8\u304d\u307e\u3057\u305f\u3002 \u30b5\u30f3\u30d7\u30eb\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308bLINEAR16\u306fPCM16\u306e\u30ea\u30c8\u30eb\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u7248\u307f\u305f\u3044\u3067\u3059\u3002 PCM16\u306f16bit=2byte\u306a\u306e\u3067\u3001bytes[i+1] bytes[i]\u306b\u5909\u63db\u3057\u3066\u3044\u304f\u4f5c\u696d\u3067\u3059\u3002 short\u578b\u3067\u306e\u30b3\u30fc\u30c9\u306f\u3053\u3061\u3089\u3002 public static byte[] short2little(short[] sData) { ByteBuffer buffer = ByteBuffer.allocate(sData.length * 2); buffer.order(ByteOrder.LITTLE_ENDIAN);\u2026"}