使用 SL4A 在 Python 中获取声音振幅
我想使用 SL4A 的 Python 编写的应用程序录制 1 秒的声音,然后找到声音的最大幅度。
是否有我可以使用的 SL4A API 的任何部分或可以使用的 Python API 的任何部分?
I want to record sound for 1 second using a Python written app for SL4A and then find the max amplitude of the sound.
Is there any part of the SL4A API I can use or part of the Python APIs that can be used?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 MediaRecorderFacade
http://www.mithril.com.au/android 进行录制/doc/MediaRecorderFacade.html
你可以试试这个
我希望有一个模块可以在python中对wave文件进行一些处理。
如果找到,就可以编译并安装。
这是一个执行此操作的文档:http://code.google.com /p/android-scripting/wiki/FAQ#Can_I_install_other_Python_modules?
You can record using the MediaRecorderFacade
http://www.mithril.com.au/android/doc/MediaRecorderFacade.html
you can try this
I hope there is a module to do some treatment on wave file in python.
If you find one you can compile and install.
Here is a doc to do it: http://code.google.com/p/android-scripting/wiki/FAQ#Can_I_install_other_Python_modules?