{"id":1332,"date":"2012-04-22T21:06:11","date_gmt":"2012-04-22T12:06:11","guid":{"rendered":"http:\/\/www.tonashika.com\/wordpress\/?p=1332"},"modified":"2012-04-22T21:06:11","modified_gmt":"2012-04-22T12:06:11","slug":"android%e4%bd%bf%e3%81%a3%e3%81%a6duo3-0%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e5%8b%89%e5%bc%b7%e3%82%92%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%ab%e8%89%b2%e3%80%85%e3%82%84%e3%81%a3%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.tonashika.com\/wordpress\/2012\/04\/22\/android%e4%bd%bf%e3%81%a3%e3%81%a6duo3-0%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e5%8b%89%e5%bc%b7%e3%82%92%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%ab%e8%89%b2%e3%80%85%e3%82%84%e3%81%a3%e3%81%9f\/","title":{"rendered":"Android\u4f7f\u3063\u3066Duo3.0\u3092\u4f7f\u3063\u3066\u52c9\u5f37\u3092\u3059\u308b\u305f\u3081\u306b\u8272\u3005\u3084\u3063\u305f\u3053\u3068\u30e1\u30e2"},"content":{"rendered":"<p>\u3072\u3055\u3057\u3076\u308a\u306b\u82f1\u8a9e\u5b66\u7fd2\u71b1\u304c\u3088\u307f\u304c\u3048\u3063\u3066\u304d\u305f\u306e\u3067\u3001Duo3.0\u4f7f\u3063\u3066\u52c9\u5f37\u3059\u308b\u304b\u301c\u3068\u601d\u3063\u3066\u3044\u305f\u3089Duo3.0\u306e\u5fa9\u7fd2CD\u3092\u5206\u5272\u3059\u308bCUE\u30b7\u30fc\u30c8\u304c\u898b\u3064\u304b\u3063\u305f\u306e\u3067\u3001\u3053\u308c\u306f\u3001\u82f1\u6587\u3068\u548c\u8a33\u3092\u6b4c\u8a5e\u3068\u3057\u3066\u5165\u529b\u3057\u3066\u3001android\u306e\u97f3\u697d\u30d7\u30ec\u30fc\u30e4\u30fc\u3067\u82f1\u6587\u30fb\u548c\u8a33\u3092\u898b\u3048\u308b\u3088\u3046\u306b\u3067\u304d\u308c\u3070\u3001\u5b66\u7fd2\u3057\u3084\u3059\u3044\u3058\u3083\u3093\uff01\u3068\u601d\u3044\u3001\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>Duo3.0\u3063\u3066\u767a\u58f2\u3057\u306610\u5e74\u4ee5\u4e0a\u305f\u3061\u307e\u3059\u304c\u3001\u3044\u307e\u3060\u306b\u58f2\u308c\u7b4b\u306e\u5358\u8a9e\u96c6\u306a\u306e\u3067\u3059\u306d\u3002<\/p>\n<p>\u3056\u3063\u304f\u308a\u3068\u3057\u305f\u624b\u9806\u3092\u66f8\u3044\u3066\u307f\u307e\u3059\u3002\u308f\u305f\u3057\u306fMac\u3064\u304b\u3063\u3066\u3044\u308b\u3093\u3067\u3059\u304c\u30011.\u306efoobar2000\u306e\u304f\u3060\u308a\u306fVMWare Fusion\u3092\u4f7f\u3063\u3066Windows\u3067\u3084\u308a\u307e\u3057\u305f\u30023\u306e\u304f\u3060\u308a\u306fWindows\u3067\u3082\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\uff08\u672a\u78ba\u8a8d\uff09\u3002<\/p>\n<p>\uff11\uff0eDuo3.0\u306e\u5fa9\u7fd2CD\u3092\u5206\u5272\u3057\u3066mp3\u306b\u3059\u308b\u3002<\/p>\n<p>\u300c\u82f1\u8a9e\u306e\u4f1a\u300d\u3068\u3044\u3046\u30b5\u30a4\u30c8\u306b\u66f8\u3044\u3066\u3042\u3063\u305f\u3084\u308a\u304b\u305f\u3092\u8e0f\u8972\u3057\u307e\u3059\u3002Duo3.0\u306e\u6587\u3054\u3068\u306b\u5206\u5272\u3067\u304d\u308bCUE\u30b7\u30fc\u30c8\u3092\u4f7f\u3063\u3066\u5206\u5272\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u3001\u9014\u4e2d\u304b\u3089\u624b\u9806\u5909\u3048\u3066mp3\u306b\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u5fc5\u8981\u306aLAME\u30a8\u30f3\u30b3\u30fc\u30c0\u30fc\u306f\u3001Windows\u7248\u3060\u3068\u3053\u3053\u3044\u3089\u304b\u3089\u3068\u3063\u3066\u304f\u308b\u3068\u826f\u3044\u304b\u3068\u3002<\/p>\n<p><a href=\"http:\/\/www.rarewares.org\/mp3-lame-bundle.php\">http:\/\/www.rarewares.org\/mp3-lame-bundle.php<\/a><\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u3053\u306b\u3042\u308b\u3084\u308a\u304b\u305f\u3092\u30b9\u30e9\u30a4\u30c9No.33\u57fa\u672c\u7684\u306b\u8e0f\u8972\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/eigonokai.jp\/duo30-splitting-method\/\">http:\/\/eigonokai.jp\/duo30-splitting-method\/<\/a><\/p>\n<p>\u30b9\u30e9\u30a4\u30c9No.33\u3067WAV\u306b\u4e00\u5ea6\u843d\u3068\u3057\u3066\u3044\u308b\u3051\u3069\u3001&#8221;Output Format\u201d\u3092mp3\u306b\u3059\u308b\u3002\u30a8\u30f3\u30b3\u30fc\u30c0\u306f\u3001\u3055\u304d\u307b\u3069\u898b\u3064\u3051\u3066\u304d\u305flame.exe\u3092\u4f7f\u3046\u3002<\/p>\n<p>\u3053\u308c\u3067\u4e00\u6587\u3054\u3068\u306b\u3070\u3089\u3070\u3089\u306b\u306a\u3063\u305fmp3\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\uff12\uff0eDUO3.0\u306e\u82f1\u6587\u3001\u548c\u8a33\u3092\u53d6\u5f97\u3059\u308b\u3002<\/p>\n<p>Scansnap\u7b49\u3005\u4f7f\u3044\u3001DUO\u306e\u5fa9\u7fd2CD\u306b\u3064\u3044\u3066\u3042\u3063\u305f\u672c\u3092\u30b9\u30ad\u30e3\u30f3\u3059\u308b\u306a\u308a\u3001\u624b\u6253\u3061\u3059\u308b\u306a\u308a\u3057\u3066\u3001\u82f1\u6587\u3001\u548c\u8a33\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p>\uff08\u30b0\u30ec\u30fc\u306a\u8a71\u3067\u3059\u304c\u3001Duo\u306e\u82f1\u6587\u3001\u548c\u8a33\u304c\u30cd\u30c3\u30c8\u306e\u3069\u3053\u304b\u306b\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u3082\u306e\u305a\u3070\u308a\u306e\u5834\u6240\u3092\u66f8\u304f\u306e\u306f\u8457\u4f5c\u6a29\u4e0a\u3069\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u30d2\u30f3\u30c8\u30fb\u30fb\u30fb\u3002google\u3067\u3001DUO3.0\u306e\u548c\u8a33\u3092\u3072\u3068\u3064\u5165\u308c\u3066\u307f\u308c\u3070\u4f55\u304b\u3057\u3089\u3067\u3066\u304f\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\uff09<\/p>\n<p>3.mp3\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u7d44\u307f\u8fbc\u3080\u3002<\/p>\n<p>3.1.ruby\u3068taglib\u3068taglib-ruby\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>\u306a\u3093\u3068\u306a\u304f\u66f8\u3051\u308bruby\u3067\u30bf\u30b0\u5909\u66f4\u3092\u3084\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002ruby\u3067ID3v2\u30bf\u30b0(mp3\u306e\u66f2\u60c5\u5831\u306e\u898f\u683c\uff09\u3092\u7de8\u96c6\u3067\u304d\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u300c\u3061\u3083\u3063\u3061\u3083\u3068\u300d\u3067\u304d\u308b\u3068\u601d\u3063\u305f\u3089\u5927\u306f\u307e\u308a\u3002ID3v2\u30bf\u30b0\u3092\u7de8\u96c6\u3067\u304d\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u5e7e\u3064\u304b\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u307e\u3068\u3082\u306bUSLT(Unsychronised lyrics\/text transcription)\u30bf\u30b0\u3092\u5165\u308c\u3089\u308c\u308b\u3082\u306e\u304c&#8221;taglib-ruby&#8221;\u4e00\u500b\u3057\u304b\u306a\u304b\u3063\u305f\u3002\u307b\u304b\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u30c0\u30e1\u30c0\u30e1\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/robinst.github.com\/taglib-ruby\/\">http:\/\/robinst.github.com\/taglib-ruby\/<\/a><\/p>\n<p>\u3061\u306a\u307f\u3001taglib-ruby\u306ftaglib\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306b\u306a\u308b\u306e\u3067\u3001taglib\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u5408\u308f\u305b\u3066\u5fc5\u8981\u3067\u3059\u3002Mac\u3067\u306fbrew\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/developer.kde.org\/~wheeler\/taglib.html\">http:\/\/developer.kde.org\/~wheeler\/taglib.html<\/a><\/p>\n<p>3.2.mp3\u306b\u82f1\u6587\u3001\u548c\u8a33\u3092\u7d44\u307f\u8fbc\u3080\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304f\u3002<\/p>\n<p>\u4e00\u5fdc\u3001\u81ea\u5206\u3067\u66f8\u3044\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u3055\u3089\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u9069\u5f53\u306b\u4f5c\u3063\u305f\u306e\u3067\u3001\u304a\u597d\u307f\u306b\u3042\u308f\u305b\u3066\u9069\u5b9c\u5909\u3048\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002Duo3.0\u306e\u82f1\u6587\u30c6\u30ad\u30b9\u30c8\u304cDUO3_eng.txt\u3001\u548c\u8a33\u30c6\u30ad\u30b9\u30c8\u304cDUO3_jpn.txt\u306b\u3001\u3064\u304f\u3063\u305fmp3\u304c\u3059\u3079\u3066\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u3068\u60f3\u5b9a\u3057\u3066\u3044\u3066\u3001\u5b9f\u884c\u3059\u308b\u3068\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306emp3\u30d5\u30a1\u30a4\u30eb\u306b\u30bf\u30b0\u60c5\u5831\u3092\u76f4\u63a5\u66f8\u304d\u3053\u307f\u307e\u3059\u3002\u30c6\u30ad\u30b9\u30c8\u306e\u5148\u982d\u306b\u306f xxx. \u3068\u6587\u7ae0\u756a\u53f7\u3068\u30d4\u30ea\u30aa\u30c9\u304c\u5165\u3063\u3066\u3044\u308b\u524d\u63d0\u3067\u30d1\u30fc\u30b9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u65e5\u672c\u8a9e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306fUTF-8\u3067\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u524d\u63d0\u3067\u3059\u3002USLT.language=&#8221;eng&#8221;\u8a2d\u5b9a\u304c\u304a\u304b\u3057\u3044\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u304c\u3001\u7279\u306b\u554f\u984c\u306b\u306a\u3089\u306a\u3044\u306e\u3067\u3053\u3046\u3057\u3066\u304a\u304d\u307e\u3059\uff08\u3068\u3044\u3046\u304b\u3001ID3.org\u3092\u898b\u3066\u3082\u3069\u3046\u66f8\u3044\u3066\u826f\u3044\u306e\u304b\u3061\u3083\u3093\u3068\u66f8\u3044\u3066\u306a\u3044\uff09\u3002<\/p>\n<p>[ruby]<\/p>\n<p>require &quot;taglib&quot;<\/p>\n<p># DUO\u4f8b\u6587\u82f1\u6587\u30c6\u30ad\u30b9\u30c8\u304b\u3089\u30bb\u30f3\u30c6\u30f3\u30b9\u3054\u3068\u306b\u914d\u5217\u306b\u5165\u308c\u308b<br \/>\nf=open(&quot;DUO3_eng.txt&quot;)<br \/>\ncurrent_sentence = 0<br \/>\nsentences = []<br \/>\nwhile line = f.gets<br \/>\n if (\/^(d+).(.*)\/ =~ line)<br \/>\n current_sentence = $1.to_i<br \/>\n sentences[current_sentence] = sprintf &quot;%d.%sn&quot;,current_sentence,$2<br \/>\n else<br \/>\n sentences[current_sentence] &lt;&lt; line<br \/>\n end<br \/>\n sentences[current_sentence].gsub!(\/nn\/,&#8221;)<br \/>\nend<br \/>\nf.close<br \/>\n# DUO\u4f8b\u6587\u65e5\u672c\u8a9e\u30c6\u30ad\u30b9\u30c8\u304b\u3089\u30bb\u30f3\u30c6\u30f3\u30b9\u3054\u3068\u306b\u914d\u5217\u306b\u5165\u308c\u308b<br \/>\nf=open(&quot;DUO3_jpn.txt&quot;)<br \/>\ncurrent_sentence = 0<br \/>\nwhile line = f.gets<br \/>\n line.strip!<br \/>\n if (\/^(d+).(.*)\/ =~ line)<br \/>\n prev_sentence = current_sentence<br \/>\n current_sentence = $1.to_i<br \/>\n if(current_sentence-1) != prev_sentence<br \/>\n p current_sentence<br \/>\n abort(&quot;mismatch&quot;)<br \/>\n end<br \/>\n sentences[current_sentence] = sprintf &quot;%snnnnnnn%d.%sn&quot;,sentences[current_sentence],current_sentence,$2<br \/>\n else<br \/>\n sentences[current_sentence] &lt;&lt; line<br \/>\n end<br \/>\nend<br \/>\nf.close<\/p>\n<p>#\u30d5\u30ec\u30fc\u30ba\u3054\u3068\u306emp3\u30d5\u30a1\u30a4\u30eb\u306b\u82f1\u6587\u306e\u914d\u5217\u3092\u5165\u308c\u308b<br \/>\nfor current_sentence in 1..560<br \/>\n filename = sprintf(&quot;%.3d.mp3&quot;,current_sentence)<br \/>\n TagLib::MPEG::File.open(filename) do |mp3|<br \/>\n printf &quot;%dn&quot;,current_sentence<br \/>\n tag = mp3.id3v2_tag<\/p>\n<p>tag.artist = &quot;DUO3.0_eng_jpn&quot;<\/p>\n<p>uslt = TagLib::ID3v2::UnsynchronizedLyricsFrame.new<br \/>\n uslt.language = &quot;eng&quot;<br \/>\n uslt.text = sentences[current_sentence]<br \/>\n uslt.text_encoding = TagLib::String::UTF8<br \/>\n tag.add_frame(uslt)<br \/>\n mp3.save<br \/>\n end<br \/>\nend<\/p>\n<p>[\/ruby]<\/p>\n<p>3.3.iTunes\u3067\u78ba\u8a8d<\/p>\n<p>iTunes\u3067mp3\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u66f2\u306e\u60c5\u5831\u2192\u6b4c\u8a5e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u6b63\u3057\u304f\u82f1\u6587\u2192\u65e5\u672c\u8a9e\u304c\u51fa\u3066\u3044\u308c\u3070\u6210\u529f\u3002\u3046\u307e\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u3089\u30d0\u30a4\u30ca\u30ea\u30a8\u30c7\u30a3\u30bf\u3068\u306b\u3089\u3081\u3063\u3053\u3063\u3053\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>4.android\u306b\u5165\u308c\u308b\u3002<\/p>\n<p>android\u3067USLT\u30bf\u30b0\u3092\u3061\u3083\u3093\u3068\u8a8d\u8b58\u3067\u304d\u308b\u30d7\u30ec\u30fc\u30e4\u30fc\u304c\u610f\u5916\u306b\u5c11\u306a\u3044\u3067\u3059\u3002\u79c1\u304c\u307f\u3064\u3051\u305f\u306e\u306f\u3001&#8221;Astro Player&#8221;\u3068\u3044\u3046\u3082\u306e\u3002\u30b9\u30ad\u30f3\u3092\u5909\u3048\u308b\u3068\u3001\u304b\u306a\u308a\u5927\u304d\u304f\u6b4c\u8a5e\u304c\u51fa\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/tonashika.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2012\/04\/android_shrink.jpg\"><img decoding=\"async\" src=\"http:\/\/tonashika.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2012\/04\/android_shrink.jpg\" alt=\"Astro Player\" title=\"Astro Player\" width=\"240\" height=\"424\" class=\"size-full wp-image-1337 alignnone\" \/><\/a><\/p>\n<p>mp3\u306b\u7d44\u307f\u8fbc\u3093\u3060\u30c6\u30ad\u30b9\u30c8\u306f\u3001\u82f1\u8a9e\u2192\u65e5\u672c\u8a9e\u306e\u90e8\u5206\u3067\u5927\u304d\u304f\u6539\u884c\u3044\u308c\u3066\u307e\u3059\u304c\u3001\u3053\u306e\u30d7\u30ec\u30fc\u30e4\u30fc\u3067\u306e\u5229\u7528\u3092\u60f3\u5b9a\u3057\u3066\u3001\u6b4c\u8a5e\u306e\u90e8\u5206\u3092\u30d5\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u65e5\u672c\u8a9e\u8a33\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u306e\u3067\u3057\u305f\u3002<\/p>\n<p>\u3046\u30fc\u3093\u3001\u6e80\u8db3\u30fb\u30fb\u30fb\u3058\u3083\u306a\u304b\u3063\u305f\u3001\u3053\u308c\u4f7f\u3063\u3066\u52c9\u5f37\u3057\u306a\u3044\u3068\u306a\uff01<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3072\u3055\u3057\u3076\u308a\u306b\u82f1\u8a9e\u5b66\u7fd2\u71b1\u304c\u3088\u307f\u304c\u3048\u3063\u3066\u304d\u305f\u306e\u3067\u3001Duo3.0\u4f7f\u3063\u3066\u52c9\u5f37\u3059\u308b\u304b\u301c\u3068\u601d &hellip; <a href=\"https:\/\/www.tonashika.com\/wordpress\/2012\/04\/22\/android%e4%bd%bf%e3%81%a3%e3%81%a6duo3-0%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e5%8b%89%e5%bc%b7%e3%82%92%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%ab%e8%89%b2%e3%80%85%e3%82%84%e3%81%a3%e3%81%9f\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1332","post","type-post","status-publish","format-standard","hentry","category-comp"],"_links":{"self":[{"href":"https:\/\/www.tonashika.com\/wordpress\/wp-json\/wp\/v2\/posts\/1332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tonashika.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tonashika.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tonashika.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tonashika.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1332"}],"version-history":[{"count":0,"href":"https:\/\/www.tonashika.com\/wordpress\/wp-json\/wp\/v2\/posts\/1332\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tonashika.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tonashika.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tonashika.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}