通过调制解调器播放WAVE文件 [英] Play WAVE file through Modem

查看:99
本文介绍了通过调制解调器播放WAVE文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我....

通过调制解调器拨电话,(MSComm1.Output ="ATDT123456;")
当聚会接电话时...
我想播放wave文件....

请帮助我
Tony

Please Help me....

dial a phone through modem, (MSComm1.Output = "ATDT123456;")
when the party pick the phone ...
i would like to play a wave file....

please help me
Tony

推荐答案

这是不可能的.
您的COM接口将仅发送数据.您需要其他硬件来做到这一点
It is not possible.
You COM interface will only send data. You need different hardware to do this


这可能是米歇尔......
你尝试过吗?


昏暗的Comport As String ="COM4"
昏暗的modemPort作为新的SerialPort(Comport,9600)
昏暗的fileByte作为Byte()
昏暗偏移量为整数= 42
modemPort.Open()
modemPort.Write("ATX4& D2DT1234567;"&vbCrLf)
modemPort.Write("AT + VTX"&vbCrLf)
modemPort.Write("AT + VSM = 133,8000"&vbCrLf)
fileByte = My.Computer.FileSystem.ReadAllBytes("C:\ bell.wav")
modemPort.Write(fileByte,offset,fileByte.Length-offset)



这是这样做的方法,但是我不知道缺少的东西,如果有人知道可以帮助我
it is possible michele......
you ever try this?


Dim Comport As String = "COM4"
Dim modemPort As New SerialPort(Comport, 9600)
Dim fileByte As Byte()
Dim offset As Integer = 42
modemPort.Open()
modemPort.Write("ATX4&D2DT1234567;" & vbCrLf)
modemPort.Write("AT+VTX" & vbCrLf)
modemPort.Write("AT+VSM=133,8000" & vbCrLf)
fileByte = My.Computer.FileSystem.ReadAllBytes("C:\bell.wav")
modemPort.Write(fileByte, offset, fileByte.Length - offset)



This is the way to do that, but something missing i don''t know, if any one know help me


这篇关于通过调制解调器播放WAVE文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