Skip to content

Commit

Permalink
Revert "Use FFMPEG instead of flac"
Browse files Browse the repository at this point in the history
This reverts commit 43d30aa.
  • Loading branch information
taf2 committed Oct 6, 2012
1 parent c5217ef commit fa6d92a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/speech/audio_splitter.rb
Expand Up @@ -42,8 +42,7 @@ def build
# convert the audio file to flac format
def to_flac
puts "convert: #{chunk} to flac"
chunk_outputfile = chunk.gsub(/#{File.extname(chunk)}$/, ".flac")
if system("ffmpeg -i #{chunk} -acodec flac #{chunk_outputfile}")
if system("flac #{chunk}")
puts "success?"
self.flac_chunk = chunk.gsub(/#{File.extname(chunk)}$/, ".flac")
# convert the audio file to 16K
Expand Down

0 comments on commit fa6d92a

Please sign in to comment.