This Node.js application is a Text-to-Speech (TTS) server using Piper, which converts text input into spoken audio.
- Node.js
- Npm
- Clone the repository.
git clone https://github.com/flukexp/PiperTTS-API-Wrapper.git
- Navigate to the project directory.
cd PiperTTS-API-Wrapper - Install dependencies, Piper TTS, Piper sample voices and Start piper server:
./piper_installer.sh
http://localhost:5001/
Description:
Returns basic information about the server.
Request Body: The request body should be a JSON object with the following properties:
text(string, required): The text to be converted into speech.voice(string, optional): The voice model to be used for speech synthesis. If not provided, the default voice model will be used.
Response:
audio/wav
Request Body: The request body should be a JSON object with the following properties:
text(string, required): The text to be converted into speech.voice(string, optional): The voice model to be used for speech synthesis. If not provided, the default voice model will be used.
Response:
audio/wav
Description: The response will be a JSON array containing the names of available voice models.