diff --git a/lib/Controller/SpeechToTextApiController.php b/lib/Controller/SpeechToTextApiController.php index bcb2165f..5effa2a2 100644 --- a/lib/Controller/SpeechToTextApiController.php +++ b/lib/Controller/SpeechToTextApiController.php @@ -95,7 +95,7 @@ public function getTranscript(int $id): DataResponse { * 400: Starting task is not possible */ #[NoAdminRequired] - public function transcribeAudio(string $appId = Application::APP_ID, string $identifier = ''): DataResponse { + public function transcribeAudio(string $appId = 'assistant', string $identifier = ''): DataResponse { $audioData = $this->request->getUploadedFile('audioData'); if ($audioData['error'] !== 0) { @@ -157,7 +157,7 @@ public function transcribeAudio(string $appId = Application::APP_ID, string $ide * 404: File not found */ #[NoAdminRequired] - public function transcribeFile(string $path, string $appId = Application::APP_ID, string $identifier = ''): DataResponse { + public function transcribeFile(string $path, string $appId = 'assistant', string $identifier = ''): DataResponse { if ($path === '') { return new DataResponse('Empty file path received', Http::STATUS_BAD_REQUEST); } diff --git a/openapi.json b/openapi.json index 1f30b2ac..4bd6fef4 100644 --- a/openapi.json +++ b/openapi.json @@ -2357,18 +2357,18 @@ "name": "appId", "in": "query", "description": "App id to be set in the created task", - "required": true, "schema": { - "type": "string" + "type": "string", + "default": "assistant" } }, { "name": "identifier", "in": "query", "description": "Identifier to be set in the created task", - "required": true, "schema": { - "type": "string" + "type": "string", + "default": "" } }, { @@ -2531,18 +2531,18 @@ "name": "appId", "in": "query", "description": "App id to be set in the created task", - "required": true, "schema": { - "type": "string" + "type": "string", + "default": "assistant" } }, { "name": "identifier", "in": "query", "description": "Identifier to be set in the created task", - "required": true, "schema": { - "type": "string" + "type": "string", + "default": "" } }, {