Using ffmpeg instead of flac #6

Open
jcla1 opened this Issue Apr 30, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@jcla1
Contributor

jcla1 commented Apr 30, 2012

Hi there

I was trying out speech2text when I noticed that it used both ffmpeg and flac.

To make the lib more compatible with computers that haven't got flac installed, I suggest changing

lib/speech/audio_splitter.rb: line 46

to

chunk_outputfile = chunk.gsub(/#{File.extname(chunk)}$/, ".flac")
if system("ffmpeg -i #{chunk} -acodec flac #{chunk_outputfile}")
  [...]

I have tried it and it works fine on my laptop.

@taf2

This comment has been minimized.

Show comment Hide comment
@taf2

taf2 Apr 30, 2012

Owner

Great idea! Thanks.

Owner

taf2 commented Apr 30, 2012

Great idea! Thanks.

@jcla1

This comment has been minimized.

Show comment Hide comment
@jcla1

jcla1 Apr 30, 2012

Contributor

I already have it coded. Shall I send a pull request?

Contributor

jcla1 commented Apr 30, 2012

I already have it coded. Shall I send a pull request?

@taf2

This comment has been minimized.

Show comment Hide comment
@taf2

taf2 May 1, 2012

Owner

sure, I'll merge

Owner

taf2 commented May 1, 2012

sure, I'll merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment