Skip to content

Commit

Permalink
fix audio transcription smart picker not setting appId and identifier…
Browse files Browse the repository at this point in the history
… params in the schedule request

Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed May 6, 2024
1 parent 2f1ed7f commit 658abce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Controller/SpeechToTextApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getTranscript(int $id): DataResponse {
* 400: Starting task is not possible
*/
#[NoAdminRequired]
public function transcribeAudio(string $appId, string $identifier): DataResponse {
public function transcribeAudio(string $appId = Application::APP_ID, string $identifier = ''): DataResponse {
$audioData = $this->request->getUploadedFile('audioData');

if ($audioData['error'] !== 0) {
Expand Down Expand Up @@ -157,7 +157,7 @@ public function transcribeAudio(string $appId, string $identifier): DataResponse
* 404: File not found
*/
#[NoAdminRequired]
public function transcribeFile(string $path, string $appId, string $identifier): DataResponse {
public function transcribeFile(string $path, string $appId = Application::APP_ID, string $identifier = ''): DataResponse {
if ($path === '') {
return new DataResponse('Empty file path received', Http::STATUS_BAD_REQUEST);
}
Expand Down

0 comments on commit 658abce

Please sign in to comment.