V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
SystemLight
V2EX  ›  Python

通过 Python 或者 js 有什么方法可以生成音频的波形图?

  •  
  •   SystemLight ·
    SystemLight · Apr 28, 2020 · 2774 views
    This topic created in 2191 days ago, the information mentioned may be changed or developed.
    9 replies    2020-04-30 11:26:18 +08:00
    HuHui
        1
    HuHui  
       Apr 28, 2020
    AudioContext
    zdnyp
        2
    zdnyp  
       Apr 28, 2020
    源代码里有画图的方法,挺有规律的
    Mozshaw
        3
    Mozshaw  
       Apr 28, 2020
    wavesurfer.js
    xiaoming1992
        4
    xiaoming1992  
       Apr 28, 2020
    感觉像是在一堆的图片里面随机挑了一个显示出来的
    zhw2590582
        5
    zhw2590582  
       Apr 28, 2020
    SystemLight
        6
    SystemLight  
    OP
       Apr 29, 2020
    @zhw2590582 请问下横轴是时间,纵轴代表的是什么,水平的分割线是分割的左右声道么?
    zhw2590582
        7
    zhw2590582  
       Apr 29, 2020
    纵轴是单一声道的数据,声道默认是 0,一半都是指左声道,你想切换右声道,可以 wf.changeChannel(1)
    zhw2590582
        8
    zhw2590582  
       Apr 29, 2020
    笔误:一半 => 一般
    SystemLight
        9
    SystemLight  
    OP
       Apr 30, 2020
    @zhw2590582 哈哈,您可能理解错了,可能我表达的不是很准确,我其实想知道的是这个纵轴的数据是不是代表的音频当前时间点的信号强度,这个应该是时域下的表现吧,时域到频域下,通过傅里叶变换,横轴变为不同的频率,纵轴代表振幅,而实际上还有一条 z 轴是代表当前时间点吧。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5773 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 01:44 · PVG 09:44 · LAX 18:44 · JFK 21:44
    ♥ Do have faith in what you're doing.