From fadb57164eaf0bca79bb2412687eb30d789a0e11 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Thu, 29 Jan 2026 16:14:19 -0800 Subject: [PATCH] Update README to reflect API endpoint changes and enhance profile creation example - Updated API endpoints from `/api/...` to `/...` for consistency. - Modified the speech generation example to include a language parameter. - Revised the profile creation example to use JSON format instead of form data. --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 45c29151..d43750ed 100644 --- a/README.md +++ b/README.md @@ -147,17 +147,17 @@ Voicebox exposes a full REST API, so you can integrate voice synthesis into your ```bash # Generate speech -curl -X POST http://localhost:8000/api/generate \ +curl -X POST http://localhost:8000/generate \ -H "Content-Type: application/json" \ - -d '{"text": "Hello world", "profile_id": "abc123"}' + -d '{"text": "Hello world", "profile_id": "abc123", "language": "en"}' # List voice profiles -curl http://localhost:8000/api/profiles +curl http://localhost:8000/profiles -# Create a profile from audio -curl -X POST http://localhost:8000/api/profiles \ - -F "audio=@voice-sample.wav" \ - -F "name=My Voice" +# Create a profile +curl -X POST http://localhost:8000/profiles \ + -H "Content-Type: application/json" \ + -d '{"name": "My Voice", "language": "en"}' ``` **Use cases:**