Heim  >  Artikel  >  Backend-Entwicklung  >  怎么通过PHP即时绘制当前话筒中的声音

怎么通过PHP即时绘制当前话筒中的声音

WBOY
WBOYOriginal
2016-06-13 12:54:04980Durchsuche

如何通过PHP即时绘制当前话筒中的声音?
需求:打开网页后显示一张图片,即时显示当前话筒中的声音的波形图。
或者不用波形图,PHP中有没有什么函数获取当前的输入声音?求指导

php 声音
------解决方案--------------------
你想做的是桌面程序?php主要是在服务器上面跑的。。。估计你得失望了。
------解决方案--------------------
呵呵....伤心是因为你找错对象了
------解决方案--------------------
主要是没有相关的音频文件parse函数,不在于哪一端的问题

帮你找了一下,这里有一个前人的成果,但我都没用过,不知道效果
http://www.phpclasses.org/package/2608-PHP-Manipulate-audio-files-in-the-WAV-format.html
最后更新 2005年

http://www.phpclasses.org/package/5365-PHP-Draw-a-graph-of-the-sound-of-a-WAV-file.html
能输出PNG图片 截图:http://www.phpclasses.org/browse/file/26979.html 最后更新 2009年

http://www.phpclasses.org/package/7501-PHP-Create-wav-file-from-multiple-audio-files.html
生成wav,好像没图片 最后更新 2012年
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn