Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.13 Support #26

Open
I-love-study opened this issue Jul 2, 2022 · 4 comments
Open

Python 3.13 Support #26

I-love-study opened this issue Jul 2, 2022 · 4 comments
Assignees

Comments

@I-love-study
Copy link
Owner

I-love-study commented Jul 2, 2022

根据 PEP 863,audioop 库将会在 Python 3.11 被标记为弃用,并在 Python 3.13 正式弃用
虽然说后面会将其作为wave的方法,但是现在还没定下来
为了防止老年痴呆导致忘记这件事情,先记上

@I-love-study I-love-study changed the title Python 3.12 Support Python 3.11 Support Aug 4, 2022
@I-love-study I-love-study self-assigned this Sep 8, 2022
@I-love-study
Copy link
Owner Author

假设一直扔到 DeprecationWarning,那就包起来罢

import warnings
with warnings.catch_warnings():
    warnings.filterwarnings("ignore", category=DeprecationWarning)
    ...

@I-love-study I-love-study changed the title Python 3.11 Support Python 3.13 Support Jun 20, 2023
@I-love-study
Copy link
Owner Author

看起来 audioop 将会在 Python 3.13 被彻底移除,并且没有相关说法指出会将 audioop 的函数放入 wave 库中
如果是这样的话,那么可能要考虑将 audioop 不分函数直接塞进 silkcoder 里面
从而达到 在不依赖其他第三方库的情况下还能对不同采样率、不同位数的 wave 文件 进行文件转化 的功能

@I-love-study
Copy link
Owner Author

不如我们直接把audioop的C语言实现直接薅过来
然后把silkcoder的vector换回C语言实现得了(

@I-love-study
Copy link
Owner Author

原来silkv3编解码器本身就支持 8000, 12000, 16000, 24000, 32000, 44100, and 48000 的输入
那我直接输入不就得了(恼)
要是真有 22050 Hz 什么的再说

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant