bugfix
This commit is contained in:
parent
d61e7ebf09
commit
bb96f77635
10
appPublic/wav.py
Normal file
10
appPublic/wav.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from pydub import AudioSegment
|
||||||
|
|
||||||
|
def convert_to_16k_mono(in_wav_path, out_wav_path):
|
||||||
|
audio = AudioSegment.from_wav(in_wav_path)
|
||||||
|
audio = audio.set_frame_rate(16000).set_channels(1)
|
||||||
|
audio.export(out_wav_path, format="wav")
|
||||||
|
|
||||||
|
# 用法
|
||||||
|
# convert_to_16k_mono("input.wav", "output_16k_mono.wav")
|
||||||
|
|
40
pyproject.toml
Normal file
40
pyproject.toml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
[project]
|
||||||
|
name="appPublic"
|
||||||
|
version = "5.5.0"
|
||||||
|
description = "Your project description"
|
||||||
|
authors = [{ name = "yu moqing", email = "yumoqing@gmail.com" }]
|
||||||
|
readme = "README.md"
|
||||||
|
requires-python = ">=3.8"
|
||||||
|
license = {text = "MIT"}
|
||||||
|
dependencies = [
|
||||||
|
"xlrd",
|
||||||
|
"bs4",
|
||||||
|
"xlwt",
|
||||||
|
"nanoid",
|
||||||
|
"psutil",
|
||||||
|
"ujson",
|
||||||
|
"numpy",
|
||||||
|
"rsa",
|
||||||
|
"brotli",
|
||||||
|
"aiohttp",
|
||||||
|
"upnpclient",
|
||||||
|
"py-natpmp",
|
||||||
|
"asyncio ",
|
||||||
|
"aiohttp",
|
||||||
|
"aiohttp_socks",
|
||||||
|
"requests",
|
||||||
|
"jinja2",
|
||||||
|
"pyzmq",
|
||||||
|
"cryptography",
|
||||||
|
"bcrypt",
|
||||||
|
"asyncssh",
|
||||||
|
"eventpy"
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
dev = ["pytest", "black", "mypy"]
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=61", "wheel"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
@ -1,22 +0,0 @@
|
|||||||
xlrd
|
|
||||||
bs4
|
|
||||||
xlwt
|
|
||||||
nanoid
|
|
||||||
psutil
|
|
||||||
ujson
|
|
||||||
numpy
|
|
||||||
rsa
|
|
||||||
brotli
|
|
||||||
aiohttp
|
|
||||||
upnpclient
|
|
||||||
py-natpmp
|
|
||||||
asyncio
|
|
||||||
aiohttp
|
|
||||||
aiohttp_socks
|
|
||||||
requests
|
|
||||||
jinja2
|
|
||||||
pyzmq
|
|
||||||
cryptography
|
|
||||||
bcrypt
|
|
||||||
asyncssh
|
|
||||||
eventpy
|
|
52
setup.py
52
setup.py
@ -1,52 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from appPublic.version import __version__
|
|
||||||
try:
|
|
||||||
from setuptools import setup
|
|
||||||
except ImportError:
|
|
||||||
from distutils.core import setup
|
|
||||||
required = []
|
|
||||||
with open('requirements.txt', 'r') as f:
|
|
||||||
ls = f.read()
|
|
||||||
required = ls.split('\n')
|
|
||||||
|
|
||||||
with open('appPublic/version.py', 'r') as f:
|
|
||||||
x = f.read()
|
|
||||||
y = x[x.index("'")+1:]
|
|
||||||
z = y[:y.index("'")]
|
|
||||||
version = z
|
|
||||||
with open("README.md", "r") as fh:
|
|
||||||
long_description = fh.read()
|
|
||||||
|
|
||||||
name = "appPublic"
|
|
||||||
description = "appPublic"
|
|
||||||
author = "yumoqing"
|
|
||||||
email = "yumoqing@gmail.com"
|
|
||||||
|
|
||||||
package_data = {}
|
|
||||||
|
|
||||||
setup(
|
|
||||||
name="appPublic",
|
|
||||||
version=version,
|
|
||||||
|
|
||||||
# uncomment the following lines if you fill them out in release.py
|
|
||||||
description=description,
|
|
||||||
author=author,
|
|
||||||
author_email=email,
|
|
||||||
platforms='any',
|
|
||||||
install_requires=required ,
|
|
||||||
packages=[
|
|
||||||
"appPublic"
|
|
||||||
],
|
|
||||||
package_data=package_data,
|
|
||||||
keywords = [
|
|
||||||
],
|
|
||||||
url="https://github.com/yumoqing/appPublic",
|
|
||||||
long_description=long_description,
|
|
||||||
long_description_content_type="text/markdown",
|
|
||||||
classifiers = [
|
|
||||||
'Operating System :: OS Independent',
|
|
||||||
'Programming Language :: Python :: 3',
|
|
||||||
'License :: OSI Approved :: MIT License',
|
|
||||||
],
|
|
||||||
)
|
|
Loading…
Reference in New Issue
Block a user