douggore / picopi Goto Github PK
View Code? Open in Web Editor NEWPort of Android Pico TTS to the Raspberry Pi
Port of Android Pico TTS to the Raspberry Pi
For the text synthesis, apart from "ignore","paragraph" and "sentence" , all the tags are not parsed correctly by the interpreter (for instance the very important tags like "speed ="300"" or "break_time" are read as normal text).
Could be that some tags features are not supported?
Hello,
ttstest make fail on latest Raspbian:
In file included from svox_ssml_parser.cpp:22:0:
svox_ssml_parser.h:21:19: fatal error: expat.h: no such file or folder
compilation terminated.
I tried to apt-get install expat but same result
when following the instructions i get the following error:
pi@raspberrypi ~/picopi/pico/tts $ sudo make
g++ -L../lib/ strdup16to8.c strdup8to16.c svox_ssml_parser.cpp com_svox_picottsengine.cpp main.cpp -lexpat -lsvoxpico -I../compat/include/ -I../lib/ -fpermissive -o testtts
g++: error: com_svox_picottsengine.cpp: No such file or directory
Makefile:35: recipe for target 'all' failed
make: *** [all] Error 1
Last Raspbian Buster lite image. Any idea ?
|--------------------------------------------------------------------------------|
| This SETTING wil be used: |
| |
| --make: "True" |
| --lang-tts: "FRA" |
| --lang-bin-dir: "../lang/" |
| --2std: "True" |
| Binary name: "./picoPi2Stdout" |
| |
|--------------------------------------------------------------------------------|
| |
Correct SETTINGS (Y/N) $> Y
| |
|--------------------------------------------------------------------------------|
Compiling ...
g++ -L../lib/ strdup16to8.c strdup8to16.c svox_ssml_parser.cpp picottsengine.cpp main.picoPi2Std.cpp -lexpat -lsvoxpico -I../lib/ -fpermissive -o picoPi2Std
In file included from strdup16to8.c:23:
jstring.h:27:18: warning: redeclaration of C++ built-in type ‘char16_t’ [-fpermissive]
typedef uint16_t char16_t;
^~~~~~~~
In file included from strdup8to16.c:21:
jstring.h:27:18: warning: redeclaration of C++ built-in type ‘char16_t’ [-fpermissive]
typedef uint16_t char16_t;
^~~~~~~~
In file included from svox_ssml_parser.cpp:25:
jstring.h:27:18: warning: redeclaration of C++ built-in type ‘char16_t’ [-fpermissive]
typedef uint16_t char16_t;
^~~~~~~~
In file included from picottsengine.cpp:58:
jstring.h:27:18: warning: redeclaration of C++ built-in type ‘char16_t’ [-fpermissive]
typedef uint16_t char16_t;
^~~~~~~~
main.picoPi2Std.cpp: In function ‘int main(int, char**)’:
main.picoPi2Std.cpp:138:49: warning: invalid conversion from ‘uint8_t*’ {aka ‘unsigned char*’} to ‘int8_t*’ {aka ‘signed char*’} [-fpermissive]
result = ttsEngine->synthesizeText(argv[1], synthBuffer, OUTPUT_BUFFER_SIZE, NULL);
^~~~~~~~~~~
In file included from main.picoPi2Std.cpp:7:
TtsEngine.h:235:65: note: initializing argument 2 of ‘virtual android::tts_result android::TtsEngine::synthesizeText(const char*, int8_t*, size_t, void*)’
virtual tts_result synthesizeText(const char *text, int8_t *buffer,
~~~~~~~~^~~~~~
root@raspberrypi:~/picoPi2/tts#
Hi @DougGore !
I was watching AndroidPolice the other day. And wonder when you will update the TTS engine for newer version of Android TTS?
There seems to have been made significant changes to the engine and I would love to see some of these changes (Ex. http://www.androidpolice.com/2016/03/29/google-is-rolling-out-a-much-more-natural-tts-voice-video/)
Hello Doug.
Thank you for making this very nice tool available to the community. Is it possible to add more TTS languages? Our application would need greek language and cross compiling for processor ARM920T rev 0 (v4l)
Thanks
This problem may be due to my inexperience with linux, but when you run the test program in picopi/pico/tts/ folder like:
./testts "Testing SR" | aplay (etc...)
, it runs fine. But if you do something like
/home/pi/picopi/pico/tts/testts "Testing SR" | aplay (etc...)
It returns "Failed to load language" and then doesn't release the audio device so that I have to reboot. How can I get around this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.