Code Monkey home page Code Monkey logo

Comments (4)

johnfrombluff avatar johnfrombluff commented on June 18, 2024 1

Awesome! Thanks heaps, Mark. It's working fine now. Thanks again for the fine package, as well as the timely help!

from googlelanguager.

MarkEdmondson1234 avatar MarkEdmondson1234 commented on June 18, 2024

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:

  1. Downloaded the .json file
  2. Load library library(googleLanguageR)
  3. Authenticate using gl_auth(path_to_json_file)

Or this one:

  1. Download json file
  2. Point to json file location in environment argument GL_AUTH (Via .Renviron file or otherwise)
  3. 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.

johnfrombluff avatar johnfrombluff commented on June 18, 2024

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.

MarkEdmondson1234 avatar MarkEdmondson1234 commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.