コード例 #1
0
ファイル: audio.py プロジェクト: robbert-harms/musical-games
 def to_ogg(self, wav_fname, output_fname):
     ensure_dir_exists(output_fname)
     remove_file_if_exists(output_fname)
     run_command('{command} -i {wav} -acodec libvorbis {ogg}'.format(
         command=self.command_name, wav=wav_fname, ogg=output_fname))
コード例 #2
0
ファイル: audio.py プロジェクト: robbert-harms/musical-games
 def to_ogg(self, wav_fname, output_fname):
     ensure_dir_exists(output_fname)
     remove_file_if_exists(output_fname)
     run_command('{command} -i {wav} -acodec libvorbis {ogg}'.format(
         command=self.command_name, wav=wav_fname, ogg=output_fname))
コード例 #3
0
ファイル: audio.py プロジェクト: robbert-harms/musical-games
 def to_mp3(self, wav_fname, output_fname):
     ensure_dir_exists(output_fname)
     remove_file_if_exists(output_fname)
     run_command('{command} -i {wav} -vn -ar 44100 -ac 2 -ab 192k -f mp3 {mp3}'.format(
         command=self.command_name, wav=wav_fname, mp3=output_fname))
コード例 #4
0
ファイル: audio.py プロジェクト: robbert-harms/musical-games
 def to_mp3(self, wav_fname, output_fname):
     ensure_dir_exists(output_fname)
     remove_file_if_exists(output_fname)
     run_command(
         '{command} -i {wav} -vn -ar 44100 -ac 2 -ab 192k -f mp3 {mp3}'.
         format(command=self.command_name, wav=wav_fname, mp3=output_fname))