ropensci / googleLanguageR

R client for the Google Translation API, Google Cloud Natural Language API and Google Cloud Speech API
https://code.markedmondson.me/googleLanguageR/
Other
195 stars 42 forks source link

[improvement] sampleRateHertz from the file header automatically #49

Open albertostefanelli opened 6 years ago

albertostefanelli commented 6 years ago

it would be a nice addition in the gl_speech function if you are working with audio files that have different hertz rates. Unfortunately, i was not able to find an r package that implements this function.

MarkEdmondson1234 commented 6 years ago

It would be nice, but I need an R package and an example function to implement it with, as making my own audio encoder sniffer sounds like a very deep rabbit hole :)

johnfrombluff commented 6 years ago

The tuneR package is pretty good, but only handles a few formats (WAV & MP3) that are relevant to googleLanguageR. But perhaps the package authors might be persuaded to add FLAC support? That would cover the majority of use cases, I suspect.