FunAudioLLM / CosyVoice

Multi-lingual large voice generation model, providing inference, training and deployment full-stack ability.
https://funaudiollm.github.io/
Apache License 2.0
6.34k stars 677 forks source link

啥时候计划 写个 setup.py #125

Open yinyang996 opened 4 months ago

yinyang996 commented 4 months ago

from cosyvoice.cli.cosyvoice import CosyVoice from cosyvoice.utils.file_utils import load_wav

这些不下载仓库用不动阿

yinyang996 commented 4 months ago

setup.py

from setuptools import setup, find_packages

setup(
    name='CosyVoice',
    version='1.0.0',
    url='https://github.com/FunAudioLLM/CosyVoice.git',
    license='Apache License Version 2.0',
    author='tester',
    author_email='test@163',
    description='tts for chinese',
    include_package_data=True,
    platforms="any",
    package_dir={"": "cosyvoice"},
    packages=find_packages("cosyvoice"),
    # install_requires=requirements,
    classifiers=[
        "Programming Language :: Python :: 3",
        "Operating System :: OS Independent",
    ],
    install_requires=[
        'conformer==0.3.2',
        "deepspeed==0.14.2; sys_platform == 'linux'",
        'diffusers==0.25.0',
        'gdown==5.1.0',
        'gradio==4.32.2',
        'grpcio==1.57.0',
        'grpcio-tools==1.57.0',
        'hydra-core==1.3.2',
        'HyperPyYAML==1.2.2',
        'inflect==7.3.1',
        'librosa==0.10.2',
        'lightning==2.2.4',
        'matplotlib==3.7.5',
        'modelscope==1.15.0',
        'networkx==3.1',
        'omegaconf==2.3.0',
        "onnxruntime-gpu==1.17.0; sys_platform == 'linux'",
        "onnxruntime==1.17.0; sys_platform == 'darwin' or sys_platform == 'windows'",
        'openai-whisper==20231117',
        'protobuf==4.25',
        'pydantic==2.7.0',
        'rich==13.7.1',
        'soundfile==0.12.1',
        'tensorboard==2.14.0',
        'torch==2.2.2',
        'torchaudio==2.2.2',
        'wget==3.2',
        'fastapi==0.111.0',
        'fastapi-cli==0.0.4',
        'WeTextProcessing==1.0.3',
        'Matcha-TTS',
    ],
    dependency_links=[
        'git+https://github.com/shivammehta25/Matcha-TTS.git',
    ],

)

写好了 不知道下边dependency_links 管不管用 就不提PR了

yinyang996 commented 4 months ago

cosyvoice 'diffusers==0.27.0', 和 Matcha-TTS==0.25 冲突 看你们选择哪个吧

Bryce1010 commented 3 months ago

This is a good setup, which solved my problems.