Build patch for eSpeak NG in @diffusionstudio/piper-wasm@1.0.0 (piper_phonemize.wasm)
=====================================================================================

Apply to the eSpeak NG source tree rhasspy/espeak-ng at commit
0f65aa301e0d6bae5e172cc74197d32a6182200f (the tree that piper-phonemize's
CMake ExternalProject downloads and compiles into the wasm):

    cd espeak-ng-0f65aa301e0d6bae5e172cc74197d32a6182200f
    patch -p1 < build.patch

This diff is the exact effect of the upstream build instruction (Diffusion
Studio / wide-video piper-wasm README):

    sed -i 's/using namespace std/\/\/\0/g' \
      /wasm/modules/piper-phonemize/build/e/src/espeak_ng_external/src/speechPlayer/src/speechWaveGenerator.cpp

It is the only change made to the eSpeak NG source code. (speechPlayer is
compiled by eSpeak NG's CMake build but, with -DUSE_SPEECHPLAYER=OFF, it is not
linked into libespeak-ng; the edit only lets the build finish.)

The build makes two further edits that are not to eSpeak NG or piper-phonemize
source; see build.sh, which runs them verbatim:
  1. Emscripten 3.1.47 toolchain header (cache/sysroot/include/wchar.h):
     comments out the iswalnum/iswalpha/iswblank/iswcntrl/iswgraph/iswlower/
     iswprint/iswpunct/iswspace/iswupper/iswxdigit prototypes.
  2. A CMake-generated Makefile (build/e/src/espeak_ng_external-build/
     CMakeFiles/Makefile2): comments out the "data" target, so the wasm build
     does not try to run the wasm-compiled espeak-ng to compile the voice data.
     The data is compiled instead by a native build of rhasspy/espeak-ng
     (commit 8593723f10cfd9befd50de447f14bf0a9d2a14a4) and packaged into
     piper_phonemize.data.

--- a/src/speechPlayer/src/speechWaveGenerator.cpp
+++ b/src/speechPlayer/src/speechWaveGenerator.cpp
@@ -25,7 +25,7 @@
 #include "utils.h"
 #include "speechWaveGenerator.h"

-using namespace std;
+//using namespace std;

 const double PITWO=M_PI*2;

