使用python控制带蓝牙的手机
我想知道是否有任何 API 可以让 python 以编程方式控制手机,例如开始和结束通话,还可以记录对话。
我还想使用电脑的耳机和麦克风来打电话。
任何信息都会很棒,我尝试用谷歌搜索一些东西,但没有找到任何有用的信息。
I would like to know if there are any API's for python to programmatically control a phone, like starting and ending calls, but also to record conversations.
I would also like to use the Headphones and Mic of the computer to talk over the phone.
Any info would be great, I tried googling for something, but nothing useful came up.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,我没有找到专门介绍其功能的页面,但它可能是一个很好的起点,无论您需要的所有内容都在其功能集中,或者您是否可以通过扩展它来构建您的应用程序。
http://code.google.com/p/pybluez/
Unfortunately I've not found a page dedicated to its features, but it could be a good starting point, whether everything you need is in its feature set, or if you could build your application upon it by extending it.
http://code.google.com/p/pybluez/
使用 PyBluez 时要小心!结果实际上取决于您使用的 BT-USB 适配器。根据硬件(其中的 BT 芯片),PyBluez 将使用一个或另一个 BT 堆栈 - 例如 WIDCOMM 的一个。结果会有所不同,因为 PyBluez 实际上是围绕这些堆栈进行的 - 所有这些都远未完成。
因此,当您有一个工作项目时,请务必知道您使用的实际 BT 堆栈是什么:)
对于 Python 音频内容,您可以尝试 这个。
Be careful when using PyBluez! The results will actually depend on the BT-USB dongle you are using. Depending on the hardware(the BT chip in there), PyBluez will use one or another BT stack - for example there was one from WIDCOMM. Results will vary, as PyBluez is actually wrapping around those stacks - all of which are far from complete.
So, when you have a working project, be sure to know what actual BT stack you were using :)
For Python audio stuff, you could try this.