Skip to content

Commit

Permalink
Remove websocket related
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulNdrei committed Sep 30, 2024
1 parent 1aa4c9e commit e4b51b8
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 386 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,12 @@ which gets the calls from `0.0.0.0:8000` by default

## Usage

tts-api has three inference endpoints, two openapi ones (as can be seen via `/docs`) and one websocket endpoint:
tts-api has three inference endpoints, two openapi ones (as can be seen via `/docs`)

* `/api/tts`: main inference endpoint
* `/audio-stream`: websocket endpoint; capable of doing async inference, as soon as the first segment is synthesized the audio starts streaming. **Not working for now...**
#

The example for `/api/tts` can be found in `/docs`. The websocket request is contingent on the communication with the client, hence we provide an example client at the `/websocket-demo` endpoint. For the `api/tts` the call is as the following:
The example for `/api/tts` can be found in `/docs`. For the `api/tts` the call is as the following:

```
curl --location --request POST 'http://localhost:8000/api/tts' --header 'Content-Type: application/json' --data-raw '{
Expand Down
106 changes: 0 additions & 106 deletions server/audio_utils/audio_utils.py

This file was deleted.

95 changes: 0 additions & 95 deletions server/audio_utils/audio_utils_orig.py

This file was deleted.

147 changes: 0 additions & 147 deletions server/templates/websocket_demo.html

This file was deleted.

Loading

0 comments on commit e4b51b8

Please sign in to comment.