Comments (11)
Sorry, one remaining issue - I tried a 15 minutes wav file and it keeps coming back with the API Data failed message. I have read some previous closed threads who had a similar issue. What's the best way to overcome this?
async <- gl_speech("gs://6pokemon/buzzfeed.wav", sampleRateHertz = 44100L, asynch = TRUE)
result <- gl_speech_op(async)
Error in data_parse_function(req$content, ...) : object 'out' not found
Warning message:
In call_api() :
API Data failed to parse. Returning parsed from JSON content.
Use this to test against your data_parse_function.
from googlelanguager.
Everything is working fine now! Thanks Mark!
from googlelanguager.
Try again now with the latest version (and thanks for the test file)
gl_speech("gs://6pokemon/buzzfeed.wav", sampleRateHertz = 44100L, asynch = TRUE)
gl_speech_op(.Last.value)
2018-03-22 16:44:22 -- - started at 2018-03-22T15:39:25.442136Z - last update: 2018-03-22T15:44:09.817086Z
## Send to gl_speech_op() for status
## 3081429970242452248
gl_speech_op(.Last.value)
2018-03-22 16:45:11 -- Asychronous transcription finished.
....
It took about 5 mins to transcribe
from googlelanguager.
It worked magically and yes, I can confirm that it has taken 5 minutes to convert a 15-minutes wav file.
from googlelanguager.
Party :)
from googlelanguager.
Add it via the sampleRateHertz
argument e.g.
gl_speech(test_audio, sampleRateHertz = 48000L)$transcript
from googlelanguager.
Thanks Mark.
I found the problem had something to do with the duration of the sound file - it's over 1 minute. So I have uploaded the file to the cloud bucket and put the link into first parameter. I have listed the syntax below and the file is in public. At the moment, the return is "NULL" - very interesting.
gl_speech("gs://6pokemon/gen.wav", encoding = "LINEAR16", sampleRateHertz = 48000L, asynch = TRUE)$transcript
gl_speech("gs://6pokemon/gen.flac", encoding = "FLAC", sampleRateHertz = 48000L, asynch = TRUE)$transcript
Have you got any examples trying to translate a wav/flac file, which is more than 2 or 3 minutes - like a song's length)?
from googlelanguager.
I just fixed that a second ago in this commit e364110 , if you download the latest GitHub version - for long running it should return an async object, which you then feed into gl_speech_op()
that will return your data once finished
from googlelanguager.
That is setting it back to what is documented here http://code.markedmondson.me/googleLanguageR/articles/speech.html I think it got overwritten in a recent pull, sorry about that.
from googlelanguager.
Hello, Im trying to run a wav fileand I'm continuously getting this error. What to do?
Error: API returned: Must use single channel (mono) audio, but WAV header indicates 2 channels
from googlelanguager.
@AdhishiP please don't comment on closed issues, open a new one, although in your case it looks like this issue may help you: #34
from googlelanguager.
Related Issues (20)
- Error with speaker diarization HOT 7
- I am getting this error on passing a wav file into readwave function. HOT 1
- Support SSML for text-to-speech HOT 2
- Support device profiles in text to speech
- Authenticated website examples
- Step #1: API returned: Invalid JSON payload received. Unknown name "enableSpeakerDiarization" at 'config': Cannot find field. HOT 1
- Package has a VignetteBuilder field but no prebuilt vignette index.
- Possible issue with asynch call? HOT 2
- gl_speech request almost always times out, no proper error message HOT 18
- no access to Google Cloud Service HOT 2
- Entity sentiment shows but document sentiment shows NA HOT 4
- googleLanguageR does not translate tweets. HOT 8
- lack of MP3 encoding HOT 1
- Error midway and no translated text output HOT 3
- Call for co-maintainers :-) HOT 3
- Split calls in gl_translate more effectively - not all or nothing? HOT 2
- Error: lexical error: invalid char in json text. HOT 1
- Link to package webpage broken - gives 404 on markedmonson.me ...
- Add support to translate files HOT 7
- gl_talk: language code detection HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from googlelanguager.