Comments (3)
Thanks @smmurphy - I have never tried it on an audio file that long, so will need to check it to reproduce. That error is when the API response is unexpected format, so perhaps its empty or with a message saying something like "Your file is too large" - nevertheless it would be good to track down, will take a closer look.
from googlelanguager.
Thanks for looking into this @MarkEdmondson1234 . I got a little further with this... what I did is regenerate call_api()
with the parse function as: parse_async
instead of parse_op
. This initially threw an error due to the if statement:
if(!is.null(x$metadata$startTime)){
my_message("Speech transcription running - started at ", x$metadata$startTime,
" - last update: ", x$metadata$lastUpdateTime, level = 3)
}
So I made a local copy of the function that was just...
# parse asynchronous speech calls responses
parse_async <- function(x) {
structure(x, class = "gl_speech_op")
}
Running that returned the request (though not in as convenient a format).
I'm not sure exactly why, likely something to do with metadata handling, but it appears that parse_op
is defaulting to parse_speech
, which is what I was getting for the 5 minute files and working. For the longer file it still defaults to parse_speech
, but that fails whereas parse_async
works.
from googlelanguager.
Thanks @smmurphy that is exactly what I would have done - it would be really useful if you can report the results of str(x)
of the object you get with your local copy of parse_async()
- then I can modify the existing one to be more forgiving and accept the response you are getting. It sounds odd, that in your case the x$metadata$startTime
isn't present, but a quick enough fix to make it conditional.
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.