1

I am working on a USB modem project and I can see from hyperterminal that when a call is in progress, a certain COM port throws a stream of bytes.

What I want to do is to save this stream to disk and later play back.

I have tried copying all bytes into a file and naming it something like audio.wav. But the Windows media player or VLC media player failed to play that.

Can somebody suggest a way to parse the stream into a playable audio?

Babu James
  • 310
  • 1
  • 5
  • 14
  • The *"stream of bytes"* is not audio data; you cannot turn that data into *"playable audio"*. The data that you're capturing would be the data sent by the other (remote) modem. It could be text, it could be an executable, it's whatever data or file the other side is sending. – sawdust Nov 02 '15 at 06:41
  • @sawdust, thanks for reply. In some way I am sure that the stream contains audio bytes, but not sure of it's encoding format. so the question would be, is there any way to identify the properties. – Babu James Nov 02 '15 at 06:51
  • Why are you so sure it's *"audio bytes"*? – sawdust Nov 02 '15 at 07:16
  • 2
    @sawdust, on this gsm modem I have, it provides two COM ports, and when I call the modem from another phone, and when I issue ATA on one COM port other other one starts streaming bytes and when I speak something to it, I see the pattern changes. – Babu James Nov 02 '15 at 07:24
  • You could try playing with the file in [Audacity](http://audacityteam.org/about/). – sawdust Nov 02 '15 at 07:55

0 Answers0