Rubyã§wavãã¡ã¤ã«ã®ãã©ã¼ããããèªãã ãããã¼ã¿ãã£ã³ã¯ãç·¨éããããã®gemãä½ã£ãã ãã¼ã¹ã¯ä»¥åä½ã£ããã¤ã§ãã¤ãã§ã«wavãã¡ã¤ã«æä½ã®ãµã³ãã«ããããã追å ãã¦rubygems.orgã«ç»é²ãã¦ãããã ããã¾ã§ãµã¼ãã¼ã§é³ãåæãã¦è¿ããããªwebãµã¼ãã¹ã§ä½¿ãäºãæ³å®ãã¦ããç©ã§ããã¤ã¯ããã®å ¥åããªã¢ã«ã¿ã¤ã ã«é³å£°å¦çããããã®ç©ã§ã¯ãªãã â ã¤ã³ã¹ãã¼ã« gem install wav-file â 使ã ãã©ã¼ãããã¨ãã¼ã¿ãã£ã³ã¯ãèªã require 'rubygems' require 'wav-file' f = open("input.wav") format = WavFile::readFormat(f) dataChunk = WavFile::readDataChunk(f) f.close puts format ããã¨ãããªæãã«ãã©ã¼ããã
{{#tags}}- {{label}}
{{/tags}}