Added param name
This commit is contained in:
+2
-1
@@ -73,7 +73,8 @@ This document outlines the API endpoints for a language learning application, de
|
|||||||
### Speech Recognition (`/recognize`)
|
### Speech Recognition (`/recognize`)
|
||||||
- **Method:** POST
|
- **Method:** POST
|
||||||
- **Description:** Converts spoken words in an audio file to text.
|
- **Description:** Converts spoken words in an audio file to text.
|
||||||
- **Request Body:** An audio file uploaded using `UploadFile`.
|
- **Request Body:**
|
||||||
|
- `audio_file`: An audio file uploaded using `UploadFile`.
|
||||||
- **Response:** `RecognizeResponse`
|
- **Response:** `RecognizeResponse`
|
||||||
- `text`: Transcribed text from the audio file.
|
- `text`: Transcribed text from the audio file.
|
||||||
- **Example Response:** `{ "text": "Hello, how can I help you today?" }`
|
- **Example Response:** `{ "text": "Hello, how can I help you today?" }`
|
||||||
|
|||||||
Reference in New Issue
Block a user