Praat is installed in Docker, but shows as unavailable to FAVE-extract

130 views
Skip to first unread message

Rolando Coto

unread,
May 30, 2018, 2:39:06 AM5/30/18
to FAVE (Force Alignment and Vowel Extraction) Users Group

Hi, everyone!

I recently built a FAVE docker container in MacOS (High Sierra 10.13.4, using Docker Community Edition 18.03.1-ce-mac65 24312). FAVE-align worked perfectly, but FAVE-extract has a problem. When I tell it to extract, it tells me that 'praat' is not in my path.

root@5a1c128e7532:/opt/FAVE/FAVE-extract# ./bin/extractFormants.py /opt/audio/Rebecca1f.wav /opt/audio/Rebecca1f.TextGrid output
Processed options.
Read CMU phone set.
ERROR: Praat was specified as the speech analysis program, but the command 'praat' ('praatcon' for Windows) is not in your path


However, I installed praat (apt-get -y install praat), and it does appear to be available in the PATH variables. For example:

root@5a1c128e7532:/opt/FAVE/FAVE-extract# which praat 
/usr/bin/praat

root@5a1c128e7532:/opt/FAVE/FAVE-extract# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/FAVE/FAVE-align:/opt/FAVE/FAVE-extract

root@5a1c128e7532:/opt/FAVE/FAVE-extract# praat

(praat:1751): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(praat:1751): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(praat:1751): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(praat:1751): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed

(praat:1751): Gdk-CRITICAL **: IA__gdk_colormap_get_visual: assertion 'GDK_IS_COLORMAP (colormap)' failed

(praat:1751): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed

(praat:1751): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(praat:1751): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(praat:1751): Gdk-CRITICAL **: IA__gdk_window_new: assertion 'GDK_IS_WINDOW (parent)' failed
Segmentation fault

What am I missing in order to run FAVE-extract? Thank you so much!

- rolando

Scott Seyfarth

unread,
May 30, 2018, 2:05:53 PM5/30/18
to fave-...@googlegroups.com
Hi Rolando,

It might be a problem with case. extractFormants.py expects the name of the praat binary to be capitalized on MacOS and Linux (GitHub issue). If you don't mind doing so, one way to fix might be to create a symlink named Praat to the existing praat, as in that link. Otherwise, you could try making these two changes:

1) Update the config file to include:
--speechSoftware
praat
2) Uncapitalize the string "Praat" on line 2079 of extractFormants.py so that the line becomes:

PRAATNAME = "praat"

Maybe extractFormants.py could be changed to just check all of the expected names (praat, Praat, praat.exe, praatcon.exe, maybe others?) rather than guessing based on OS, since Praat 6.0 on Windows doesn't use praatcon anymore anyway.

Scott

--
You received this message because you are subscribed to the Google Groups "FAVE (Force Alignment and Vowel Extraction) Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fave-users+...@googlegroups.com.
To post to this group, send email to fave-...@googlegroups.com.
Visit this group at https://groups.google.com/group/fave-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/fave-users/34508314-6b8c-47de-a5a9-adb10efc5466%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages