Giter Club home page Giter Club logo

Comments (7)

Skylion007 avatar Skylion007 commented on August 16, 2024

This appears to be something wrong with your JRE and not the program. "java.lang.UnsupportedOperationException: Not supported yet" since I do not throw that error within this project, the issue most likely arises from the Java Sound API.

from java-speech-api.

Skylion007 avatar Skylion007 commented on August 16, 2024

After re-reading your code, you didn't properly reimplement onresponse and are explicitly throwing the error in this line, I am closing this issue:

          @Override
            public void onResponse(GoogleResponse gr) {
                throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
            }

from java-speech-api.

mayukhnair avatar mayukhnair commented on August 16, 2024

How do I tackle this? Whenever I remove these lines of code NetBeans
refuses to compile the code.

On Mon, Mar 30, 2015 at 11:52 PM, Aaron Gokaslan [email protected]
wrote:

Closed #58 #58.


Reply to this email directly or view it on GitHub
#58 (comment).

With my sincere greetings,
Mayukh Nair

from java-speech-api.

Skylion007 avatar Skylion007 commented on August 16, 2024

My bad, you are suppose to lowercase the O onResponse. Sorry about that my mistake.

from java-speech-api.

mayukhnair avatar mayukhnair commented on August 16, 2024

I'm not a professional programmer and am still learning.

And BTW, NetBeans added that OnResponse automatically. Not me. Go tell them
that they need to learn more Java before continuing to build the IDE.

On Wed, 1 Apr 2015 at 06:48 Aaron Gokaslan [email protected] wrote:

Capitalize the O on OnResponse. Please look up the topic inheritance
before continuing to code in Java. You really need to have a grasp on that
and interfaces to code effectively in Java.


Reply to this email directly or view it on GitHub
#58 (comment)
.

from java-speech-api.

Skylion007 avatar Skylion007 commented on August 16, 2024

I just realized, I told you the exact opposite of what you are suppose to do, you are suppose to make onResponse lowercase, I apologize for confusing you.

from java-speech-api.

mayukhnair avatar mayukhnair commented on August 16, 2024

It's okay. We're lucky we aren't in the binary era, or else we'd have been
on a different height of confusion.

P.S. I did some tests to analyse the problem. It seems, with that
onResponse, the outdated javaFlacEncoder fails to record audio data-ffmpeg
can't decode it for playback. I created a TTS audio file with AT&T'S
Natural Speech Web Demo (http://www2.research.att.com/~ttsweb/tts/demo.php),
converted it to FLAC, and modified the code to instead use that
pre-recorded FLAC file. There are no errors or exceptions after that, but
there is no response from Google either.

Now that the audio recording part has been fixed, I'll have to see whether
Google can really grab that FLAC file or not.

On Wed, 1 Apr 2015 at 07:39 Aaron Gokaslan [email protected] wrote:

I just realized, I told you the exact opposite of what you are suppose to
do, you are suppose to make onResponse lowercase, I apologize for confusing
you.


Reply to this email directly or view it on GitHub
#58 (comment)
.

from java-speech-api.

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.