Recent

Author Topic: Speech control  (Read 1329 times)

Tracker

  • Newbie
  • Posts: 2
Speech control
« on: July 15, 2019, 07:49:48 pm »
Hi,

I've built a house control system to my disabled friend with AVR. I used Lazarus to make UI and the first prototype works fine.
The next step would be to add voice control to the system. I have found a few topics in this forum and also some old articles about delphi + SAPI but haven't got anything to work.

Would anyone have an up-to-date tip on how to implement speech control?
Is there any speech recognition engine that works well together with Lazarus?


avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Speech control
« Reply #1 on: July 16, 2019, 01:06:42 am »
You should first define if you want to use some cloud speech recognition (high accuracy and many languages), some offline speech recognition (limited choice of languages), or you want to recognize specific words of a single speaker no matter the language. All that is not Lazarus specific. You can even run voice/speech recognition in a simple script and then start Lazarus applications based on it's input.

For speech synthesis take a look at:
https://forum.lazarus.freepascal.org/index.php/topic,17592.msg97318.html#msg97318

Voice recognition with AVR or STM32:
https://arjo129.wordpress.com/experiments/µspeech/

Based on my understanding of your requirements this would be your best bet:
https://oscarliang.com/raspberry-pi-voice-recognition-works-like-siri/

There are alternatives:
https://www.alatortsev.com/2018/06/28/speech-processing-on-raspberry-pi-3-b/
https://hackaday.com/2014/06/07/how-to-upgrade-jaspers-voice-recognition-with-atts-speech-to-text-api/
https://cmusphinx.github.io/2014/11/pocketvox-is-listening-you/
http://zamia-speech.org/asr/

Enough to get you going.  ;)
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

Tracker

  • Newbie
  • Posts: 2
Re: Speech control
« Reply #2 on: July 17, 2019, 06:24:31 pm »
Thanks avra! I take a look at those links.
What I'm looking for is offline speech recognition, only one language and specific (25-30) words.

This home control software  is made for Windows so Sapi would be a good choice but it seems to be impossible to get it work with Lazarus.

 

TinyPortal © 2005-2018