Not a trivial problem

Good day everyone!

the mood is complex for the recognition of speech (well-read with a dictionary and a morpheme for the Russian language)
There are scripts perform actions on the received after the recognition of voice commands.
Configured a speech synthesizer.
Written scripts for server monitoring via SMS using the modified 3G modem ZTE MF180S

Need to teach the server to communicate by means of voice commands!
Research in this area:
In the system of the modem is presented ustroistva:
/dev/ttyUSB0 — unknown purpose
/dev/ttyUSB1 — managing a port
/dev/ttyUSB2 port to send at commands

When you call the number in /dev/ttyUSB1 pouring command:
RING
+CLIP: "+99897XXXXXXX",145,,,,0
the script intercepts the command, parses the line comparing the number of the incoming call with the numbers in the database and depending on this it sends a command to go off-hook (ATA) or to disconnect!!!

and now the fun part after the modem lifted the receiver need to share a voice file in WAV format 8bit / 8000hz

tried to write to the port (and which port to use?) flow and blocks 320байт in the end, the silence in the tube!
maybe when you initialize a call for voice you need to use what is at command???

UPD. With the Asterisk sign, please do not offer it as a solution.
Anyone who will help I promise plus the Karma, the problem is very important.
October 8th 19 at 01:46
5 answers
October 8th 19 at 01:48
Our skilled craftsmen was solved this problem!!!

The new whistle company Huawei, after picking up team ATA
Is written to the control port command AT^DDSETEX=2
after that an interface port is written to the sound of PCM 8000hz 16bit Mono blocks 320 bytes every 20 milliseconds if written to the port from a file the position pointer in the file with an offset of 44 bytes (the header of the WAV file)

(The problem was solved thanks to the sniffer COM port, and a terrible desire to solve the problem by his method)
well, you just mega respect and developers too :) - Salma.Pri commented on October 8th 19 at 01:51
October 8th 19 at 01:50
en.wikipedia.org/wiki/Voice_modem_command_set
It is still possible to try. Once upon a time with the Nokia via gprs worked.
thank you, still continue to dig - Salma.Pri commented on October 8th 19 at 01:53
October 8th 19 at 01:52
Judging by the forums online, it seems that ZTE modem the voice is transmitted through a separate USB port (/dev/ttyUSB0?), which driver and where to unlock this feature you have to reflash.
please tell me what forums I have seen this mention? read with denser, maybe missed something - Salma.Pri commented on October 8th 19 at 01:55
as it turned out the modem is already pereproshit also thrown mykruha zlock - Dorothy_Smi commented on October 8th 19 at 01:58
www.dc-unlocker.com/forum/showthread.php?t=3740 — then watched - Dorothy_Smi commented on October 8th 19 at 02:01
By the way the voice through the "crap" of Windows works. - Dorothy_Smi commented on October 8th 19 at 02:04
October 8th 19 at 01:54
carefully googling about asterisk and chan_dongle or chan_datacard
there is almost everything you need, and receiving a call and "prigovarivanie" wav files, etc., etc.

understand the materiel about galouye function, you probably have a firmware with the new Apple TV only under windows voice. will have to reflash.
about asterisk read what you will find on habré there were a couple of very sensible articles. (and Google has not been canceled, please note the article " is private... experience in setting up from scratch...")
browsing the beginning of the book "Asterisk — the art of telephony" — to understand the dialplan.
write ne part of the dialplan that you want and which does what you need.

this will allow you not to suffer with the invention of the Bicycle.

Oh yeah, I think your voice recognition system to * also can be screwed.

PS. use "crap" is called a dashboard.
Using asterisk, I would have already implemented it, that's the whole difficulty lies, we're not buying an Android smartphone to just SMS send. And so we are here in this decision do not want to overload the already loaded system. - Salma.Pri commented on October 8th 19 at 01:57
to be honest I think you have more time to spend in your case... I don't think you can just translate the port commands mode listen to RAW PCM and drive to your wav file. then go the other way. view source chan_datacard/dongle — they are on With like — maybe you will get lucky and find code to play back the audio stream as clear and simple for you.

but to be honest I'm surprised — empty * with chan_datacard weight "abmal" Yes, and resources eats not much.
let us look at freewswitch or equivalents.

or even a good idea — look for dasboard under *nix — there may be something that can pick up and play back your wav. - Dorothy_Smi commented on October 8th 19 at 02:00
by the way, if your work — tell me (preferably in PM) is possible without a description, but the fact fix. well, if you go on * it's something wrong tell me:) - Dorothy_Smi commented on October 8th 19 at 02:03
In any case, the solution of this problem will accomplish your goal, we have just till Monday weekend, and I decided to give the brain to exhale ) - Dorothy_Smi commented on October 8th 19 at 02:06
October 8th 19 at 01:56
yesterday I posted the script on your topic habrahabr.ru/post/192930/

Find more questions by tags Mobile communicationLinux