473,325 Members | 2,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Play audio file on the telephone through a modem

I wanted to make a Java application which would dial a telephone
number using the modem. When the person on the other end lifts up the
telephone (answers the phone), the application should start playing an
audio file(eg. .wav file).

The approach I took was using the Java Communications
API(javax.comm.). As my modem is connected to the serial port on my
computer I send AT commands to make the phone call (ATDT2222222). This
is working fine and the call is being placed. I can also send the
audio file the serial port throught the OutputStream class. Now after
this I am struck. How do I play this file.

I wanted to know whether this is possible at all? Whether I am
approaching the wrong way? If it is possible, then please give some
suggestions or samples. If it is not possible , then what is the best
way to do so (like eg. JTAPI, Java Sound API).
Jul 17 '05 #1
1 10359
Err... I don't quite see what you where thinking...

1) ATDT just calls and try to connect... you need to check the AT reference
for your modem and see how you make a voice phonecall...

2) Just sending the audio file to the modem won't work for IMHO quite
apparent reaons... You need to play it using your soundcard (if your modem
has got a connector for headset, then connect the output from your soundcard
to the microphone connector).

// Christopher

"Ashish" <as******@hotmail.com> skrev i meddelandet
news:7b**************************@posting.google.c om...
I wanted to make a Java application which would dial a telephone
number using the modem. When the person on the other end lifts up the
telephone (answers the phone), the application should start playing an
audio file(eg. .wav file).

The approach I took was using the Java Communications
API(javax.comm.). As my modem is connected to the serial port on my
computer I send AT commands to make the phone call (ATDT2222222). This
is working fine and the call is being placed. I can also send the
audio file the serial port throught the OutputStream class. Now after
this I am struck. How do I play this file.

I wanted to know whether this is possible at all? Whether I am
approaching the wrong way? If it is possible, then please give some
suggestions or samples. If it is not possible , then what is the best
way to do so (like eg. JTAPI, Java Sound API).

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: laredotornado | last post by:
Hello, I want to play an audio file embedded on my page by clicking on an audio image and the page change to a new page. Is there a cross-browser Javascript way to do this? Right now the code I...
0
by: laredotornado | last post by:
Hello, I want to play an audio file by clicking on an audio icon and not having the page switch out underneath. Right now the code I have is ... <html> <head> <title>Dictionary:...
22
by: MLH | last post by:
I have some audio help files that play fine from within Access 97 and Access 2.0. Both are running on a Windows XP box. But I do not know what program plays the files. If I click Start, Run and...
2
dmjpro
by: dmjpro | last post by:
plz tell me how to play audio file in js thanks in advance
7
kamill
by: kamill | last post by:
I need to play audio file in media player using PHP, how can i integrate it?
0
by: universe | last post by:
hi friends, I am developing a webapplication (using ASP.NET 2.0). In that I need to play audio file in the following scenario. Case 1: Only one file will be given as input to audio...
1
by: =?Utf-8?B?Qm9iQWNoZ2lsbA==?= | last post by:
I am using Windows Media Player to play my half second audio files one after the other using the code below... My problem comes when I play a second audio file immediately after the first one...
4
nicebasic
by: nicebasic | last post by:
I have written a small French-English Dictionary using VB. I have come to a serious problem which is new to me. Maybe I didn't notice this problem before, but it's a bad bug in my program. I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.