As far as I know, I can use apache to config the web server to do the thing @ben_jones12 said, but I failed. Does anyone has experience of doing such thing before?
Can you show me how to implement 2 things like @ben_jones12 mentioned above?
You need to ensure the folder /var/www/tts is owned by www-data. Then add the following apache2 conf file;
###############################
# Local access to HTTP wrappers for TTS service
###############################
<Location /tts>
Options None
Order deny,allow
Deny from all
Allow from localhost
Allow from 192.168.10.0/255.255.255.0
</Location>
so here is the thing I going to do, can you verify them:
sudo chown www-data: /var/www/tts
add the following code to /etc/apache2/apache2.conf file: (But the IP address is my raspberry pi’ IP address)
###############################
# Local access to HTTP wrappers for TTS service
###############################
<Location /tts>
Options None
Order deny,allow
Deny from all
Allow from localhost
Allow from 192.168.10.0/255.255.255.0
</Location>
It would be much better to implement this directly as a bundle, which simply accesses the tts engine through command line calls - this would be less of a hack.
@Kai Furthermore, many thread on this forum said that several TTS engine bundle are unstable or gone away, such as voicesrr or MaryTTS, GoogleTTS…Can you show me what should I do to have a stable and acceptable quality TTS system without so many hacks? Thanks very much
I tried espeak,festival and I found the voice was quite robotic (from below link):
I installled voicerss in my raspberry pi 3 and I successfully tested it by using tts command on terminal. But when I tried using say command in the rules file, I couldn’t hear anything
So I think it is possible to write script file or .sh file so that we can activate TTS engine (VoiceRSS in this case) from those files. But I don’t know how to write it (my coding ability is extremely limited). I dont know how to call those script files from rules file, either.
So anyone can show me some examples and tips?
Thanks sooo much!