Hello . I'm so new for Sphinx Speech Recognition and i'm trying to install this for Android. I installed Java JDK and i set to enviromental variable on windows.
Than i created a file for build.properties and i put all my necessary documents directory. (SDK-NDK-Ver)
But now when i try to write ant jar at command line on windows. there is a problem like that.
java : error : cannot find sembol blablablaa. I searched many times but now i gave up i cant understand everybody can do this but when i try that it always give me problems.
I tried remove and install again for java jdk and cmusphinx (pocketsphinx,sphinxbase,pocketsphinx-android) what should i do ?
compile: [mkdir] Created dir: C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-
trunk\pocketsphinx-android\build\classes [javac] Compiling 44 source files to C:\Users\Gokhan\Desktop\cmusphinx\cmusp
hinx-code-12759-trunk\pocketsphinx-android\build\classes [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\segmentIterator.java:11: error: cannot fi
nd symbol [javac] public class segmentIterator implements java.util.Iterator<Segment>
{ [javac] ^ [javac] symbol: class Segment [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\nBestIterator.java:11: error: cannot find
symbol [javac] public class nBestIterator implements java.util.Iterator<NBest> { [javac] ^ [javac] symbol: class NBest [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\nBestList.java:11: error: cannot find sym
bol [javac] public class nBestList implements Iterable<NBest> { [javac] ^ [javac] symbol: class NBest [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\segmentList.java:11: error: cannot find s
ymbol [javac] public class segmentList implements Iterable<Segment> { [javac] ^ [javac] symbol: class Segment [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\nBestList.java:26: error: cannot find sym
bol [javac] public java.util.Iterator<NBest> iterator () { [javac] ^ [javac] symbol: class NBest [javac] location: class nBestList [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\segmentList.java:26: error: cannot find s
ymbol [javac] public java.util.Iterator<Segment> iterator () { [javac] ^ [javac] symbol: class Segment [javac] location: class segmentList [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\nGramModelSetIterator.java:11: error: can
not find symbol [javac] public class nGramModelSetIterator implements java.util.Iterator<NGr amModel=""> { [javac] ^ [javac] symbol: class NGramModel [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\jsgfIterator.java:11: error: cannot find
symbol [javac] public class jsgfIterator implements java.util.Iterator<JsgfRule> { [javac] ^ [javac] symbol: class JsgfRule [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\nGramModelSet.java:11: error: cannot find
symbol [javac] public class nGramModelSet implements Iterable<NGramModel> { [javac] ^ [javac] symbol: class NGramModel [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\jsgf.java:11: error: cannot find symbol [javac] public class jsgf implements Iterable<JsgfRule> { [javac] ^ [javac] symbol: class JsgfRule [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\nGramModelSet.java:26: error: cannot find
symbol [javac] public java.util.Iterator<NGramModel> iterator () { [javac] ^ [javac] symbol: class NGramModel [javac] location: class nGramModelSet [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\jsgf.java:26: error: cannot find symbol [javac] public java.util.Iterator<JsgfRule> iterator () { [javac] ^ [javac] symbol: class JsgfRule [javac] location: class jsgf [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\RecognitionListener.java:33: error: canno
t find symbol [javac] import edu.cmu.pocketsphinx.Hypothesis; [javac] ^ [javac] symbol: class Hypothesis [javac] location: package edu.cmu.pocketsphinx [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\RecognitionListener.java:51: error: canno
t find symbol [javac] public void onPartialResult(Hypothesis hypothesis); [javac] ^ [javac] symbol: class Hypothesis [javac] location: interface RecognitionListener [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\RecognitionListener.java:56: error: canno
t find symbol [javac] public void onResult(Hypothesis hypothesis); [javac] ^ [javac] symbol: class Hypothesis [javac] location: interface RecognitionListener [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:58: error: cannot f
ind symbol [javac] private final Decoder decoder; [javac] ^ [javac] symbol: class Decoder [javac] location: class SpeechRecognizer [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:63: error: cannot f
ind symbol [javac] protected SpeechRecognizer(Config config) { [javac] ^ [javac] symbol: class Config [javac] location: class SpeechRecognizer [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:173: error: cannot
find symbol [javac] public Decoder getDecoder() { [javac] ^ [javac] symbol: class Decoder [javac] location: class SpeechRecognizer [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:186: error: cannot
find symbol [javac] public void addFsgSearch(String searchName, FsgModel fsgModel) {
[javac] ^
[javac] symbol: class FsgModel
[javac] location: class SpeechRecognizer
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:388: error: cannot
find symbol [javac] protected final Hypothesis hypothesis; [javac] ^ [javac] symbol: class Hypothesis [javac] location: class SpeechRecognizer.ResultEvent [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:391: error: cannot
find symbol [javac] ResultEvent(Hypothesis hypothesis, boolean finalResult) { [javac] ^ [javac] symbol: class Hypothesis [javac] location: class SpeechRecognizer.ResultEvent [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:33: error: can
not find symbol [javac] import static edu.cmu.pocketsphinx.Decoder.defaultConfig; [javac] ^ [javac] symbol: class Decoder [javac] location: package edu.cmu.pocketsphinx [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:33: error: sta
tic import only from classes and interfaces [javac] import static edu.cmu.pocketsphinx.Decoder.defaultConfig; [javac] ^ [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:34: error: can
not find symbol [javac] import static edu.cmu.pocketsphinx.Decoder.fileConfig; [javac] ^ [javac] symbol: class Decoder [javac] location: package edu.cmu.pocketsphinx [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:34: error: sta
tic import only from classes and interfaces [javac] import static edu.cmu.pocketsphinx.Decoder.fileConfig; [javac] ^ [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:48: error: can
not find symbol [javac] private final Config config; [javac] ^ [javac] symbol: class Config [javac] location: class SpeechRecognizerSetup [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:68: error: can
not find symbol [javac] private SpeechRecognizerSetup(Config config) { [javac] ^ [javac] symbol: class Config [javac] location: class SpeechRecognizerSetup [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:64: error: cannot f
ind symbol [javac] decoder = new Decoder(config); [javac] ^ [javac] symbol: class Decoder [javac] location: class SpeechRecognizer [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:146: error: cannot
find symbol [javac] final Hypothesis hypothesis = decoder.hyp(); [javac] ^ [javac] symbol: class Hypothesis [javac] location: class SpeechRecognizer [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:338: error: cannot
find symbol [javac] final Hypothesis hypothesis = decoder.hyp(); [javac] ^ [javac] symbol: class Hypothesis [javac] location: class SpeechRecognizer.RecognizerThread [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:54: error: can
not find symbol [javac] return new SpeechRecognizerSetup(defaultConfig()); [javac] ^ [javac] symbol: method defaultConfig() [javac] location: class SpeechRecognizerSetup [javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:65: error: can
not find symbol [javac] return new SpeechRecognizerSetup(fileConfig(configFile.getPa
th())); [javac] ^ [javac] symbol: method fileConfig(String) [javac] location: class SpeechRecognizerSetup [javac] 32 errors
BUILD FAILED
C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pocketsphinx-androi
d\build.xml:32: Compile failed; see the compiler error output for details.
Total time: 2 seconds
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I used many times pocketsphinx-android demo but actually i want to re-build this library because maybe i can modify for another language type. So this is my reason to build again android library.
Actually i didn't understand your response . Because i dont know what should i write to swig ? I downloaded cmusphinx packet (sphinxbase pocketsphinx pocketsphinx-android)
the directory looks like that:
C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk>dir
Volume in drive C has no label.
Volume Serial Number is 3602-8FD5
Directory of C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk
And i downloaded swigwin from http://www.swig.org/download.html and extracted to c:\swigwin\ and i added to system variables so i can use swig from command line.
than i modified this line from build.xml
<property name="ndk.ext" value=""/> to
<property name="ndk.ext" value=".cmd"/>
finally i have java jdk to complie pocketsphinx library
I used many times pocketsphinx-android demo but actually i want to re-build this library because maybe i can modify for another language type. So this is my reason to build again android library.
Actually i didn't understand your response . Because i dont know what should i write to swig ? I downloaded cmusphinx packet (sphinxbase pocketsphinx pocketsphinx-android)
the directory looks like that:
C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk>dir
Volume in drive C has no label.
Volume Serial Number is 3602-8FD5
Directory of C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk
And i downloaded swigwin from http://www.swig.org/download.html and extracted to c:\swigwin\ and i added to system variables so i can use swig from command line.
than i modified this line from build.xml
<property name="ndk.ext" value=""/> to
<property name="ndk.ext" value=".cmd"/>
finally i have java jdk to complie pocketsphinx library
I know but i can modify the structure at background for my method. I resolve this problem this is comes from under gen file the name of all data. Because now java file's name is like camel case. I modified from camelCase to CamelCase the problem resolved.
Thank you for your reply.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I am trying to make a build of pocketpshinx-android with an added getter for the audiorecord but when i build i get errors comming from the generated classes.
C:\sphinx\pocketsphinx-android>.\gradlew build
Task :compileDebugJavaWithJavac FAILED
C:\sphinx\pocketsphinx-android\build\generated-src\java\segmentList.java:11: error: cannot find symbol
public class segmentList implements Iterable<segment> {
^
symbol: class Segment
C:\sphinx\pocketsphinx-android\build\generated-src\java\nBestList.java:11: error: cannot find symbol
public class nBestList implements Iterable<nbest> {
^
symbol: class NBest
C:\sphinx\pocketsphinx-android\build\generated-src\java\segmentIterator.java:11: error: cannot find symbol
public class segmentIterator implements java.util.Iterator<segment> {
^
symbol: class Segment
C:\sphinx\pocketsphinx-android\build\generated-src\java\nBestIterator.java:11: error: cannot find symbol
public class nBestIterator implements java.util.Iterator<nbest> {
^
symbol: class NBest
C:\sphinx\pocketsphinx-android\build\generated-src\java\jsgf.java:11: error: cannot find symbol
public class jsgf implements Iterable<jsgfrule> {
^
symbol: class JsgfRule
C:\sphinx\pocketsphinx-android\build\generated-src\java\jsgfIterator.java:11: error: cannot find symbol
public class jsgfIterator implements java.util.Iterator<jsgfrule> {
^
symbol: class JsgfRule
C:\sphinx\pocketsphinx-android\build\generated-src\java\nGramModelSet.java:11: error: cannot find symbol
public class nGramModelSet implements Iterable<ngrammodel> {
^
symbol: class NGramModel
C:\sphinx\pocketsphinx-android\build\generated-src\java\nGramModelSetIterator.java:11: error: cannot find symbol
public class nGramModelSetIterator implements java.util.Iterator<ngrammodel> {
^
symbol: class NGramModel
Note: C:\sphinx\pocketsphinx-android\src\main\java\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
8 errors</ngrammodel></ngrammodel></jsgfrule></jsgfrule></nbest></segment></nbest></segment>
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Update: the whole build will run on linux throught the following this fix, install a VM(I'm on Debian but needing the aar for android studio on windows) or whatever because there's just too many problems on windows with it:
Hello . I'm so new for Sphinx Speech Recognition and i'm trying to install this for Android. I installed Java JDK and i set to enviromental variable on windows.
Than i created a file for build.properties and i put all my necessary documents directory. (SDK-NDK-Ver)
But now when i try to write
ant jar
at command line on windows. there is a problem like that.java : error : cannot find sembol blablablaa. I searched many times but now i gave up i cant understand everybody can do this but when i try that it always give me problems.
I tried remove and install again for java jdk and cmusphinx (pocketsphinx,sphinxbase,pocketsphinx-android) what should i do ?
Thank you for all reply.
PROBLEMS =
CMD LINE----->ant jar
Buildfile: C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pocketsp
hinx-android\build.xml
swig:
compile:
[mkdir] Created dir: C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-
trunk\pocketsphinx-android\build\classes
[javac] Compiling 44 source files to C:\Users\Gokhan\Desktop\cmusphinx\cmusp
hinx-code-12759-trunk\pocketsphinx-android\build\classes
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\segmentIterator.java:11: error: cannot fi
nd symbol
[javac] public class segmentIterator implements java.util.Iterator<Segment>
{
[javac] ^
[javac] symbol: class Segment
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\nBestIterator.java:11: error: cannot find
symbol
[javac] public class nBestIterator implements java.util.Iterator<NBest> {
[javac] ^
[javac] symbol: class NBest
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\nBestList.java:11: error: cannot find sym
bol
[javac] public class nBestList implements Iterable<NBest> {
[javac] ^
[javac] symbol: class NBest
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\segmentList.java:11: error: cannot find s
ymbol
[javac] public class segmentList implements Iterable<Segment> {
[javac] ^
[javac] symbol: class Segment
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\nBestList.java:26: error: cannot find sym
bol
[javac] public java.util.Iterator<NBest> iterator () {
[javac] ^
[javac] symbol: class NBest
[javac] location: class nBestList
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\segmentList.java:26: error: cannot find s
ymbol
[javac] public java.util.Iterator<Segment> iterator () {
[javac] ^
[javac] symbol: class Segment
[javac] location: class segmentList
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\nGramModelSetIterator.java:11: error: can
not find symbol
[javac] public class nGramModelSetIterator implements java.util.Iterator<NGr amModel=""> {
[javac] ^
[javac] symbol: class NGramModel
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\jsgfIterator.java:11: error: cannot find
symbol
[javac] public class jsgfIterator implements java.util.Iterator<JsgfRule> {
[javac] ^
[javac] symbol: class JsgfRule
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\nGramModelSet.java:11: error: cannot find
symbol
[javac] public class nGramModelSet implements Iterable<NGramModel> {
[javac] ^
[javac] symbol: class NGramModel
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\jsgf.java:11: error: cannot find symbol
[javac] public class jsgf implements Iterable<JsgfRule> {
[javac] ^
[javac] symbol: class JsgfRule
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\nGramModelSet.java:26: error: cannot find
symbol
[javac] public java.util.Iterator<NGramModel> iterator () {
[javac] ^
[javac] symbol: class NGramModel
[javac] location: class nGramModelSet
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\gen\edu\cmu\pocketsphinx\jsgf.java:26: error: cannot find symbol
[javac] public java.util.Iterator<JsgfRule> iterator () {
[javac] ^
[javac] symbol: class JsgfRule
[javac] location: class jsgf
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\RecognitionListener.java:33: error: canno
t find symbol
[javac] import edu.cmu.pocketsphinx.Hypothesis;
[javac] ^
[javac] symbol: class Hypothesis
[javac] location: package edu.cmu.pocketsphinx
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\RecognitionListener.java:51: error: canno
t find symbol
[javac] public void onPartialResult(Hypothesis hypothesis);
[javac] ^
[javac] symbol: class Hypothesis
[javac] location: interface RecognitionListener
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\RecognitionListener.java:56: error: canno
t find symbol
[javac] public void onResult(Hypothesis hypothesis);
[javac] ^
[javac] symbol: class Hypothesis
[javac] location: interface RecognitionListener
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:58: error: cannot f
ind symbol
[javac] private final Decoder decoder;
[javac] ^
[javac] symbol: class Decoder
[javac] location: class SpeechRecognizer
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:63: error: cannot f
ind symbol
[javac] protected SpeechRecognizer(Config config) {
[javac] ^
[javac] symbol: class Config
[javac] location: class SpeechRecognizer
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:173: error: cannot
find symbol
[javac] public Decoder getDecoder() {
[javac] ^
[javac] symbol: class Decoder
[javac] location: class SpeechRecognizer
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:186: error: cannot
find symbol
[javac] public void addFsgSearch(String searchName, FsgModel fsgModel) {
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:388: error: cannot
find symbol
[javac] protected final Hypothesis hypothesis;
[javac] ^
[javac] symbol: class Hypothesis
[javac] location: class SpeechRecognizer.ResultEvent
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:391: error: cannot
find symbol
[javac] ResultEvent(Hypothesis hypothesis, boolean finalResult) {
[javac] ^
[javac] symbol: class Hypothesis
[javac] location: class SpeechRecognizer.ResultEvent
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:33: error: can
not find symbol
[javac] import static edu.cmu.pocketsphinx.Decoder.defaultConfig;
[javac] ^
[javac] symbol: class Decoder
[javac] location: package edu.cmu.pocketsphinx
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:33: error: sta
tic import only from classes and interfaces
[javac] import static edu.cmu.pocketsphinx.Decoder.defaultConfig;
[javac] ^
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:34: error: can
not find symbol
[javac] import static edu.cmu.pocketsphinx.Decoder.fileConfig;
[javac] ^
[javac] symbol: class Decoder
[javac] location: package edu.cmu.pocketsphinx
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:34: error: sta
tic import only from classes and interfaces
[javac] import static edu.cmu.pocketsphinx.Decoder.fileConfig;
[javac] ^
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:48: error: can
not find symbol
[javac] private final Config config;
[javac] ^
[javac] symbol: class Config
[javac] location: class SpeechRecognizerSetup
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:68: error: can
not find symbol
[javac] private SpeechRecognizerSetup(Config config) {
[javac] ^
[javac] symbol: class Config
[javac] location: class SpeechRecognizerSetup
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:64: error: cannot f
ind symbol
[javac] decoder = new Decoder(config);
[javac] ^
[javac] symbol: class Decoder
[javac] location: class SpeechRecognizer
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:146: error: cannot
find symbol
[javac] final Hypothesis hypothesis = decoder.hyp();
[javac] ^
[javac] symbol: class Hypothesis
[javac] location: class SpeechRecognizer
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizer.java:338: error: cannot
find symbol
[javac] final Hypothesis hypothesis = decoder.hyp();
[javac] ^
[javac] symbol: class Hypothesis
[javac] location: class SpeechRecognizer.RecognizerThread
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:54: error: can
not find symbol
[javac] return new SpeechRecognizerSetup(defaultConfig());
[javac] ^
[javac] symbol: method defaultConfig()
[javac] location: class SpeechRecognizerSetup
[javac] C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pockets
phinx-android\src\edu\cmu\pocketsphinx\SpeechRecognizerSetup.java:65: error: can
not find symbol
[javac] return new SpeechRecognizerSetup(fileConfig(configFile.getPa
th()));
[javac] ^
[javac] symbol: method fileConfig(String)
[javac] location: class SpeechRecognizerSetup
[javac] 32 errors
BUILD FAILED
C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk\pocketsphinx-androi
d\build.xml:32: Compile failed; see the compiler error output for details.
Total time: 2 seconds
If you just want to use pocketsphinx-android you can download and use the pocketsphinx android demo with precompiled pocketsphinx-android
This error suggests you had some errors in swig, you can probably run swig from command line and see the errors there.
I used many times pocketsphinx-android demo but actually i want to re-build this library because maybe i can modify for another language type. So this is my reason to build again android library.
Actually i didn't understand your response . Because i dont know what should i write to swig ? I downloaded cmusphinx packet (sphinxbase pocketsphinx pocketsphinx-android)
the directory looks like that:
C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk>dir
Volume in drive C has no label.
Volume Serial Number is 3602-8FD5
Directory of C:\Users\Gokhan\Desktop\cmusphinx\cmusphinx-code-12759-trunk
01/02/2015 12:26 PM <DIR> .
01/02/2015 12:26 PM <DIR> ..
01/02/2015 12:25 PM <DIR> cmuclmtk
01/02/2015 12:26 PM <DIR> cmudict
01/02/2015 12:25 PM <DIR> htk2s3conv
01/02/2015 12:26 PM <DIR> logios
01/02/2015 12:25 PM <DIR> multisphinx
01/02/2015 12:25 PM <DIR> pocketsphinx
01/02/2015 09:18 PM <DIR> pocketsphinx-android
01/02/2015 12:25 PM <DIR> pocketsphinx-android-demo
01/02/2015 12:26 PM <DIR> sphinx2
01/02/2015 12:26 PM <DIR> sphinx3
01/02/2015 12:26 PM <DIR> sphinx4
01/02/2015 12:25 PM <DIR> sphinxbase
01/02/2015 12:26 PM <DIR> sphinxtrain
0 File(s) 0 bytes
15 Dir(s) 16,114,417,664 bytes free
And i downloaded swigwin from http://www.swig.org/download.html and extracted to c:\swigwin\ and i added to system variables so i can use swig from command line.
than i modified this line from build.xml
<property name="ndk.ext" value=""/> to
<property name="ndk.ext" value=".cmd"/>
finally i have java jdk to complie pocketsphinx library
my sdk-ndk location is
sdk.dir=C:/adt-bundle-windows-x86_64-20140702/sdk
ndk.dir=C:/Users/Gokhan/Desktop/Trash/android-ndk-r10d
sdk.version=20
So do you have any idea what should i do ??
You don't need to re-build the library to use another language. You
rather need different acoustic and language models.
On Sat, Jan 3, 2015 at 5:42 AM, gtarim gtarim@users.sf.net wrote:
--
Sincerely, Alexander
I know but i can modify the structure at background for my method. I resolve this problem this is comes from under gen file the name of all data. Because now java file's name is like camel case. I modified from camelCase to CamelCase the problem resolved.
Thank you for your reply.
Hi, I am trying to make a build of pocketpshinx-android with an added getter for the audiorecord but when i build i get errors comming from the generated classes.
C:\sphinx\pocketsphinx-android>.\gradlew build
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 2s
13 actionable tasks: 4 executed, 9 up-to-date
Update: the whole build will run on linux throught the following this fix, install a VM(I'm on Debian but needing the aar for android studio on windows) or whatever because there's just too many problems on windows with it:
Great! I have updated gradle according to your changes.
We have kaldi-android-demo which you are welcome to try too, it is much more accurate.
Thanks for the suggestion, I might give it a shot!
Frédéric Borgeat
On Sat, Jan 11, 2020 at 2:15 AM Nickolay V. Shmyrev nshmyrev@users.sourceforge.net wrote:
One question though, is a pocketphinx acoustic model compatible with kaldi?
Frédéric Borgeat
On Sat, Jan 11, 2020 at 9:48 PM Frédéric Borgeat fborgeat@gmail.com wrote:
[image: image.png]
I get this went trying to follow: https://github.com/alphacep/vosk-api
Frédéric Borgeat
On Sat, Jan 11, 2020 at 10:19 PM Frederic Borgeat fborgeat@users.sourceforge.net wrote:
You 'd better create an issue on github about it.
The message says you need to upgrade gradle to 5.4.1
I will but i just double checked the latest version on linux and it's 5.2.1
Frédéric Borgeat
On Mon, Jan 13, 2020 at 4:54 PM Nickolay V. Shmyrev nshmyrev@users.sourceforge.net wrote: