BestOwl / MyPhone

Connect your mobile devices (Android/iOS/WindowsPhone) to PC
MIT License
191 stars 37 forks source link

Direct Access to SCO Audio Streams #1

Closed lohchab closed 3 years ago

lohchab commented 3 years ago

Hello, I am struggling to find a solution to access the Raw Audio Packets either in some other codecs or PCM format with the help of 32feet .NET Library I am able to dial/receive the calls via my Android Phone. But needs a way to access the Audio Stream so I can directly play some recorded sound files back to the caller automatically on call answer. But Windows 10 Bluetooth Drivers handle the SCO Connection within the driver. It will be great if you can help in getting the access to the Audio Packets/Stream someway either by the Default Microsoft Bluetooth Driver or some other custom simple driver giving SCO Connection access to the User-Space Application.

lohchab commented 3 years ago

The APIs you used in your program can be only used for the Call Control.

BestOwl commented 3 years ago

You can't do that with the default Microsoft driver. You need to install third-party drivers or write a custom profile driver (user-mode).

See also: https://github.com/MicrosoftDocs/windows-driver-docs/blob/staging/windows-driver-docs-pr/bluetooth/bluetooth-driver-stack.md https://docs.microsoft.com/en-us/windows-hardware/drivers/bluetooth/accepting-sco-connections-in-a-bluetooth-profile-driver

lohchab commented 3 years ago

You can't do that with the default Microsoft driver. You need to install third-party drivers or write a custom profile driver (user-mode).

See also: https://github.com/MicrosoftDocs/windows-driver-docs/blob/staging/windows-driver-docs-pr/bluetooth/bluetooth-driver-stack.md https://docs.microsoft.com/en-us/windows-hardware/drivers/bluetooth/accepting-sco-connections-in-a-bluetooth-profile-driver

Thanks.