Skip to content

Commit

Permalink
handle paths
Browse files Browse the repository at this point in the history
  • Loading branch information
taf2 committed Mar 25, 2011
1 parent 576fff6 commit b67df8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/speech/audio_splitter.rb
Expand Up @@ -9,7 +9,7 @@ class AudioChunk

def initialize(splitter, offset, duration)
self.offset = offset
self.chunk = "chunk-" + splitter.original_file.gsub(/\.(.*)$/, "-#{offset}" + '.\1')
self.chunk = File.join(File.dirname(splitter.original_file), "chunk-" + File.basename(splitter.original_file).gsub(/\.(.*)$/, "-#{offset}" + '.\1'))
self.duration = duration
self.splitter = splitter
end
Expand Down

0 comments on commit b67df8a

Please sign in to comment.