Skip to content

Commit

Permalink
emscripten modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Aug 2, 2011
1 parent 8d5190a commit e5d4cbd
Show file tree
Hide file tree
Showing 6 changed files with 903 additions and 16 deletions.
10 changes: 5 additions & 5 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ INSTALL = install
LN_SF = /bin/ln -sf
MKDIR = mkdir -p

AUDIO = portaudio
#AUDIO = pulseaudio
#AUDIO = portaudio
AUDIO = pulseaudio
#AUDIO = sada

ifeq ($(AUDIO),pulseaudio)
Expand All @@ -51,13 +51,13 @@ endif
speak_SOURCES = speak.cpp compiledict.cpp dictionary.cpp intonation.cpp \
readclause.cpp setlengths.cpp numbers.cpp synth_mbrola.cpp \
synthdata.cpp synthesize.cpp translate.cpp mbrowrap.cpp \
tr_languages.cpp voices.cpp wavegen.cpp phonemelist.cpp klatt.cpp sonic.cpp
tr_languages.cpp voices.cpp wavegen.cpp phonemelist.cpp klatt.cpp sonic.cpp getopt.cpp strtok.cpp

libespeak_SOURCES = speak_lib.cpp compiledict.cpp dictionary.cpp intonation.cpp \
readclause.cpp setlengths.cpp numbers.cpp synth_mbrola.cpp \
synthdata.cpp synthesize.cpp translate.cpp mbrowrap.cpp \
tr_languages.cpp voices.cpp wavegen.cpp phonemelist.cpp \
espeak_command.cpp event.cpp fifo.cpp $(WAVE) debug.cpp klatt.cpp sonic.cpp
espeak_command.cpp event.cpp fifo.cpp $(WAVE) debug.cpp klatt.cpp sonic.cpp getopt.cpp strtok.cpp

SRCS1=$(speak_SOURCES)
OBJS1=$(patsubst %.cpp,%.o,$(SRCS1))
Expand All @@ -71,7 +71,7 @@ SRCS3 = espeak.cpp
OBJS3=$(patsubst %.cpp,%.o,$(SRCS3))
LIBS3=-lstdc++ -L . -lespeak

CXXFLAGS=-O2
CXXFLAGS=-g -DNEED_WCHAR_FUNCTIONS


all: $(BIN_NAME) $(LIB_NAME) $(STATIC_LIB_NAME) $(BIN2_NAME)
Expand Down
10 changes: 10 additions & 0 deletions src/emscripten.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
echo "make"
RANLIB=/home/alon/Dev/git-emscripten/tools/emmaken.py AR=/home/alon/Dev/git-emscripten/tools/emmaken.py CXX=/home/alon/Dev/git-emscripten/tools/emmaken.py CC=/home/alon/Dev/git-emscripten/tools/emmaken.py make
echo "dis"
~/Dev/llvm-2.9/cbuild/bin/llvm-dis -show-annotations speak -o=speak.ll
echo "emscripten"
python /home/alon/Dev/git-emscripten/emscripten.py -O -s USE_TYPED_ARRAYS=2 -s ASSERTIONS=0 -s OPTIMIZE=1 -s RELOOP=1 speak.ll > speak.js
#~/Dev/mozilla-central/js/src/js -m speak.js -w wav.wav --path="/home/alon/Dev/espeak-1.45.04-source" "hello world"
#~/Dev/v8/d8 header.js speak.js footer.js
#gnome-sound-recorder wav.wav

Loading

0 comments on commit e5d4cbd

Please sign in to comment.