Bluetooth communication from PC to mobile phone, use laptop speaker and mic during voice call

独自空忆成欢 提交于 2020-01-21 06:48:26

问题


I am using 32feet.net library for connecting with Bluetooth mobile phone. I have successfully discovered devices, successfully paired with device. I have successfully made a call using AT command with the help of Bluetooth dial with 32feet.net and c#

I want to use the speaker and mic of laptop during the voice call going on the mobile phone.

My C# code for dialing a call is

BluetoothEndPoint bep = new BluetoothEndPoint(phone.DeviceAddress,BluetoothService.Handsfree);

cli = new BluetoothClient();

cli.Connect(bep);
peerStream = cli.GetStream();
peerStream = Listofdevices.cli.GetStream();
String dialCmd4 = "ATD"+txtdialer.Text+";\r\n";
Byte[] dcB = System.Text.Encoding.ASCII.GetBytes(dialCmd4);
Listofdevices.peerStream.Write(dcB, 0, dcB.Length);

Byte[] sRes = new Byte[200];
peerStream.Read(sRes, 0, 199);

How can I use my speaker and mic of laptop for communication on the call?

来源:https://stackoverflow.com/questions/27330172/bluetooth-communication-from-pc-to-mobile-phone-use-laptop-speaker-and-mic-duri

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!