>when a voice change occured
it mean a person pickup the line and say a word
Main Topics
Browse All TopicsHello experts,
I have Async Professional 4, I want an app that make a phone call and detect when this call is answered (not for other modem )
and then play a message .
I try this with TApdTapiDevice, TApdTapiStatus ,TApdComPort ( EXTAPID demo program ) and whit doc (APRO_ReferenceGuide page 400) "if a connection is established, an OnTapiConnect event is generated, the associated TapdComPort is opened, and the OnTapiPortOpen event is generated." but I can't detecte when the call is anwered, I add memo to this demo to add lines in this events but this events not are generated
when the call is answered.
Please helpme, how I can detect that the call is answared for play a message.
Thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Maybe that could help you:
http://experts-exchange.co
Hello AmirAzhdari,
Zorry but I be a little busy, please helpme to solve this problem, I try your suggestion ( I don't know if I understand you ) I put a TApdTapiDevice, TApdSapiEngine components and after connect event of TApdTapiDevice I call "Listen" procedure (with a list of words) of TApdSapiEngine, but I don't know the form to set a TApdSapiEngine for listen over phone line and not microphone.
Thanks in advance, if you have any other way to detect when the phone is pick up , please tell me.
Hello MauricioGaviria,
it mean the default device for a TApdSapiEngine is soundcard (device id= 0 ), and you should try to change
the default value to the line id (ex. 1 or 2 or ...) , i didn't work with TApdSapiEngine and i don't know if it let you to change the defaults.
anyway
this is an code to dial a line via TAPI functions and you can change that for your needs :
http://azhdari.europe.webm
after initialize/open and dialing and detecting the connect event in the linecallback func. , try to work with waveinopen/waveinpreparehe
i know working with tapi funcs. is too complex but it's flexible way
see Win SDK help and MSDN to learn more about TAPI and waveform funcs.
Regards
Amir
Delphi Win SDK help :
run the delphi and then go to Help->Windows Sdk, then in the index tab search for waveinopen/waveinpreparehe
also take a look in these links to learn more about working with these functions:
http://www.experts-exchang
http://www.experts-exchang
http://www.experts-exchang
if you want more details try with MSDN.
Regards
Amir
Business Accounts
Answer for Membership
by: AmirAzhdariPosted on 2004-05-29 at 22:49:43ID: 11189764
you are right and it's no way to detect that for voice communications
, it has no event generation for 'Voice Answer' from tapi , you can just detect 'CONNECT' then
play the wave file.
the reason is that it's not handshaking signal for the voice communications
but about 'Data Communications'
it mean if you have a 'Data Communication'(ex. send a fax)
first you dial a line , in other side a modem(or fax machine) is waiting for call and when the ring detected it'll
pick up the line and then SEND A HANDSHAKING SIGNAL TO THE LINE (TO THE CALLER) ,so the caller modem know that the communication
between two modems is established and it can start to send the fax data.
in voice communications , first you dial a line , in other side the line start a ring , a person pick up a tel and say 'hello' , but the caller modem
can't detect that word as a handshaking signal.
one way :
you can dial a line and when connect event detected, start voice recording from line continuously and call a speech recognition algorithm to test the voice changes, when a voice change occured ,so stop the recording and play your msg.