NeoSpeech
neospeech
is a client library for NeoSpeech TTS written in Node.js.
Dependencies
ffmpeg
libmp3lame
for mp3libvorbis
for ogg
Refer to Installing FFmpeg section for more details.
Installation
$ npm install neospeech
Usage
var neospeech = new // host: '127.0.0.1', // port: 7000;
API
Convenience Functions
neospeech;neospeech;neospeech;neospeech;neospeech;neospeech;neospeech;neospeech;neospeech;neospeech;neospeech;
Request Buffer
neospeech;
Request Buffer Ex
neospeech;
Request Buffer SSML Ex
neospeech;
Request File
neospeech;
Request File Ex
neospeech;
Request File SSML
neospeech;
Request Status
neospeech;
Development
Compiling C++ Binding
$ node-gyp configure && node-gyp build
FFmpeg
InstallingUbuntu
$ apt-get install ffmpeg libavcodec-extra-52
$ apt-get install lame vorbis-tools
$ apt-get install libmp3lame-dev libmpg123-dev
Amazon Linux / Cent OS
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-develmkdir ~/ffmpeg_src # yasm yum install yasm # libfdk_aac cd ~/ffmpeg_srcgit clone --depth 1 git://github.com/mstorsjo/fdk-aac.gitcd fdk-aacautoreconf -fiv./configure --disable-sharedmakemake installmake distclean # libmp3lame cd ~/ffmpeg_srccurl -L -O http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gztar xzvf lame-3.99.5.tar.gzcd lame-3.99.5./configure --disable-shared --enable-nasmmakemake installmake distclean # libogg cd ~/ffmpeg_srccurl -O http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gztar xzvf libogg-1.3.1.tar.gzcd libogg-1.3.1./configure --disable-sharedmakemake installmake distclean # libvorbis cd ~/ffmpeg_srccurl -O http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gztar xzvf libvorbis-1.3.3.tar.gzcd libvorbis-1.3.3./configure --disable-sharedmakemake installmake distclean # ffmpeg cd ~/ffmpeg_srcgit clone --depth 1 git://source.ffmpeg.org/ffmpegcd ffmpeg./configure --enable-gpl --enable-nonfree --enable-pthreads --enable-postproc --enable-libfdk_aac --enable-libmp3lame --enable-libvorbis --enable-filters --enable-runtime-cpudetectmakemake installmake distclean
Credits
See the contributors.
License
The MIT License (MIT) Copyright (c) 2012-2013 Pilwon Huh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.