Community
cancel
Showing results for 
Search instead for 
Did you mean: 
AMont11
New Contributor I
2,900 Views

Praat Tool

Has anyone been able to install the praat tool on the Edison or rather be able to use from python on the edison?

I would greatly appreciate this, finding out how it can be done ..

Thank you !

Tags (1)
11 Replies
Pedro_M_Intel
Employee
113 Views

Hello a_Monteiro,

Why don't you try using https://github.com/JoshData/praat-py praat-py? It is a custom build of praat used in Python.

To use it you will have to install https://github.com/praat/praat praat and its dependencies:

libgtk2.0-dev

libasound2-dev

libpulse-dev

I believe they can be installed from http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html AlexT's repo.

Peter.

AMont11
New Contributor I
113 Views

Hi,

I tried the praat-py but there or whatever module pertains to the praat tool but they all call the tool. The praat tool requires the libgtk which is a graphical library, so it is not available with opkg. I have tried to look at the source code itself which is written is C++ and C code but they also still need the libgtk libraries. I am trying to now to look for another module in python that does audio feature extraction. So far no luck. Know of any, whether it is in python and or C ???

Thanks

Pedro_M_Intel
Employee
113 Views

Actually libgtk is available in AlexT's repo. You can download either libgtk-2.0 (2.24.24) or libgtk-3.0 (3.12.2) from it. In case you haven't configured the repo you can do it with the following commands:

echo src/gz all http://repo.opkg.net/edison/repo/all http://repo.opkg.net/edison/repo/all > /etc/opkg/base-feeds.conf/

echo src/gz edison http://repo.opkg.net/edison/repo/edison http://repo.opkg.net/edison/repo/edison >> /etc/opkg/base-feeds.conf/

echo src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32 http://repo.opkg.net/edison/repo/core2-32 >> /etc/opkg/base-feeds.conf/

opkg update

# Now you can install either libgtk-2.0 or libgtk-3.0

opkg install libgtk-X.0

Peter.

AMont11
New Contributor I
113 Views

awesome, I was able to get most of the libraries but praat seems to require an older version is the libstdc++.so.6 .

More specifically I did an ldd for praat and this is the only complain that it has : /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./praat).

I ran the commands to check if the version is available so that I can link to it but it does seem to be available:

strings /usr/lib/libstdc++.so.6 | grep GLIBC

GLIBCXX_3.4

GLIBCXX_3.4.1

GLIBCXX_3.4.2

GLIBCXX_3.4.3

GLIBCXX_3.4.4

GLIBCXX_3.4.5

GLIBCXX_3.4.6

GLIBCXX_3.4.7

GLIBCXX_3.4.8

GLIBCXX_3.4.9

GLIBCXX_3.4.10

GLIBCXX_3.4.11

GLIBCXX_3.4.12

GLIBCXX_3.4.13

GLIBCXX_3.4.14

GLIBCXX_3.4.15

GLIBCXX_3.4.16

GLIBCXX_3.4.17

GLIBCXX_3.4.18

GLIBCXX_3.4.19

GLIBCXX_3.4.20

GLIBC_2.3

GLIBC_2.0

GLIBC_2.1

GLIBC_2.17

GLIBC_2.1.3

GLIBC_2.3.2

GLIBC_2.2

Anyone able to tell me how i can get the version i need to run this tool(3.4.21) ?

thanks

Admir M.

Pedro_M_Intel
Employee
113 Views

libstdc++ can also be found in AlexT's repo, have you tried to download it from there?

In case you need an older version, you might be interested in https://gcc.gnu.org/install/old.html GCC's old installation guide or the https://gcc.gnu.org/install/ current guide in case the version you need is not that old.

Peter.

AMont11
New Contributor I
113 Views

does libstdc++ come with gcc or can I install it separately? I did try the repo but the current version which I have opkg doesn't upgrade.

AMont11
New Contributor I
113 Views

I am looking to try to install gcc 5.3 but that seems it'll take tons of space. I started looking around the Edison to see if the gcc that is installed on it specific and it seems like it is(586-poky-linux-gcc (GCC) 4.9.1). Is there a way to install a newer kind of gcc for the Edison with poky-linux?

Pedro_M_Intel
Employee
113 Views

If you need to install GCC 5.3, I'd suggest you to read http://www.linuxfromscratch.org/blfs/view/svn/general/gcc.html GCC-5.3.0

Peter.

AMont11
New Contributor I
113 Views

Thanks, I used that link already to help me build and I am currently trying to install gcc .

Also this link helped me too .http://juniway.blogspot.com/2015/06/install-gcc510-on-ubuntu-1204build-from.html Get Things Work Is Not Hard: Install the latest gcc 5.3 on Ubuntu 12.04(Build from source code)

I hope this helps me get the right version of libstdc++.so.6 that I need.

Ill right back on here if the praat tool works.

Admir M.

Pedro_M_Intel
Employee
113 Views

I can see in that you were able to install the latest version of GCC and that you are now looking to install the newest version of libstd. Do you have any updates on this?

Peter.

AMont11
New Contributor I
113 Views

yes the newer version of the libstdc++ comes with the gcc that I installed and I was able to link the library and now Praat works on the Edison.

Reply