-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Could Japser work on OS X? #35
Comments
from what i've been reading/learning it seems possible though you may have trouble compiling and the instructions are not written for the mac terminal so you would have to enter the equivalent commands. (for example... no apt-get) |
FYI.. I've spent about an hour trying to get it working with no luck yet.. Here are my steps thus far: 1: Install Homebrew 2: Install PIP 3: Install setuptools 4: Install Numpy 5: Install PyAudio 6: Install PocketSphynx: 7: Edit: jarvis/client/requirements.txt 8: Install all requirements via pip |
I managed to get pocketsphinx working. You need to install it by hand (see http://jasperproject.github.io/documentation/software/#installing-sphinx). Some problems I had:
|
Thanks!!.. I was actually about to do the same thing :) |
For those following the steps, the next problem (for me) shows up when building openfst.."'tr1/unordered_map' file not found" |
@the01 Did you do anything special to link pocketsphinx to the OSX python libs? I've followed the instructions, its "installed" according to sudo make install, but when i run jasper it still says the module is not found..? |
@qpaulson did you run python setup.py install in pocketsphinx-0.8/python/ ? also I am now stuck at m2m-aligner..I cant seem to get it to install |
when installing mitlm:
|
Could anyone who gets this working please post detailed steps? I was able to compile pocketsphinx, but I get "Failed to open audio device" whenever I run |
This is a good idea, but one that we haven't really explored. Would be happy to add instructions to the docs if you do get it working! |
I got this working this weekend on my MacBookPro (OS X 10.7.5) by following the steps posted by @qpaulson and @the01 with a few more minor tweaks. Here are the steps I took. If there is interest, I can send a pull request to add this to the Docs. Summary:
In jasper-client/boot/boot.sh, I modified the script to export /home/pi/jasper/client/I simply updated the first line to cd to the jasper-client/clientdirectory which contains the required binaries. I know this isn't the ideal way of doing this, but it got me up and running. I wrote several modules and I've got Jasper checking my bus schedule and starting Netflix playback for me using Selenium WebDriver. I'd be interested to get the authors' take on porting Jasper to OS X. Is the intent to keep the codebase completely platform independent, or could we factor out modules that may differ between the RPi and other platforms and select a platform-specific implementation at runtime? (e.g., an implementation of Mic using |
This is fantastic!! I would definitely support making Jasper more Platform agnostic!.. Also, some of the packages are not for the core software, but for the Thanks for drudging through this! On Sun, Apr 27, 2014 at 9:40 PM, Andrew Stahlman
Quintin Paulson |
I'm following the series of steps here from @qpaulson, @the01 and @astahlman, and now I'm stuck at:
It seems to have something to do with Cython. I Cython installed, but I'm not sure what else I need to do. Any ideas here? |
I would be very much interested in running on iOS as well. +1 for multi-platform approach. |
See #100 I've now got Jasper running off of the same code base running on RPi and my Macbook. |
@astahlman did you have problems with the tr1/unsorted_list include? I managed to bypass the manual installation of openfst using homebrew. But with phonetisaurus and mitlm it was not possible. I'm almost there! |
Sorry, I'm afraid I can't be much help there - I never encountered any such On Mon, Jul 28, 2014 at 11:42 AM, Nikolas Moya notifications@github.com
|
@NaviDeck-fdim I have everything but Speech to Text working in the Pythonista App on iOS. |
I get close, but with Phonetisaurus:
Thoughts anyone? Combined with above, my notes:
|
It's a linking problem. Can you edit this compilation line? If so, try putting -lfst in another position, for example right after g++. Good to know that M2M worked with gcc49. |
@nmoya, thanks for the quick response. Editing the line didn't work. I searched my hd for Thoughts?
|
Ok. Leave the compilation line as it was before (with -lfst after the .o files) I believe that libfst.la is the file the compiler needs. More explanation about .la files can be found here (http://stackoverflow.com/questions/1238035/what-is-libtools-la-file-for). I am not sure why its giving the error, since you have installed openfst with brew.
I wish I could give you a more precise answer. |
@nmoya Thanks for the effort. Adding the direct path doesn't work for all 3 of the Ugh I'm so close yet so far. Thoughts? If this helps at all. Mavericks 10.9.4
|
It looks like even once you get past the compiler and various environment errors that there isn't a working audio backend for OS-X yet. This is the warning I see now:
A few related tickets documenting it won't work:
I would really love to see this working or to find out about a good alternative to Google so that this will work offline on a Mac. |
Jasper should work on OSX. If it does not, please file a new issue. Closing this due to inactivity. |
@jefftriplett Support for OSX audio backend is now available in the development version of sphinxbase as noted on the bug you referenced. I've created some head-only Homebrew formulae to help with installing them. |
@watsonbox thanks for the follow up and for making the Sphinxtrain and making the update available. Nice job! |
Hi, I tried the steps as above to setup jasper on osx, I have problems in compiling phonetisaurus. **g++ -O2 -I3rdparty/sparsehash -I3rdparty/utfcpp -c Phonetisaurus.cpp -o Phonetisaurus.o My g++ -v output |
Just an FYI for new installers, the Homebrew link stated toward the top is old. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
I actually got phonetisaurus to compile with liberal editing of compile flags in the makefile. BUT I don't think this is what you want for jasper! For Jasper, we need phonetisaurus-g2p, which is available from the repo dump at the closed google code page. Within this archive is a folder 'g2p2rnn'
then ran Please correct me if I'm wrong, I've not got Jasper running yet! |
@nitsujri First thing you could try is to choose another |
Thanks for your Phonetisaurus pointer. I have Jasper running on Mac (El Capitan) now, and this was one of the last things I needed to sort out. I found that the Phonetisaurus version you pointed to was a different (I assume newer) version with different args. I changed g2p.py to check for which version was present and alter the args accordingly, and it's all up and running now. |
I need some help installing MITLM, could someone please help me? When using ./autogen.sh, I run into the following errors -> checking for ANSI C header files... (cached) yes These are the steps I've done till now... $ brew tap watsonbox/cmu-sphinx Install the libraries: $ brew install --HEAD watsonbox/cmu-sphinx/cmu-sphinxbase openfst homebrew GFortran -> https://gcc.gnu.org/wiki/GFortranBinaries#MacOS |
I installed MITLM by changing line 325 in |
Got it working on my machine pretty well, if you have questions feel free to ask. EditTutorial here: https://github.com/pudility/jasper-osx |
I think it would be great if I could run Jasper on my Macbook. Would that be possible? I'm looking at the documentation and it seems like it could work with some extra configuration, but I don't know enough about the internals to know how if it's possible.
The text was updated successfully, but these errors were encountered: