Comments (7)
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.
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.
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:
—
Reply to this email directly or view it on GitHub
#58 (comment).
With my sincere greetings,
Mayukh Nair
from java-speech-api.
My bad, you are suppose to lowercase the O onResponse. Sorry about that my mistake.
from java-speech-api.
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.
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.
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)
- bytesToDoubleArray() sizing & FFT HOT 2
- Suggestion: Upgrade to Google Cloud Speech API HOT 4
- Connection abort after a short time HOT 1
- API Key is not correct
- Synthesizer returns 403 and blocks user from Google translate HOT 2
- No Main HOT 1
- Error Selecting Microphone HOT 1
- Build failure
- So this toolkit doesn't work anymore HOT 5
- YOU NEED ORG.JSON API //Error while using API HOT 1
- package net.sourceforge.javaflacencoder does not exist
- package org.json does not exist
- Audio File to Text Convertor HOT 1
- Feature Request - Synthesiser url access
- google response is giving NULL HOT 4
- java.io.IOException: Server returned HTTP response code: 400 for URL HOT 8
- Recognizer cannot be resolved to a type
- recognizer folder code HOT 2
- help anyone ㅜㅜ HOT 4
- calculateEnergy
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 java-speech-api.