Comments (4)
Awesome! Thanks heaps, Mark. It's working fine now. Thanks again for the fine package, as well as the timely help!
from googlelanguager.
Its saying the GL_AUTH
environment is not set which is strange if you set it the line before. Try putting it in .Renviron
file in the working directory or your user home directory.
You should then just need one of these methods:
- Downloaded the
.json
file - Load library
library(googleLanguageR)
- Authenticate using
gl_auth(path_to_json_file)
Or this one:
- Download json file
- Point to json file location in environment argument
GL_AUTH
(Via.Renviron
file or otherwise) - Load library (
library(googleLanguageR)
)
It looks like you are conflating the two methods a bit in your examples.
Also the library needs to be loaded, so using googleLanguageR::gl_auth()
instead of library(googleLanguageR);gl_auth()
won't put it in the library environment it needs. Lastly I have had some trouble with Dropbox synching so try it out of that folder.
HTH, Mark
from googlelanguager.
Thanks very much for your quick and helpful reply, Mark!
Unfortunately the issue persists. I put the line in my ~/.Renviron file, as you instructed. The gl_nlp() function works fine, but the gl_speech() function does not. After rm(list=ls(all.names=TRUE))
and restarting the R session:
`
passage <- "Did you consider an airbnb ? I got something hooked into a little bit forward. Just never go. Just big risk adverse if something went wrong, something like without having my balls and some active over a year and stuff. So contacting people for being a little bit difficult to your security and ours. Jesus, he's. Sure. Okay. Okay. It sounds great. We're about to traveling to japan and doing a couple of days here. I like it here"
library(googleLanguageR)
Successfully authenticated via /home/john/Documents/google-service-account.json
nlp_result <- gl_nlp(passage)
2018-09-26 09:31:33 -- annotateText: 429 characters
test_audio <- system.file("/home/john/Documents/test-for-google.flac", package = "googleLanguageR")
speech_result <- gl_speech(test_audio, languageCode = "en-GB")
Error: Path '' does not exist
`
from googlelanguager.
Don’t put your audio filepath in system.file() - that is only to take the example file included within the package. You can send in the filepath as is.
from googlelanguager.
Related Issues (20)
- Custom config in async call -- unused argument? HOT 7
- 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
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.