These are chat archives for GCI-2015-GPW/DevAssist

12th
Feb 2016
Vicente Bermúdez
@vincentes
Feb 12 2016 04:37
@DarkmatterVale sorry about that
@DarkmatterVale I've been busy doing some gci stuff irl
I'll start as soon as possible
Vicente Bermúdez
@vincentes
Feb 12 2016 06:00
going to use this
Iris Johnson
@modwizcode
Feb 12 2016 12:07
That package is really finicky. I tried to play with it but I was really disappointed by the results. I think using HTML 5 with chrome is a better option since we get Google voice recognition.
Vale
@DarkmatterVale
Feb 12 2016 13:39
Can you use HTML 5 with Java?
Or are you suggesting a rewrite?
Iris Johnson
@modwizcode
Feb 12 2016 13:39
No the web backend idea?
Vale
@DarkmatterVale
Feb 12 2016 13:41
hmmm...not really sure how to implement that in Java. Plus then it doesn't work if you don't use chrome
We could use Tomcat
Iris Johnson
@modwizcode
Feb 12 2016 13:43
Chrome can
Vale
@DarkmatterVale
Feb 12 2016 13:43
I'll look up how to work with the chrome "api" :D
Iris Johnson
@modwizcode
Feb 12 2016 13:43
Be used as a standalone app
Vale
@DarkmatterVale
Feb 12 2016 13:44
Ah, like an extension?
Iris Johnson
@modwizcode
Feb 12 2016 13:47
No. Chrome embedded or something. I can't remember.
Vale
@DarkmatterVale
Feb 12 2016 13:48
ok
Sounds like an interesting idea
Vale
@DarkmatterVale
Feb 12 2016 14:01
Here is the error I get when using the speech program on my mac: GCI-2015-GPW/DevAssist#2
I can't figure out why the program breaks after the first time you speak
Vicente Bermúdez
@vincentes
Feb 12 2016 15:45
why were you dissapointed @modwizcode
it would be annoying to use a browser for this
Vale
@DarkmatterVale
Feb 12 2016 15:49
Yea, I agree. Using specifically chrome restricts use to 1) online only 2) chrome use only
Iris Johnson
@modwizcode
Feb 12 2016 16:37
No it's an embed thing. Like how atom.io works.Gitter's desktop app for windows uses the same thing.
Vale
@DarkmatterVale
Feb 12 2016 16:38
Do you know how to implement that?
Sai Vineet
@svineet
Feb 12 2016 16:40
what about something like electron?
Iris Johnson
@modwizcode
Feb 12 2016 16:42
Yeah it's easily done.
Vale
@DarkmatterVale
Feb 12 2016 16:44
Ok
Is there any way to write it in conjunction with our current software?
Or would we need to rewrite using Electron?
Iris Johnson
@modwizcode
Feb 12 2016 16:46
Make our current stuff the back end
Vale
@DarkmatterVale
Feb 12 2016 16:47
And Electron the frontend
Ok
Iris Johnson
@modwizcode
Feb 12 2016 16:49
Yeah.
Russell Greene
@russelltg
Feb 12 2016 16:49
Isn't electron for making desktop apps?
Iris Johnson
@modwizcode
Feb 12 2016 16:50
Yep. Desktop interface to web backend.
Russell Greene
@russelltg
Feb 12 2016 16:50
Okay cool, so we are making a desktop app?
Vale
@DarkmatterVale
Feb 12 2016 17:03
We need very unrestricted access to the client's computer when running the program
So I don't think we can do sole web programming
Russell Greene
@russelltg
Feb 12 2016 17:04
Yes you are right
We need to run script etc
Vale
@DarkmatterVale
Feb 12 2016 17:04
Yea
@GuapoTaco are you interested in helping develop?
Russell Greene
@russelltg
Feb 12 2016 17:09
Yee
I am a good desktop dev, don't know much web
Vale
@DarkmatterVale
Feb 12 2016 17:12
Cool
Desktop as in...
:D
Russell Greene
@russelltg
Feb 12 2016 17:12
C++, I know some java too
(Is that what you were asking?)
Vale
@DarkmatterVale
Feb 12 2016 17:13
Cool, so you will help out on the Java version (not the Python version) then?
Yea
Russell Greene
@russelltg
Feb 12 2016 17:13
Probably, I might learn python tho
Vale
@DarkmatterVale
Feb 12 2016 17:14
I need some input here...I think we need to devise a way to classify input dynamically
This will then allow DevAssist to train itself
When to use specific functions
For example, if I say "run testing.py", DevAssist should know to use the file_runner class
To make this dynamic, we could train a classifier (or multiple for redundancy?) for each function
And give the user a way to tell DevAssist when he/she would like a specific class to run the command. What do you think?
Sai Vineet
@svineet
Feb 12 2016 17:59
I'd love to help if this project uses python
Russell Greene
@russelltg
Feb 12 2016 18:00
one version does, we are creating 2 versions
Iris Johnson
@modwizcode
Feb 12 2016 18:00
P2P AI learning what about?
Vale
@DarkmatterVale
Feb 12 2016 18:02
Yeah, we are creating 2 versions
What @modwizcode
Iris Johnson
@modwizcode
Feb 12 2016 18:03
What about sharing the AI training data over P2P?
Russell Greene
@russelltg
Feb 12 2016 18:04
idk @DarkmatterVale how will that work?
Vale
@DarkmatterVale
Feb 12 2016 18:06
idk
We would have to run some kind of server
But we might want to do that anyway
It depends; if we do that, then we will have to create some way to weight responses
@modwizcode
But we might have to weight responses anyway...
Iris Johnson
@modwizcode
Feb 12 2016 18:08
Yeah.
Might be best eat to
*way to learn
Vale
@DarkmatterVale
Feb 12 2016 18:09
I'm doing a pretty big overhaul of the code right now
I will look into that once I'm done with the rewrite
I fixing a bunch of errors and beginning work on the input processor
*I am fixing
Vicente Bermúdez
@vincentes
Feb 12 2016 20:07
Ok so the java speech api won't work for me. I'm getting a null pointer with desc = Central.createRecognizer(new EngineModeDesc()) desc.allocate()
new EngineModeDesc(LOCALE.English)*
Russell Greene
@russelltg
Feb 12 2016 20:09
where is the exception? on allocate()?
Vicente Bermúdez
@vincentes
Feb 12 2016 20:09
yep
Russell Greene
@russelltg
Feb 12 2016 20:10
so the problem is in createRecognizer
Vicente Bermúdez
@vincentes
Feb 12 2016 20:10
yep
Thee docs say it gives null if there's no local available
Russell Greene
@russelltg
Feb 12 2016 20:10
local or locale?
Vicente Bermúdez
@vincentes
Feb 12 2016 20:11
locale
Russell Greene
@russelltg
Feb 12 2016 20:11
okay
Vale
@DarkmatterVale
Feb 12 2016 20:13
Hi
Russell Greene
@russelltg
Feb 12 2016 20:13
hello senor
Vale
@DarkmatterVale
Feb 12 2016 20:13
hahaha
Vicente Bermúdez
@vincentes
Feb 12 2016 20:13
hi
Vale
@DarkmatterVale
Feb 12 2016 20:15
@vincentes Can you push your code to Github?
Russell Greene
@russelltg
Feb 12 2016 20:15
yee
that way we can debug
Vale
@DarkmatterVale
Feb 12 2016 20:15
And I can see the program
Vicente Bermúdez
@vincentes
Feb 12 2016 20:15
sure
Vale
@DarkmatterVale
Feb 12 2016 20:16
Thank you
Vicente Bermúdez
@vincentes
Feb 12 2016 20:16
well.. I'm just testing the api
haven't done any real progress
Vale
@DarkmatterVale
Feb 12 2016 20:16
Oh, ok
Vicente Bermúdez
@vincentes
Feb 12 2016 20:16
yeah sorry
Vale
@DarkmatterVale
Feb 12 2016 20:16
I thought you had the base source code and are testing the speech API within that :D
Vicente Bermúdez
@vincentes
Feb 12 2016 20:17
I have some stuff planned out, I need to get the api working though
Vale
@DarkmatterVale
Feb 12 2016 20:17
Cool, ok
Ah, so you are using CMUSphinx?
Vicente Bermúdez
@vincentes
Feb 12 2016 20:28
so here's the full test
    public static void main(String args[]) {
        try {
            // Create a synthesizer for English
            Synthesizer synth = Central.createSynthesizer(
                    new SynthesizerModeDesc(Locale.ENGLISH));

            // Get it ready to speak
            synth.allocate();
            synth.resume();

            // Speak the "Hello world" string
            synth.speakPlainText("Hello, world!", null);

            // Wait till speaking is done
            synth.waitEngineState(Synthesizer.QUEUE_EMPTY);

            // Clean up
            synth.deallocate();
        } catch (Exception e) {
                e.printStackTrace();
        }
    }
