Lurker News

Comments (85) 18 threads

ftreml3 replies#
This project is the result of a one year long learning process in speech recognition and speech synthesis.

The original task was to automate the testing of a voice-enabled IVR system. While we started with real audio recordings, very soon it was clear that this approach is not feasible for a non-trivial app and it will be impossible to reach a satisfying test coverage. On the other hand, we had to find a way to transcribe the voice app response to text for doing our automated assertions.
As cloud-based solutions where not an option (company policy), we very quickly got frustrated as there was no "get shit done" Open Source stack available for doing medium-quality text-to-speech and speech-to-text conversions. We learned how to train and use Kaldi, which is according to some benchmarks the best available system out there, but mainly targeting academic users and research. We made heavy-weight MaryTTS work to synthesize speech in reasonable quality.
And finally, we packaged all of this in a DevOps-friendly HTTP/JSON API with a Swagger definition.
As always, feedback and contributions are welcome!

dillonmckay1 reply#
What was the IVR software you were using, was that bespoke?
ftreml#
no, it was a special call center software called vacapo.
yorwba1 reply#
You should indicate somewhere which languages are supported. You mention Deepspeech German in the credits, but did you use it to implement support for German or just to inform your architectural choices?
ftreml2 replies#
good point, will add this information. in short, german and english, because those are the languages i am comfortable with. i hope to find native speakers contributing more languages. deepspeech was evaluated, but right now kaldi provides better performance, thats why we stick to kaldi by default.
magicalhippo3 replies#
> deepspeech was evaluated, but right now kaldi provides better performance

Was this before the streaming API was added to DeepSpeech? I recently did some testing with it, and it provides text within ~100ms of last audio block on my PC.
edit: that is, the most significant latency I had was from having to wait a bit to detect end of speech.

Continue this thread — 3 replies

StudentStuff2 replies#
Mozilla DeepSpeech has seen significant improvements in the quality of results it provides (and RAM/CPU usage) since early December, the accuracy of transcriptions has substantially improved in our testing.

Continue this thread — 2 replies

ayumu7221 reply#
I've built a speech synthesis system with Marytts before, it works, but unfortunately, the quality is not very good, HMM and unit selection speech synthesis are now very old approaches, they are far from the current state of the art, you should try open-source implementations of Tacotron2 or wavnet, you will surely achieve better quality.
ftreml1 reply#
are you ready for a pull request ?
ayumu722#
I'll be very pleased, but I can't promise anything. Good job by the way, Speech synthesis and Speech recognition are not easy subjects to work on.
pouta1 reply#
I built something quite similar on my own product. Is there any interest on adding more STT/TTS backends to the software? Think services like Lyrebird or Trint.

I could contribute towards it since I have done it before.
Thank you for building this!

ftreml#
yes absolutly! it should be a good mix of freely available packages, with meaningful default configuration.
ftreml#
marytts supports a high number of voices in several languages. you could try to use another voice.
ftreml1 reply#
zamia-speech: asr training scripts for research purposes, several ready trained asr models for download, based on voxforge data. zamia-speech is the (very hard in terms of know-how, hardware and software requirements) training part to be done where projects like botium speech processing are be based upon.

the other one is an example for packaging kaldi in a docker container.

sandreas1 reply#
Thank you :-) I tried to get in touch with

https://www.vorleser.net/
in the past to provide Speech training data, but they were not really interested. I thought it would be great to improve STT having a real good and HUGE set of german audiobooks based on Text, that is publicly available... unfortunately i had no success trying to script something for this purpose (mainly lack of time).

Load more comments