Skip to content

Commit bb9849f

Browse files
committed
workaround march 29-aug 17 2015
1 parent c57b4e9 commit bb9849f

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

lib/extract_utterances_from_audio.sh

+9-11
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
# Running Praat on Mac via LaunchDeamon is failing https://discuss.atom.io/t/how-to-execute-node-js-child-process-from-package/4880/2
44
# "textGridInfo": "Command failed: /bin/sh -c /Applications/Praat.app/Contents/MacOS/Praat praat-script-syllable-nuclei-v2file.praat -20 4 0.4 0.1 no \"Instructions_TDFM\" \"Instructions_TDFM.mp3\"\n",
5-
# echo $PATH
6-
# echo ""
7-
# echo "Running command: "
8-
# echo "1 $1 2 $2 3 $3 4 $4 5 $5 6 $6 7 $7 8 $8 9 $9"
9-
# echo ""
10-
# /Applications/Praat.app/Contents/MacOS/Praat $1 $2 $3 $4 $5 $6 $7 $8 $9
115

12-
# Workaround with placeholder TextGrid until we fix https://github.com/OpenSourceFieldlinguistics/FieldDB/issues/1932
13-
14-
cat lib/praat_segfault_workaround.TextGrid > "$7/$8.TextGrid"
15-
# wait 1
16-
cat lib/praat_segfault_workaround.json
6+
PATH=$PATH:/opt/X11/bin
7+
#echo "Running command: "
8+
#echo "1 $1 2 $2 3 $3 4 $4 5 $5 6 $6 7 $7 8 $8 9 $9"
9+
# echo ""
10+
#/Applications/Praat.app/Contents/MacOS/Praat $1 $2 $3 $4 $5 $6 $7 $8 $9
11+
#echo " saving to $8.TextGrid"
12+
cat /Users/fielddb/fielddbhome/AudioWebService/lib/praat_segfault_workaround.TextGrid > "$7/$8.TextGrid"
13+
wait 1
14+
cat /Users/fielddb/fielddbhome/AudioWebService/lib/praat_segfault_workaround.json

0 commit comments

Comments
 (0)