It's a different test, but it's not working either
java.lang.NullPointerException
at DevAssist.main(DevAssist.java:21)
which woud be -> synth.allocate();
That also happens with the recognizer
Vale
@DarkmatterVale
Feb 12 2016 20:30
Sounds like you have a memory issue
Vicente Bermúdez
@vincentes
Feb 12 2016 20:31
could be a lib dependency issue maybe?
Vale
@DarkmatterVale
Feb 12 2016 20:31
It appears this is using javax
Vicente Bermúdez
@vincentes
Feb 12 2016 20:31
yes
Vale
@DarkmatterVale
Feb 12 2016 20:31
Which should be included in the default Java installation...
Vicente Bermúdez
@vincentes
Feb 12 2016 20:31
no, it's not
from http://www.oracle.com/technetwork/java/jsapifaq-135248.html
Where can I get the Java Speech API (JSAPI)?
The Java Speech API (JSAPI) is not part of the JDK and Sun does not ship an implementation of JSAPI. Instead, we work with third party speech companies to encourage the availability of multiple implementations.
Vale
@DarkmatterVale
Feb 12 2016 20:34
FreeTTS looks old
This looks cool, but you will need an API key from Google to use it
Vicente Bermúdez
@vincentes
Feb 12 2016 20:36
dont you need internet connection
oh actually
Vale
@DarkmatterVale
Feb 12 2016 20:36
Oh yeah, you will also probably need an internet connection
Vicente Bermúdez
@vincentes
Feb 12 2016 20:37
I think we should have two options
offline & online
offline would be for code suggestions (?) and online would add doc look up and stuff like that
And if we use that we'd only have onlien mode
I think at the moment we don't worry about segmenting jobs
Vicente Bermúdez
@vincentes
Feb 12 2016 20:38
you know
I think we should use C++ and Voce
Vale
@DarkmatterVale
Feb 12 2016 20:38
Just have an option to use online (Google) or offline (CMUSphinx if you can figure it out)
Vicente Bermúdez
@vincentes
Feb 12 2016 20:39
Or maybe we could try that too
Vale
@DarkmatterVale
Feb 12 2016 20:39
Voce also works in Java...
Vicente Bermúdez
@vincentes
Feb 12 2016 20:40
oh Ill try that
Vale
@DarkmatterVale
Feb 12 2016 20:41
Ok
Iris Johnson
@modwizcode
Feb 12 2016 20:42
CMUSphinx was awful. Locked up the whole thing a bunch and took forever to process.
I tried to make a desktop assistance app and gave up.
Vale
@DarkmatterVale
Feb 12 2016 20:43
Meh ok
What do you recommend?
Vicente Bermúdez
@vincentes
Feb 12 2016 20:44
I'd say C++ and Voce for the speed
Voce is cross platform anyway
Iris Johnson
@modwizcode
Feb 12 2016 20:44
I thought voce was used by sphinx
Vale
@DarkmatterVale
Feb 12 2016 20:45
Is it?
Iris Johnson
@modwizcode
Feb 12 2016 20:46
Unless sphinx is for c++ too.
Vale
@DarkmatterVale
Feb 12 2016 20:47
I don't kno
*know
Vale
@DarkmatterVale
Feb 12 2016 20:53
Would you guys like me to change the name to DevAssistC?
Or are we still sticking with Java?
Russell Greene
@russelltg
Feb 12 2016 20:53
C for..?
Vicente Bermúdez
@vincentes
Feb 12 2016 20:53
let's test voce in c++
and see how it turns out
Russell Greene
@russelltg
Feb 12 2016 20:53
I will do that
and report back
Vicente Bermúdez
@vincentes
Feb 12 2016 20:53
okidokie
Vale
@DarkmatterVale
Feb 12 2016 20:53
Ok
Vale
@DarkmatterVale
Feb 12 2016 22:31
@GuapoTaco How'd it go?
Russell Greene
@russelltg
Feb 12 2016 22:31
I'm still getting it to install correctly
Vale
@DarkmatterVale
Feb 12 2016 22:31
lol :D
ok
Russell Greene
@russelltg
Feb 12 2016 22:31
the AUR package had errors, and I tried to resolve with no succss
so I am building from source
Vale
@DarkmatterVale
Feb 12 2016 22:32
How's it going?
Russell Greene
@russelltg
Feb 12 2016 22:32
I am easily distracted :p (well)
Vale
@DarkmatterVale
Feb 12 2016 22:38
:D
Vale
@DarkmatterVale
Feb 12 2016 23:11
Can someone create a document with a detailed outline of DevAssist?
And share the doc with me?
So I can edit?
Russell Greene
@russelltg
Feb 12 2016 23:48
I got it to compile, lets make a test program now
It'll just go from a wav
Iris Johnson
@modwizcode
Feb 12 2016 23:50
Hmm that can be hard
Russell Greene
@russelltg
Feb 12 2016 23:50
Yes, the docs are good
I should be up in a few minues
Vale
@DarkmatterVale
Feb 12 2016 23:55
Cool