cosyvoice_simple_api
is a simple text-to-speech API server project developed based on Alibaba's CosyVoice. It allows users to easily convert text into emotionally rich voice output, suitable for creating audiobooks, automated voice response systems, and other text-to-speech applications.
git clone
or by downloading the ZIP file.pip install -r requirements.txt
python api.py
The CosyVoice text-to-speech API server address is: http://your-computer-IP:9881/
/cosyvoice/
GET
text
: Required, the main text to be synthesized.http://127.0.0.1:9881/cosyvoice/?text=Hello, nice to meet you
example.wav
with your custom reference audio, keeping the file name unchanged.example_reference_audio_text.txt
with Notepad and modify it to your new custom reference audio text.CosyVoice Text-to-Speech API Server.bat
file.Contributions to this project are welcome, including but not limited to fixing bugs, adding new features, and improving documentation. Before submitting a Pull Request, please ensure that your code passes all tests and adheres to the project's coding style.
This project is licensed under the MIT License.