You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the Service
Navigate to the Project Directory: Open a terminal or command prompt and navigate to the directory containing your project.
cd path/to/tts-service
Start the Server: Run the following command to start the server.
node server.js
Access the Service: Open a web browser and navigate to http://localhost:3000. You should see the Text-to-Speech Service interface where you can enter text, click the button, and listen to the generated speech.
The text was updated successfully, but these errors were encountered:
TTS Service Implementation Guide
The following is the recommended file structure for the TTS service:
2.1. Create the package.json File
Run the following command to initialize a new Node.js project:
npm init -y
Install the required packages:
npm install express body-parser sherpa-onnx-node
2.2. Create the server.js File
2.3. Create the index.html File
Place this file in the public/ directory:
Navigate to the Project Directory: Open a terminal or command prompt and navigate to the directory containing your project.
cd path/to/tts-service
Start the Server: Run the following command to start the server.
node server.js
Access the Service: Open a web browser and navigate to http://localhost:3000. You should see the Text-to-Speech Service interface where you can enter text, click the button, and listen to the generated speech.
The text was updated successfully, but these errors were encountered: