有没有办法在 FLV 上使用 AS3 的声音对象方法
我正在使用 Flash Media Server 录制和播放麦克风输入,即使它只是音频,我们也会将输出保存为 FLV。我想获得录制音频的波形。理想情况下,由于我们已经有大量保存/录制的音频,我想要一些可以加载 FLV 并获取波形的东西,而不是在录制或播放时生成波形。
AS3 有新的 Sound.extract() 方法可以用于此目的(大量在线教程),但它似乎只适用于 MP3。有没有办法在 FLV 音频上使用这种方法?或者还有其他方法可以从 FLV 中提取波形吗?谢谢。
I'm recording and playing back mic input using Flash Media Server, and even though it's just audio, we're saving the output as FLV. I'd like to get a waveform of the recorded audio. Ideally, since we already have a lot of saved/recorded audio, I'd like something that can take a loaded FLV and get the waveform, as opposed to generating it at record or playback time.
AS3 has the new Sound.extract() method that can be used for this (plenty of online tutorials), but it seems like it only works for MP3. Is there a way to use this method on FLV audio? Or is there another to extract a waveform from a FLV? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 SoundMixer.computeSpectrum 生成当前正在播放的声音的全局快照。
返回数据是包含一些音频信息的 ByteArray
下面的 Adobe 文档链接提供了更多详细信息:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/SoundMixer.html#computeSpectrum()
希望有帮助!
You could use the SoundMixer.computeSpectrum to generate a global snapshot of sound that is currently playing.
The return data is a ByteArray containing some audio information
The Adobe´s documentation link below has more details:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/SoundMixer.html#computeSpectrum()
Hope it helps!