{"id":6200,"date":"2018-02-06T10:00:43","date_gmt":"2018-02-06T01:00:43","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=6200"},"modified":"2018-02-05T18:48:52","modified_gmt":"2018-02-05T09:48:52","slug":"%e6%96%b0%e4%ba%ba%e7%a0%94%e4%bf%ae%e3%81%ae%e8%a8%98%e9%8c%b28","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/6200","title":{"rendered":"\u65b0\u4eba\u7814\u4fee\u306e\u8a18\u93328"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001Tamamo\u3067\u3059\u3002<br \/>\n <a href=\"\/appnews\/archives\/6195\">\u524d\u56de<\/a>\u306fMediaPlayer\u3092\u4f7f\u3063\u3066\u97f3\u58f0\u518d\u751f\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001MediaRecorder\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u3066\u9332\u97f3\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u9332\u97f3\u306f\u518d\u751f\u3068\u9055\u3044\u5c11\u3005\u8907\u96d1\u3067\u3059\u3002<br \/>\n \u307e\u305a\u3001\u30de\u30a4\u30af\u3092\u4f7f\u3063\u3066\u9332\u97f3\u3059\u308b\u306b\u306f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>manifests\u306b\u4ee5\u4e0b\u306e\u4e00\u6587\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td>&lt;uses-permission android:name=&#8221;android.permission.RECORD_AUDIO&#8221;\/&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u305f\u3060\u3001Android 6.0\u4ee5\u964d\u306f\u3053\u308c\u3060\u3051\u3067\u306f\u30de\u30a4\u30af\u306b\u3088\u308b\u9332\u97f3\u306f\u3067\u304d\u306a\u3044\u305f\u3081\u3001<br \/>\n \u5225\u9014\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u8981\u6c42\u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u5272\u611b\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u9332\u97f3\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<br \/>\n \u5b9f\u306f\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306e\u30b3\u30e1\u30f3\u30c8\u306b\u3042\u308b\u2460\uff5e\u2465\u306e\u9806\u756a\u306b\u306f\u610f\u5473\u304c\u3042\u308a\u3001<br \/>\n \u3053\u306e\u901a\u308a\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n \u3082\u3057\u9806\u756a\u304c\u9006\u306b\u306a\u3063\u3066\u3044\u305f\u308a\u3059\u308b\u3068\u3001\u305f\u3061\u307e\u3061\u52d5\u4f5c\u3057\u307e\u305b\u3093\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td>private String filePath;<br \/>\n private MediaRecorder mediaRecorder;<br \/>\n \u00a0 \u00a0 :<br \/>\n \u00a0 \u00a0 :<br \/>\n \/\/\u30d1\u30b9(\u30ed\u30fc\u30ab\u30eb\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u66f8\u304d\u8fbc\u3080)<br \/>\n filePath = this.getFilesDir() + &#8220;\/voice.mp4&#8221;;<br \/>\n \u00a0 \u00a0 :<br \/>\n \u00a0 \u00a0 :<br \/>\n \/\/\u9332\u97f3<br \/>\n public void startRecording(){<br \/>\n \u00a0 \u00a0 try{<\/p>\n<p> \u00a0 \u00a0 \u00a0 \u00a0 mediaRecorder = new MediaRecorder();<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \/\/\u2460\u30de\u30a4\u30af\u304b\u3089\u306e\u97f3\u58f0\u3092\u9332\u97f3\u3059\u308b<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 mediarecorder.setAudioSource(MediaRecorder.AudioSource.MIC);<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \/\/\u2461\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u51fa\u529b\u30d5\u30a9\u30fc\u30de\u30c3\u30c8(\u3053\u3053\u3067\u306fMPEG4\u5f62\u5f0f)<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 mediarecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \/\/\u2462\u97f3\u58f0\u306e\u30a8\u30f3\u30b3\u30fc\u30c0\u30fc<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 mediarecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \/\/\u2463\u30d5\u30a1\u30a4\u30eb\u306e\u4fdd\u5b58\u5148\u3092\u6307\u5b9a<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 mediarecorder.setOutputFile(filePath);<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \/\/\u2464\u9332\u97f3\u306e\u6e96\u5099\u3092\u3059\u308b<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 mediarecorder.prepare();<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 \/\/\u2465\u9332\u97f3\u958b\u59cb<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 mediarecorder.start();<br \/>\n \u00a0 \u00a0 } catch(Exception e){<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 e.printStackTrace();<br \/>\n \u00a0 \u00a0 }<br \/>\n }<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u308c\u3067\u9332\u97f3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n \u9332\u97f3\u30c7\u30fc\u30bf\u306f\u3053\u3053\u3067\u306f\u30ed\u30fc\u30ab\u30eb\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u8a18\u9332\u3055\u308c\u307e\u3059\u3002<br \/>\n \u5c11\u3057\u8907\u96d1\u3067\u3057\u305f\u304c\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u9806\u756a\u3055\u3048\u5b88\u308c\u3070\u3001\u9332\u97f3\u306f\u5927\u4e08\u592b\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>\u706b\u66dc\u65e5\u62c5\u5f53\uff1aTamamo<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6200\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/6200\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u65b0\u4eba\u7814\u4fee\u306e\u8a18\u93328\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6200\" data-text=\"\u65b0\u4eba\u7814\u4fee\u306e\u8a18\u93328\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6200\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6200\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001Tamamo\u3067\u3059\u3002 \u524d\u56de\u306fMediaPlayer\u3092\u4f7f\u3063\u3066\u97f3\u58f0\u518d\u751f\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002 \u4eca\u56de\u306f\u3001MediaRecorder\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u3066\u9332\u97f3\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100,12],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6200"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=6200"}],"version-history":[{"count":5,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6200\/revisions"}],"predecessor-version":[{"id":6274,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6200\/revisions\/6274"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=6200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=6200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=6200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}